115 void setText(
const std::string a_text);
178 cLabel*
copy(
const bool a_duplicateMaterialData =
false,
179 const bool a_duplicateTextureData =
false,
180 const bool a_duplicateMeshData =
false,
181 const bool a_buildCollisionDetector =
false);
201 const bool a_duplicateMaterialData,
202 const bool a_duplicateTextureData,
203 const bool a_duplicateMeshData,
204 const bool a_buildCollisionDetector);
This class implements a 3D vector.
Definition: CVector3d.h:88
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition: CRenderOptions.h:82
void setText(const std::string a_text)
This method assign a string text to this label.
Definition: CLabel.cpp:141
double m_lineSpacing
Line spacing. Default value is 1.0.
Definition: CLabel.h:165
Implements a panel widget.
std::shared_ptr< cFont > cFontPtr
Definition: CFont.h:71
This class implements a 2D panel widget.
Definition: CPanel.h:80
std::string m_text
Text to be displayed.
Definition: CLabel.h:168
cFontPtr m_font
Font type.
Definition: CLabel.h:102
cLabel(cFontPtr a_font)
Constructor of cLabel.
Definition: CLabel.cpp:59
This class implements a 2D label widget to display one line of text.
Definition: CLabel.h:80
virtual void render(cRenderOptions &a_options)
This method renders the object graphically using OpenGL.
Definition: CLabel.cpp:99
Implements utility functions for manipulating strings.
cColorf m_fontColor
Font color.
Definition: CLabel.h:105
This class implements a collision detection recorder that stores all collision events that are report...
Definition: CCollisionBasics.h:185
void setLetterSpacing(const double a_letterSpacing)
This method sets the letter spacing.
Definition: CLabel.h:127
void setFontScale(const double a_scale)
This method sets the font scale factor.
Definition: CLabel.cpp:169
This structure stores the collision settings that are passed to a collision detector when querying fo...
Definition: CCollisionBasics.h:242
cLabel * copy(const bool a_duplicateMaterialData=false, const bool a_duplicateTextureData=false, const bool a_duplicateMeshData=false, const bool a_buildCollisionDetector=false)
This method creates a copy of this object.
Definition: CLabel.cpp:231
Implements support for fonts.
virtual bool computeOtherCollisionDetection(cVector3d &a_segmentPointA, cVector3d &a_segmentPointB, cCollisionRecorder &a_recorder, cCollisionSettings &a_settings)
This method computes any collisions between a segment and this object.
Definition: CLabel.cpp:296
double getLetterSpacing()
This method returns the current letter spacing value.
Definition: CLabel.h:130
This class defines a color using a GLfloat representation for each component.
Definition: CColor.h:138
Implements color properties.
void setLineSpacing(const double a_lineSpacing)
This method sets the line spacing when multiple lines of text are used.
Definition: CLabel.h:133
double getFontScale() const
This method returns the font scale factor.
Definition: CLabel.h:124
virtual double getTextWidth() const
This method returns the width of the text in pixels.
Definition: CLabel.cpp:186
double m_letterSpacing
Letter spacing. Default value is 1.0.
Definition: CLabel.h:162
Definition: CAudioBuffer.cpp:56
double m_fontScale
Scale factor of fonts.
Definition: CLabel.h:159
virtual ~cLabel()
Destructor of cLabel.
Definition: CLabel.cpp:87
std::string getText() const
This method returns the text associated with this label.
Definition: CLabel.h:118
double getLineSpacing()
This method returns the current line spacing value.
Definition: CLabel.h:136
virtual double getTextHeight() const
This method returns the height of the text in pixels.
Definition: CLabel.cpp:206
void copyLabelProperties(cLabel *a_obj, const bool a_duplicateMaterialData, const bool a_duplicateTextureData, const bool a_duplicateMeshData, const bool a_buildCollisionDetector)
This method copies all properties of this object to another.
Definition: CLabel.cpp:261