#include <text3d.h>
Inheritance diagram for BasicText3D:
Public Member Functions | |
BasicText3D () | |
void | SetRatioXY (GLdouble value) |
void | Setup (FTFont *f, FontType t, int x=0, int y=0) |
void | operator= (BasicText3D &src) |
BOOL | DrawPicking (char *text) |
Affichage pour le picking. | |
BOOL | Draw (char *text) |
BOOL | Draw (char letter) |
Point3D< float > | GetBox (char *text) |
float | GetAscender () |
float | GetDescender () |
float | GetHeight () |
float | GetWidth (char *text) |
float | GetWidth (char letter) |
Public Attributes | |
FontType | type |
type de fonte | |
FTFont * | font |
fonte a appliquer | |
Material | material |
couleur | |
float | depth |
profondeur dans le cas d'une font extrude | |
int | xCenter |
centrage en X (-1 a gauche, 0 centrer, 1 a droite) | |
int | yCenter |
centrage en Y (-1 en haut,0 centrer, 1 en base) | |
GLdouble | zCenter |
centrage en Z | |
double | scale |
taille relative de la fonte (en ) | |
BOOL | usePicking |
dois on utiliser le picking | |
double | ratioXY |
rapport X/Y de la surface en cours | |
double | ratioYX |
rapport Y/X de la surface en cours |
Les parametres:
ex.:
BasicText3D text; FTGLTextureFont font; font.open("myfont.ttf"); font.FaceSize(18); text.Setup(&font,ft_texture,0,0); text.value="hello word !!"; // positionage en 3D par les glTranlate,glRotate,glScall text.Draw();
Definition at line 122 of file text3d.h.
|
Definition at line 26 of file text3d.cpp. References font, ft_unknown, Material::SetFull(), SetRatioXY(), type, usePicking, xCenter, yCenter, and zCenter. |
|
Definition at line 84 of file text3d.cpp. |
|
Definition at line 91 of file text3d.cpp. References BOOL(), ce, decal, font, ft_bitmap, ft_extrude, ft_outline, ft_pixmap, ft_polygon, ft_texture, ft_unknown, GetAscender(), GetDescender(), GetWidth(), ControlEngine::monitor, type, Material::Use(), xCenter, yCenter, and zCenter. Referenced by Draw(), and DrawPicking(). |
|
Affichage pour le picking.
Definition at line 78 of file text3d.cpp. References BOOL(), Draw(), and usePicking. |
|
Definition at line 166 of file text3d.cpp. References font. Referenced by Draw(), and GetHeight(). |
|
Definition at line 157 of file text3d.cpp. References font, and Point3D< T >::Set(). |
|
Definition at line 171 of file text3d.cpp. References font. Referenced by Draw(), and GetHeight(). |
|
Definition at line 176 of file text3d.cpp. References GetAscender(), and GetDescender(). Referenced by Text3D::ComputeLineSize(). |
|
Definition at line 181 of file text3d.cpp. References GetWidth(). |
|
Si valeur NULL, utilise le text courent Definition at line 189 of file text3d.cpp. References font. Referenced by Text3D::ComputeLayout(), Text3D::ComputeLineSize(), Draw(), and GetWidth(). |
|
Definition at line 54 of file text3d.cpp. References font, src, type, usePicking, xCenter, yCenter, and zCenter. Referenced by Text3D::operator=(). |
|
Definition at line 40 of file text3d.cpp. References ratioYX. Referenced by BasicText3D(), and Face::Draw(). |
|
Definition at line 46 of file text3d.cpp. References f, font, t, type, xCenter, and yCenter. Referenced by Text3D::Setup(). |
|
profondeur dans le cas d'une font extrude
Definition at line 128 of file text3d.h. Referenced by ValueEditors::MakeElemFaceStruct(). |
|
fonte a appliquer
Definition at line 126 of file text3d.h. Referenced by BasicText3D(), Draw(), GetAscender(), GetBox(), GetDescender(), GetWidth(), operator=(), and Setup(). |
|
couleur
Definition at line 127 of file text3d.h. Referenced by Tutorial::BaseDemo::BaseDemo(), Button::Button(), Tutorial::LayoutDemo::ConfigTextFace(), TaskWindow::Create(), MsgBox::Create(), Demo::Demo(), Tutorial::FaceDemo::FaceDemo(), ValueEditors::MakeElemFaceStruct(), Tutorial::UniversDemo::SetFace(), TextBox::TextBox(), Tip::Tip(), Title::Title(), and Tutorial::WindowDemo::WindowDemo(). |
|
rapport X/Y de la surface en cours
|
|
rapport Y/X de la surface en cours
Definition at line 135 of file text3d.h. Referenced by SetRatioXY(). |
|
taille relative de la fonte (en )
Definition at line 132 of file text3d.h. Referenced by Tutorial::LayoutDemo::ConfigTextFace(), TaskWindow::Create(), MsgBox::Create(), and ValueEditors::MakeElemFaceStruct(). |
|
type de fonte
|
|
dois on utiliser le picking
Definition at line 133 of file text3d.h. Referenced by BasicText3D(), DrawPicking(), and operator=(). |
|
centrage en X (-1 a gauche, 0 centrer, 1 a droite)
Definition at line 129 of file text3d.h. Referenced by BasicText3D(), Draw(), operator=(), and Setup(). |
|
centrage en Y (-1 en haut,0 centrer, 1 en base)
Definition at line 130 of file text3d.h. Referenced by BasicText3D(), Draw(), operator=(), and Setup(). |
|
centrage en Z
Definition at line 131 of file text3d.h. Referenced by BasicText3D(), Draw(), and operator=(). |