Overview     Modules     Class Hierarchy     Classes     Members  

tlp::GlLabel Class Reference
[GlEntities]

#include <GlLabel.h>

Inheritance diagram for tlp::GlLabel:
Collaboration diagram for tlp::GlLabel:

List of all members.

Public Member Functions

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]

Draw the Label

Implements tlp::GlSimpleEntity.

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]

Return the bounding box of the label

Reimplemented from tlp::GlSimpleEntity.

virtual Color tlp::GlLabel::getColor (  )  [inline, virtual]

Get color use to render the label

int tlp::GlLabel::getFontSize (  )  const [inline]
Returns:
the font size
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]

Function to export data in XML

Implements tlp::GlSimpleEntity.

void tlp::GlLabel::init (  ) 

Set default parameters of GlLabel

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]

Rotate Label

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]

Switch to bold font

virtual void tlp::GlLabel::setColor ( const Color &  color  )  [inline, virtual]

Set color of label

virtual void tlp::GlLabel::setFontName ( const std::string &  name  )  [virtual]

Change font name

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]

Switch to plain font

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]

Function to set data with XML

Implements tlp::GlSimpleEntity.

virtual void tlp::GlLabel::translate ( const Coord &  mouvement  )  [virtual]

Translate entity

Reimplemented from tlp::GlSimpleEntity.


Member Data Documentation

const int tlp::GlLabel::POLYGON_MODE = 1 [static]
const int tlp::GlLabel::TEXTURE_MODE = 0 [static]


Tulip Software by LaBRI Visualization Team    2001 - 2011