OpenWalnut  1.4.0
Public Types | Public Member Functions | Protected Attributes
WGELabel Class Reference

Label layout-item. More...

#include <WGELabel.h>

+ Inheritance diagram for WGELabel:

List of all members.

Public Types

typedef osg::ref_ptr< WGELabelSPtr
 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.

Detailed Description

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.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

osg::Vec3 WGELabel::getAnchor ( ) const [virtual]

Gets the current anchor point of the label.

Returns:
the anchor.

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.

Parameters:
anchorthe anchor point

Definition at line 55 of file WGELabel.cpp.

References m_anchor.


Member Data Documentation

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().


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