111 virtual cLevel*
copy(
const bool a_duplicateMaterialData =
false,
112 const bool a_duplicateTextureData =
false,
113 const bool a_duplicateMeshData =
false,
114 const bool a_buildCollisionDetector =
false);
117 void setWidth(
const double a_width);
126 void setRange(
const double a_minValue,
const double a_maxValue);
135 void setValue(
const double a_value);
180 const bool a_duplicateMaterialData,
181 const bool a_duplicateTextureData,
182 const bool a_duplicateMeshData,
183 const bool a_buildCollisionDetector);
double m_value
Current value.
Definition: CLevel.h:163
void setWidth(const double a_width)
This method sets the width of this cLevel widget.
Definition: CLevel.cpp:99
This class implements a 2D level display widget.
Definition: CLevel.h:76
double getValue() const
This method returns the current value displayed by the level.
Definition: CLevel.h:138
int m_numIncrements
Number of increments.
Definition: CLevel.h:154
virtual void updateLevelMesh()
This method updates the mesh model.
Definition: CLevel.cpp:218
virtual cLevel * 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 itself.
Definition: CLevel.cpp:274
void setSingleIncrementDisplay(const bool a_singleIncrementDisplay)
This method enables or disables the use of single colored line increments to display the value...
Definition: CLevel.h:141
cColorf m_colorInactive
Color of inactivated increment lines.
Definition: CLevel.h:101
void setNumIncrements(const int a_numIncrements)
This method sets the number of increments. This value can range from 2 to 200.
Definition: CLevel.cpp:120
int getNumIncrements() const
This method returns the number of increments.
Definition: CLevel.h:123
double m_maxValue
Range - maximum value.
Definition: CLevel.h:160
bool m_flagSingleIncrementDisplay
If true, then the single segment display is activated.
Definition: CLevel.h:166
cLevel()
Constructor of cLevel.
Definition: CLevel.cpp:57
void setRange(const double a_minValue, const double a_maxValue)
This method sets the range of input values which command the increment lines.
Definition: CLevel.cpp:142
void copyLevelProperties(cLevel *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: CLevel.cpp:305
This class defines a color using a GLfloat representation for each component.
Definition: CColor.h:138
double getRangeMin() const
This method returns the minimum value of the range.
Definition: CLevel.h:129
void setValue(const double a_value)
This method sets a value to be displayed by the level.
Definition: CLevel.cpp:168
Definition: CAudioBuffer.cpp:56
cColorf m_colorActive
Color of activated increment lines.
Definition: CLevel.h:88
bool getSingleIncrementDisplay() const
This method returns the status about the display mode.
Definition: CLevel.h:144
virtual ~cLevel()
Destructor of cLevel.
Definition: CLevel.h:88
double getRangeMax() const
This method returns the maximum value of the range.
Definition: CLevel.h:132
double m_minValue
Range - minimum value.
Definition: CLevel.h:157