IS3D::TextObj Class Reference

#include <SimpleObj.H>

Inherits IS3D::DrawObj.

List of all members.

Public Member Functions

 TextObj (const std::string &str, const double textHeight, const Color4 &textColor=Color3::white(), const Color4 &outlineColor=Color4::clear())
virtual ~TextObj ()
void setString (const std::string &newStr)
void setOffsetFrame (CoordinateFrame cf)
void draw ()
 Override this function and place your G3D draw calls inside it.

Protected Attributes

std::string _str
double _height
Color4 _textColor
Color4 _outlineColor
GFontRef _font
CoordinateFrame _offset


Constructor & Destructor Documentation

IS3D::TextObj::TextObj ( const std::string &  str,
const double  textHeight,
const Color4 &  textColor = Color3::white(),
const Color4 &  outlineColor = Color4::clear() 
) [inline]

virtual IS3D::TextObj::~TextObj (  )  [inline, virtual]


Member Function Documentation

void IS3D::TextObj::setString ( const std::string &  newStr  )  [inline]

References _str.

void IS3D::TextObj::setOffsetFrame ( CoordinateFrame  cf  )  [inline]

References _offset.

void IS3D::TextObj::draw (  )  [inline, virtual]

Override this function and place your G3D draw calls inside it.

Implements IS3D::DrawObj.

References _font, _height, _offset, _outlineColor, _str, and _textColor.


Member Data Documentation

std::string IS3D::TextObj::_str [protected]

Referenced by draw(), setString(), and TextObj().

double IS3D::TextObj::_height [protected]

Referenced by draw(), and TextObj().

Color4 IS3D::TextObj::_textColor [protected]

Referenced by draw(), and TextObj().

Color4 IS3D::TextObj::_outlineColor [protected]

Referenced by draw(), and TextObj().

GFontRef IS3D::TextObj::_font [protected]

Referenced by draw(), and TextObj().

CoordinateFrame IS3D::TextObj::_offset [protected]

Referenced by draw(), and setOffsetFrame().


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

Generated on Wed Jan 26 06:31:21 2011 for IS3D by  doxygen 1.5.6