OpenWalnut  1.5.0dev
Public Types | Public Member Functions | Protected Attributes | List of all members
WGELabel Class Reference

Label layout-item. More...

#include <WGELabel.h>

+ Inheritance diagram for WGELabel:
+ Collaboration diagram for WGELabel:

Public Types

typedef osg::ref_ptr< WGELabelSPtr
 Convenience typedef for a osg::ref_ptr< WGELabel >. More...
 
typedef osg::ref_ptr< const WGELabelConstSPtr
 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...
 

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

◆ ConstSPtr

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.

◆ SPtr

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

◆ WGELabel()

WGELabel::WGELabel ( )

Default constructor.

Definition at line 31 of file WGELabel.cpp.

References WPathHelper::getAllFonts().

+ Here is the call graph for this function:

◆ ~WGELabel()

WGELabel::~WGELabel ( )
virtual

Destructor.

Definition at line 45 of file WGELabel.cpp.

Member Function Documentation

◆ getAnchor()

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.

◆ setAnchor()

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

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


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