vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
APGUI::GUI_Text Class Reference

Text. More...

#include <GUI_Text.h>

Inheritance diagram for APGUI::GUI_Text:

Public Member Functions

 GUI_Text ()
 
 ~GUI_Text ()
 
void setText (const std::string &content, const osg::Vec3 &pos, float size, osg::Vec4 &color=osg::Vec4(0.0, 0.0, 0.0, 1.0))
 
void setText (const std::string &content)
 
void show ()
 
void hide ()
 

Protected Attributes

osg::ref_ptr< osgText::Text > _text
 

Static Protected Attributes

static osg::ref_ptr
< osgText::Font > 
_font = osgText::readFontFile("data/Fonts/arial.ttf")
 

Detailed Description

Text.

Derivation of Geode. Used in GUI plug-in for labels, tooltips and such stuff

Author
Jiri Chmelik
Date
2011

Constructor & Destructor Documentation

APGUI::GUI_Text::GUI_Text ( )
APGUI::GUI_Text::~GUI_Text ( )

Member Function Documentation

void APGUI::GUI_Text::hide ( )
void APGUI::GUI_Text::setText ( const std::string &  content,
const osg::Vec3 &  pos,
float  size,
osg::Vec4 &  color = osg::Vec4(0.0, 0.0, 0.0, 1.0) 
)
void APGUI::GUI_Text::setText ( const std::string &  content)
void APGUI::GUI_Text::show ( )

Member Data Documentation

osg::ref_ptr< osgText::Font > APGUI::GUI_Text::_font = osgText::readFontFile("data/Fonts/arial.ttf")
staticprotected
osg::ref_ptr<osgText::Text> APGUI::GUI_Text::_text
protected

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