OpenWalnut
1.5.0dev
|
Label layout-item. More...
#include <WGELabel.h>
Public Types | |
typedef osg::ref_ptr< WGELabel > | SPtr |
Convenience typedef for a osg::ref_ptr< WGELabel >. More... | |
typedef osg::ref_ptr< const WGELabel > | ConstSPtr |
Convenience typedef for a osg::ref_ptr< const WGELabel >. More... | |
Public Member Functions | |
WGELabel () | |
Default constructor. More... | |
virtual | ~WGELabel () |
Destructor. More... | |
virtual osg::Vec3 | getAnchor () const |
Gets the current anchor point of the label. More... | |
virtual void | setAnchor (const osg::Vec3 &anchor) |
Sets the anchor point in world coordinates of this labels. More... | |
Protected Attributes | |
osg::Vec3 | m_anchor |
The anchor of the label in world space. More... | |
Additional Inherited Members | |
Private Member Functions inherited from WGELayoutableItem | |
WGELayoutableItem () | |
Default constructor. More... | |
virtual | ~WGELayoutableItem () |
Destructor. More... | |
Label layout-item.
An layoutable item which displays text. This is nice for labeling elements on the screen. It can be used stand-alone (as it simply is an osgText::Text instance or in conjunction with an WGEItemLayouter.
Definition at line 37 of file WGELabel.h.
typedef osg::ref_ptr< const WGELabel > WGELabel::ConstSPtr |
Convenience typedef for a osg::ref_ptr< const WGELabel >.
Definition at line 49 of file WGELabel.h.
typedef osg::ref_ptr< WGELabel > WGELabel::SPtr |
Convenience typedef for a osg::ref_ptr< WGELabel >.
Definition at line 44 of file WGELabel.h.
WGELabel::WGELabel | ( | ) |
Default constructor.
Definition at line 31 of file WGELabel.cpp.
References WPathHelper::getAllFonts().
|
virtual |
Destructor.
Definition at line 45 of file WGELabel.cpp.
|
virtual |
Gets the current anchor point of the label.
Implements WGELayoutableItem.
Definition at line 50 of file WGELabel.cpp.
References m_anchor.
|
virtual |
Sets the anchor point in world coordinates of this labels.
anchor | the anchor point |
Definition at line 55 of file WGELabel.cpp.
References m_anchor.
|
protected |
The anchor of the label in world space.
Definition at line 79 of file WGELabel.h.
Referenced by getAnchor(), and setAnchor().