|
| GlLabel () |
|
| GlLabel (const Coord ¢erPosition, const Size &size, Color fontColor, bool leftAlign=false) |
|
| ~GlLabel () override |
|
void | draw (float, Camera *camera=nullptr) override |
|
void | drawWithStencil (float lod, Camera *camera=nullptr) |
|
void | enableDepthTest (bool state) |
|
BoundingBox | getBoundingBox () override |
|
const Color & | getColor () const |
|
int | getFontSize () const |
|
float | getHeightAfterScale () |
|
int | getLabelDensity () const |
|
int | getMaxSize () const |
|
int | getMinSize () const |
|
const Color & | getOutlineColor () const |
|
float | getOutlineSize () const |
|
const Coord & | getPosition () const |
|
const Size & | getSize () const |
|
const Size & | getSizeForOutAlign () const |
|
const std::string & | getText () const |
|
const BoundingBox & | getTextBoundingBox () |
|
const std::string & | getTextureName () const |
|
bool | getUseLODOptimisation () const |
|
void | getXML (std::string &outString) override |
|
bool | isBillboarded () const |
|
bool | isUsingMinMaxSize () const |
|
void | rotate (float xRot, float yRot, float zRot) |
|
void | setAlignment (int alignment) |
|
void | setBillboarded (bool billboarded) |
|
void | setBoldFont () |
|
void | setColor (const Color &color) |
|
void | setFontName (const std::string &name) |
|
void | setFontNameSizeAndColor (const std::string &name, const int &size, const Color &color) |
|
void | setFontSize (int size) |
|
void | setLabelsDensity (int density) |
|
void | setMaxSize (int size) |
|
void | setMinSize (int size) |
|
void | setOcclusionTester (OcclusionTest *tester) |
|
void | setOutlineColor (const Color &color) |
|
void | setOutlineSize (float size) |
|
void | setPlainFont () |
|
void | setPosition (const Coord &position) |
|
void | setPosition (float x, float y, float z) |
|
void | setScaleToSize (bool state) |
|
void | setSize (const Size &size) |
|
void | setSizeForOutAlign (const Size &size) |
|
void | setText (const std::string &text) |
|
void | setTextureName (const std::string &name) |
|
void | setUseLODOptimisation (bool state, const BoundingBox &bb=BoundingBox()) |
|
void | setUseMinMaxSize (bool state) |
|
void | setWithXML (const std::string &inString, unsigned int ¤tPosition) override |
|
void | translate (const Coord &mouvement) override |
|
| GlSimpleEntity () |
|
| ~GlSimpleEntity () override |
|
virtual void | draw (float lod, Camera *camera)=0 |
|
virtual BoundingBox | getBoundingBox () |
|
int | getStencil () |
|
virtual void | getXML (std::string &outString)=0 |
|
bool | isVisible () const |
|
virtual void | setStencil (int stencil) |
|
virtual void | setVisible (bool visible) |
|
virtual void | setWithXML (const std::string &inString, unsigned int ¤tPosition)=0 |
|
Create a label into Tulip 3D engine.
The shortest way to create a label is :
Create a label into Tulip 3D engine.
void setText(const std::string &text)
Set the text of the label.
Definition at line 46 of file GlLabel.h.
void tlp::GlLabel::setAlignment |
( |
int |
alignment | ) |
|
|
inline |
Set the alignment of the label : LabelPosition::Center, LabelPosition::Top, LabelPosition::Bottom, LabelPosition::Left, LabelPosition::Right This function is useful when you have an entity : you specify the size of the position of this entity and you tell that you want a label outside this entity.
- See also
- LabelPosition
-
setSizeOfOutAlign
Definition at line 134 of file GlLabel.h.