tlp::GlLabel Class Reference
[GlEntities]
#include <GlLabel.h>
List of all members.
Public Member Functions
- GlLabel ()
- GlLabel (Coord centerPosition, Coord size, Color fontColor, bool leftAlign=false)
- GlLabel (const std::string &fontPath, Coord centerPosition, Coord size, Color fontColor, bool leftAlign=false)
- ~GlLabel ()
- void init ()
- void setText (const std::string &text)
- void setPosition (const Coord &position)
- Coord getPosition ()
- virtual void setTranslationAfterRotation (Coord translation)
- virtual Coord getTranslationAfterRotation ()
- virtual void setAlignment (int alignment)
- virtual BoundingBox getBoundingBox ()
- virtual void setSize (const Coord &size)
- virtual Coord getSize ()
- virtual void setSizeForOutAlign (const Coord &size)
- virtual Coord getSizeForOutAlign ()
- virtual void setColor (const Color &color)
- virtual Color getColor ()
- virtual void enableDepthTest (bool state)
- virtual void setScaleToSize (bool state)
- void drawWithStencil (float lod, Camera *camera=NULL)
- virtual void draw (float lod, Camera *camera=NULL)
- virtual void translate (const Coord &mouvement)
- virtual void rotate (float xRot, float yRot, float zRot)
- virtual void getXML (xmlNodePtr rootNode)
- virtual void setWithXML (xmlNodePtr rootNode)
- virtual void setBoldFont ()
- virtual void setPlainFont ()
- virtual void setFontName (const std::string &name)
- virtual void setFontNameSizeAndColor (const std::string &name, const int &size, const Color &color)
- virtual void setRenderingMode (int mode)
- virtual void setOcclusionTester (OcclusionTest *tester)
- virtual void setUseLODOptimisation (bool state)
- virtual bool getUseLODOptimisation ()
- virtual void setLabelOcclusionBorder (unsigned int size)
- virtual unsigned int getLabelOcclusionBorder ()
- void setMinSize (int size)
- int getMinSize ()
- void setMaxSize (int size)
- int getMaxSize ()
- void setUseMinMaxSize (bool state)
- bool isUsingMinMaxSize ()
- int getFontSize () const
- void setfontSize (int size)
- Sets the font size used when rendering the label.
Static Public Attributes
Detailed Description
Create a entity Label
Constructor & Destructor Documentation
tlp::GlLabel::GlLabel |
( |
|
) |
|
tlp::GlLabel::GlLabel |
( |
Coord |
centerPosition, |
|
|
Coord |
size, |
|
|
Color |
fontColor, |
|
|
bool |
leftAlign = false | |
|
) |
| | |
Contructor with fontPath, centerPosition, size, fontColor and alignment
tlp::GlLabel::GlLabel |
( |
const std::string & |
fontPath, |
|
|
Coord |
centerPosition, |
|
|
Coord |
size, |
|
|
Color |
fontColor, |
|
|
bool |
leftAlign = false | |
|
) |
| | |
Contructor with fontPath, centerPosition, size, fontColor and alignment this constructor will be remove on Tulip 4 version
tlp::GlLabel::~GlLabel |
( |
|
) |
|
Member Function Documentation
virtual void tlp::GlLabel::draw |
( |
float |
lod, |
|
|
Camera * |
camera = NULL | |
|
) |
| | [virtual] |
void tlp::GlLabel::drawWithStencil |
( |
float |
lod, |
|
|
Camera * |
camera = NULL | |
|
) |
| | |
Set the stencil and draw the Label, this function is usefull when we directly call draw without tulip engine
virtual void tlp::GlLabel::enableDepthTest |
( |
bool |
state |
) |
[inline, virtual] |
Enable/disable the depth test for the label (default depth test is enable)
virtual BoundingBox tlp::GlLabel::getBoundingBox |
( |
|
) |
[virtual] |
virtual Color tlp::GlLabel::getColor |
( |
|
) |
[inline, virtual] |
Get color use to render the label
int tlp::GlLabel::getFontSize |
( |
|
) |
const [inline] |
virtual unsigned int tlp::GlLabel::getLabelOcclusionBorder |
( |
|
) |
[inline, virtual] |
Return label border for occlusion test
int tlp::GlLabel::getMaxSize |
( |
|
) |
[inline] |
Get max screen size (in pixel) of the label : this size is used in not scaled mode
int tlp::GlLabel::getMinSize |
( |
|
) |
[inline] |
Get min screen size (in pixel) of the label : this size is used in not scaled mode
Coord tlp::GlLabel::getPosition |
( |
|
) |
|
Return the position of the label
virtual Coord tlp::GlLabel::getSize |
( |
|
) |
[virtual] |
return the size of the text
virtual Coord tlp::GlLabel::getSizeForOutAlign |
( |
|
) |
[virtual] |
return the size for alignment outside (left/right/top/bottom)
virtual Coord tlp::GlLabel::getTranslationAfterRotation |
( |
|
) |
[inline, virtual] |
return the translation used after rotation of the label
virtual bool tlp::GlLabel::getUseLODOptimisation |
( |
|
) |
[inline, virtual] |
Return label border for occlusion test
virtual void tlp::GlLabel::getXML |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |
void tlp::GlLabel::init |
( |
|
) |
|
bool tlp::GlLabel::isUsingMinMaxSize |
( |
|
) |
[inline] |
Return if the label using min/max screen size in not scaled mode
virtual void tlp::GlLabel::rotate |
( |
float |
xRot, |
|
|
float |
yRot, |
|
|
float |
zRot | |
|
) |
| | [virtual] |
virtual void tlp::GlLabel::setAlignment |
( |
int |
alignment |
) |
[inline, virtual] |
Set the alignment of the label : ON_CENTER, ON_TOP, ON_BOTTOM, ON_LEFT, ON_RIGHT
virtual void tlp::GlLabel::setBoldFont |
( |
|
) |
[virtual] |
virtual void tlp::GlLabel::setColor |
( |
const Color & |
color |
) |
[inline, virtual] |
virtual void tlp::GlLabel::setFontName |
( |
const std::string & |
name |
) |
[virtual] |
virtual void tlp::GlLabel::setFontNameSizeAndColor |
( |
const std::string & |
name, |
|
|
const int & |
size, |
|
|
const Color & |
color | |
|
) |
| | [virtual] |
Change font name, size and color of the text
void tlp::GlLabel::setfontSize |
( |
int |
size |
) |
[inline] |
Sets the font size used when rendering the label.
virtual void tlp::GlLabel::setLabelOcclusionBorder |
( |
unsigned int |
size |
) |
[inline, virtual] |
Set label border for occlusion test
void tlp::GlLabel::setMaxSize |
( |
int |
size |
) |
[inline] |
Set max screen size (in pixel) of the label : this size is used in not scaled mode
void tlp::GlLabel::setMinSize |
( |
int |
size |
) |
[inline] |
Set min screen size (in pixel) of the label : this size is used in not scaled mode
virtual void tlp::GlLabel::setOcclusionTester |
( |
OcclusionTest * |
tester |
) |
[inline, virtual] |
Set the occlusion tester If occlusionTester is NULL : deactivate occlusion test
virtual void tlp::GlLabel::setPlainFont |
( |
|
) |
[virtual] |
void tlp::GlLabel::setPosition |
( |
const Coord & |
position |
) |
|
Set the position used to render the label
virtual void tlp::GlLabel::setRenderingMode |
( |
int |
mode |
) |
[virtual] |
Switch rendering mode to polygon- or texture-based rendering
virtual void tlp::GlLabel::setScaleToSize |
( |
bool |
state |
) |
[inline, virtual] |
Enable/disable if label is scaled to size
virtual void tlp::GlLabel::setSize |
( |
const Coord & |
size |
) |
[virtual] |
Set the size of the label
virtual void tlp::GlLabel::setSizeForOutAlign |
( |
const Coord & |
size |
) |
[virtual] |
Set the size for alignment outside (left/right/top/bottom) Warning : this size is reinit when you call setSize
void tlp::GlLabel::setText |
( |
const std::string & |
text |
) |
|
Set the text of the label
virtual void tlp::GlLabel::setTranslationAfterRotation |
( |
Coord |
translation |
) |
[inline, virtual] |
Set the translation used after rotation of the label
virtual void tlp::GlLabel::setUseLODOptimisation |
( |
bool |
state |
) |
[inline, virtual] |
Set if the label is otimized with the lod
void tlp::GlLabel::setUseMinMaxSize |
( |
bool |
state |
) |
[inline] |
Set if the label use min/max screen size in not scaled mode
virtual void tlp::GlLabel::setWithXML |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |
virtual void tlp::GlLabel::translate |
( |
const Coord & |
mouvement |
) |
[virtual] |
Member Data Documentation
|