OpenWalnut  1.4.0
Public Member Functions
WGELayoutableItem Class Reference

This class builds the base for graphical items that can be layouted using WGEItemLayouter instances. More...

#include <WGELayoutableItem.h>

+ Inheritance diagram for WGELayoutableItem:

List of all members.

Public Member Functions

 WGELayoutableItem ()
 Default constructor.
virtual ~WGELayoutableItem ()
 Destructor.
virtual osg::Vec3 getAnchor () const =0
 Gets the current anchor point of the item.

Detailed Description

This class builds the base for graphical items that can be layouted using WGEItemLayouter instances.

The layoutable item needs to overwrite the getAnchor method, telling the layout algorithm where the items anchor point is situated. Depending on the layout, the item is placed there or somewhere else with a leader-line to the anchor point.

Definition at line 35 of file WGELayoutableItem.h.


Constructor & Destructor Documentation

Default constructor.

Definition at line 27 of file WGELayoutableItem.cpp.

Destructor.

Definition at line 32 of file WGELayoutableItem.cpp.


Member Function Documentation

virtual osg::Vec3 WGELayoutableItem::getAnchor ( ) const [pure virtual]

Gets the current anchor point of the item.

Returns:
the anchor.

Implemented in WGELabel.


The documentation for this class was generated from the following files: