OpenWalnut
1.4.0
|
Label layout-item. More...
#include <WGELabel.h>
Public Types | |
typedef osg::ref_ptr< WGELabel > | SPtr |
Convenience typedef for a osg::ref_ptr< WGELabel >. | |
typedef osg::ref_ptr< const WGELabel > | ConstSPtr |
Convenience typedef for a osg::ref_ptr< const WGELabel >. | |
Public Member Functions | |
WGELabel () | |
Default constructor. | |
virtual | ~WGELabel () |
Destructor. | |
virtual osg::Vec3 | getAnchor () const |
Gets the current anchor point of the label. | |
virtual void | setAnchor (const osg::Vec3 &anchor) |
Sets the anchor point in world coordinates of this labels. | |
Protected Attributes | |
osg::Vec3 | m_anchor |
The anchor of the label in world space. |
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.
Default constructor.
Definition at line 31 of file WGELabel.cpp.
References WPathHelper::getAllFonts().
WGELabel::~WGELabel | ( | ) | [virtual] |
Destructor.
Definition at line 45 of file WGELabel.cpp.
osg::Vec3 WGELabel::getAnchor | ( | ) | const [virtual] |
Gets the current anchor point of the label.
Implements WGELayoutableItem.
Definition at line 50 of file WGELabel.cpp.
References m_anchor.
void WGELabel::setAnchor | ( | const osg::Vec3 & | 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.
osg::Vec3 WGELabel::m_anchor [protected] |
The anchor of the label in world space.
Definition at line 79 of file WGELabel.h.
Referenced by getAnchor(), and setAnchor().