Label layout-item. More...
#include <WGELabel.h>
Inheritance diagram for WGELabel:
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 38 of file WGELabel.h.
| typedef osg::ref_ptr< const WGELabel > WGELabel::ConstSPtr |
Convenience typedef for a osg::ref_ptr< const WGELabel >.
Definition at line 51 of file WGELabel.h.
| typedef osg::ref_ptr< WGELabel > WGELabel::SPtr |
Convenience typedef for a osg::ref_ptr< WGELabel >.
Definition at line 46 of file WGELabel.h.
| WGELabel::WGELabel | ( | ) |
Default constructor.
Definition at line 29 of file WGELabel.cpp.
References WPathHelper::getAllFonts().
| WGELabel::~WGELabel | ( | ) | [virtual] |
Destructor.
Definition at line 43 of file WGELabel.cpp.
| osg::Vec3 WGELabel::getAnchor | ( | ) | const [virtual] |
Gets the current anchor point of the label.
Implements WGELayoutableItem.
Definition at line 48 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 53 of file WGELabel.cpp.
References m_anchor.
osg::Vec3 WGELabel::m_anchor [protected] |
The anchor of the label in world space.
Definition at line 82 of file WGELabel.h.
Referenced by getAnchor(), and setAnchor().
1.7.1