OpenWalnut  1.5.0dev
Public Member Functions | List of all members
WGELayoutableItem Class Referenceabstract

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

#include <WGELayoutableItem.h>

+ Inheritance diagram for WGELayoutableItem:

Public Member Functions

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

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

◆ WGELayoutableItem()

WGELayoutableItem::WGELayoutableItem ( )

Default constructor.

Definition at line 27 of file WGELayoutableItem.cpp.

◆ ~WGELayoutableItem()

WGELayoutableItem::~WGELayoutableItem ( )
virtual

Destructor.

Definition at line 32 of file WGELayoutableItem.cpp.

Member Function Documentation

◆ getAnchor()

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: