22 #include "utilities.h"
54 explicit CubeString(QString _label, GLfloat _cubeDimension,
Alphabet *_alphabet, GLuint _name = 0);
72 explicit CubeString(QString _label, GLfloat _maxWidth, GLfloat _maxHeight,
Alphabet *_alphabet, GLfloat _maxCubeDimension = 0.0f, GLuint _name = 0);
90 GLvoid
draw(GLboolean simplifyForPicking =
false);
165 GLfloat
setCurrentAngle(GLfloat _firstLetterAngle, GLfloat _nextLetterDelta = 0);
179 #ifdef USE_DISPLAY_LISTS_FOR_LETTERS
181 QList<GLuint> letterDisplayLists;
214 #endif // CUBESTRING_H
QList< Skin * > letterSkins
Definition: cubestring.h:185
~CubeString()
Safely destroys a CubeString.
Definition: cubestring.cpp:49
GLfloat setCurrentAngle(GLfloat _firstLetterAngle, GLfloat _nextLetterDelta=0)
Set the current angle for the letters in the CubeString.
Definition: cubestring.cpp:171
Alphabet * alphabet
Definition: cubestring.h:173
GLvoid draw(GLboolean simplifyForPicking=false)
Draws the CubeString in the current selected point of the scene.
Definition: cubestring.cpp:66
This class is used to draw, a string composed the horizontal justapposition of Different cubes on whi...
Definition: cubestring.h:37
It is the Skin Class.
Definition: skin.h:30
GLfloat cubeDimension
Definition: cubestring.h:171
GLboolean isRotating(GLuint _letterName)
Check if a letter of the CubeString is already rotating.
Definition: cubestring.cpp:166
QList< GLint > angleSteps
Definition: cubestring.h:175
CubeString(QString _label, GLfloat _cubeDimension, Alphabet *_alphabet, GLuint _name=0)
Creates a CubeString of the text _label, using the Alphabet _alphabet and every cube letter of the st...
Definition: cubestring.cpp:21
GLuint createLetterDisplayList(QChar _letter)
It is an internal function to create the OpenGL displayList of a letter.
Definition: cubestring.cpp:184
GLvoid init()
It is an internal function used to initialize CubeString's values.
Definition: cubestring.cpp:198
GLuint name
Definition: cubestring.h:172
GLvoid startStringRotation(GLint _angleStep, GLint _turns)
Start the rotation of the entire CubeString.
Definition: cubestring.cpp:160
QList< GLint > currentAngles
Definition: cubestring.h:176
QString label
Definition: cubestring.h:170
QString getLabel()
Returns the text of the CubeString.
Definition: cubestring.cpp:120
This class is used to keep a list of Letter (from this the name Alphabet) It provide access to Letter...
Definition: alphabet.h:33
GLvoid startLetterRotation(GLuint _letterName, GLint _angleStep, GLint _turns)
Start the rotation of a letter in the CubeString.
Definition: cubestring.cpp:130
GLuint getName()
Returns the name given to the entire string (for picking purposes). [default = 0].
Definition: cubestring.cpp:125
QList< GLint > finalAngles
Definition: cubestring.h:177