#include <Mesh.h>
|
| | vtTextMesh (osgText::Font *font, float fSize=1, bool bCenter=false) |
| |
|
void | GetBoundBox (FBox3 &box) const |
| |
|
void | SetText (const char *text) |
| | Set the text string that this TextMesh should display.
|
| |
|
void | SetText (const wchar_t *text) |
| | Set the (wide) text string that this TextMesh should display.
|
| |
|
void | SetPosition (const FPoint3 &pos) |
| | Set the position (XYZ translation) of the text in its own frame.
|
| |
|
void | SetRotation (const FQuat &rot) |
| | Set the rotation (Quaternion) of the text in its own frame.
|
| |
|
void | SetAlignment (int align) |
| | Set the text alignment: 0 for XY plane, 1 for XZ, 2 for YZ.
|
| |
|
void | SetColor (const RGBAf &rgba) |
| | Set the color.
|
| |
|
void | SetMatIndex (int i) |
| |
|
int | GetMatIndex () const |
| |
A Text Mesh is a special kind of Mesh which contains text instead of general geometry primitives. vtTextMesh is used similarly with vtMesh: you create them and add them to vtGeode objects to add them to the scene.
| vtTextMesh::vtTextMesh |
( |
osgText::Font * |
font, |
|
|
float |
fSize = 1, |
|
|
bool |
bCenter = false |
|
) |
| |
Construct a TextMesh object.
- Parameters
-
| font | The font that will be used to draw the text. |
| fSize | Size (height) in world units of the text rectangle. |
| bCenter | If true, the origin of the text rectangle is at it's bottom center. Otherwise, bottom left. |
The documentation for this class was generated from the following files:
- D:/job/3kb/gelistirme/umasoft/vtp-src/VTP/TerrainSDK/vtlib/vtosg/Mesh.h
- D:/job/3kb/gelistirme/umasoft/vtp-src/VTP/TerrainSDK/vtlib/vtosg/Mesh.cpp