Overview     Modules     Class Hierarchy     Classes     Members  
tlp::GlLabel Class Reference

#include <GlLabel.h>

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

List of all members.

Public Member Functions


Detailed Description

Create a entity Label


Constructor & Destructor Documentation

tlp::GlLabel::GlLabel ( )
_DEPRECATED tlp::GlLabel::GlLabel ( Coord  centerPosition,
Coord  size,
Color  fontColor,
bool  leftAlign = false 
)

Contructor with fontPath, centerPosition, size, fontColor and alignment Use GlLabel(Coord centerPosition,Size size,Color fontColor,bool leftAlign=false) instead.

tlp::GlLabel::GlLabel ( Coord  centerPosition,
Size  size,
Color  fontColor,
bool  leftAlign = false 
)

Contructor with fontPath, centerPosition, size, fontColor and alignment

_DEPRECATED 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 int tlp::GlLabel::getLabelDensity ( ) [inline, virtual]

Return label density of occlusion test This density must be in interval -100 100

virtual int tlp::GlLabel::getLabelOcclusionBorder ( ) [inline, virtual]

Return label border for occlusion test

Deprecated:
Use getLabelsDensity instead
virtual Size tlp::GlLabel::getLabelSize ( ) const [virtual]

return the size of the text.

virtual Size tlp::GlLabel::getLabelSizeForOutAlign ( ) const [virtual]

return the size for alignment outside (left/right/top/bottom)

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

Color tlp::GlLabel::getOutlineColor ( ) const [inline]
Returns:
the outline color
float tlp::GlLabel::getOutlineSize ( ) const [inline]
Returns:
the outline size
Coord tlp::GlLabel::getPosition ( )

Return the position of the label

virtual Coord _DEPRECATED tlp::GlLabel::getSize ( ) [virtual]

return the size of the text. Deprecated use getLabelSize instead.

virtual Coord _DEPRECATED tlp::GlLabel::getSizeForOutAlign ( ) [virtual]

return the size for alignment outside (left/right/top/bottom) Deprecated use getLabelSizeForOutAlign() instead

std::string tlp::GlLabel::getText ( ) const
virtual BoundingBox tlp::GlLabel::getTextBoundingBox ( ) [virtual]

Return the bounding box of the text of the label

std::string tlp::GlLabel::getTextureName ( ) const [inline]
Returns:
the texture name used to render the label
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::isBillboarded ( ) [inline]
Returns:
if the label is billboarded
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

void tlp::GlLabel::setBillboarded ( bool  billboarded) [inline]

Set if the label is billboarded.

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 ( int  size) [inline, virtual]

Set label border for occlusion test

Deprecated:
Use setLabelsDensity instead
virtual void tlp::GlLabel::setLabelsDensity ( int  density) [inline, virtual]

Set labels density of occlusion test This density must be in interval -100 100

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

void tlp::GlLabel::setOutlineColor ( const Color &  color) [inline]

Sets the outline color used when rendering the label.

void tlp::GlLabel::setOutlineSize ( float  size) [inline]

Sets the outline size used when rendering the label.

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 _DEPRECATED void tlp::GlLabel::setSize ( const Coord &  size) [virtual]

Use setSize(const Size& size instead)

virtual void tlp::GlLabel::setSize ( const Size &  size) [virtual]

Set the size of the label

virtual void tlp::GlLabel::setSizeForOutAlign ( const Size &  size) [virtual]

Set the size for alignment outside (left/right/top/bottom) Warning : this size is reinit when you call setSize

virtual void _DEPRECATED 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 Deprecated use setSizeForOutAlign(const Size &size) instead

void tlp::GlLabel::setText ( const std::string &  text)

Set the text of the label

void tlp::GlLabel::setTextureName ( const std::string &  name) [inline]

Sets the texture name used when rendering 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,
BoundingBox  bb = BoundingBox() 
) [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.



Tulip Software by LaBRI Visualization Team    2001 - 2012