111 virtual cDial*
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 setSize(
const double a_size);
126 void setRange(
const double a_minValue,
const double a_maxValue);
135 void setValue(
const double a_value);
150 virtual void setValues(
const double a_value0,
151 const double a_value1);
199 const bool a_duplicateMaterialData,
200 const bool a_duplicateTextureData,
201 const bool a_duplicateMeshData,
202 const bool a_buildCollisionDetector);
int getNumIncrements() const
This method returns the number of increments.
Definition: CDial.h:123
void setRange(const double a_minValue, const double a_maxValue)
This method sets the range of input values which command the increment lines.
Definition: CDial.cpp:127
void setValue(const double a_value)
This method sets a value to the dial to be displayed.
Definition: CDial.cpp:153
bool m_flagSingleIncrementDisplay
If true, then the single segment display is activated.
Definition: CDial.h:182
void setValue1(const double a_value1)
This method sets the second value to the dial.
Definition: CDial.cpp:305
virtual ~cDial()
Destructor of cDial.
Definition: CDial.h:88
double getRangeMin() const
This method returns the minimum input value from the range.
Definition: CDial.h:129
virtual cDial * 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: CDial.cpp:442
double m_value1
Value 1.
Definition: CDial.h:179
double m_maxValue
Range - maximum value.
Definition: CDial.h:173
void setNumIncrements(const int a_numIncrements)
This method sets the number of increments. The value can range from 2 to 200.
Definition: CDial.cpp:105
virtual void setValues(const double a_value0, const double a_value1)
This method sets both values to be displayed by the dial.
Definition: CDial.cpp:323
void setSingleIncrementDisplay(const bool a_singleIncrementDisplay)
This method enables or disables the single colored line increment that is used to display the value...
Definition: CDial.h:154
virtual void updateBoundaryBox()
This method update the bounding box of this dial.
Definition: CDial.cpp:422
void setValue0(const double a_value0)
This method sets the first value to the dial.
Definition: CDial.cpp:208
cDial()
Constructor of cDial.
Definition: CDial.cpp:57
int m_numIncrements
Number of increments.
Definition: CDial.h:167
double getRangeMax() const
This method returns the maximum input possible from the range.
Definition: CDial.h:132
double m_value0
Value 0.
Definition: CDial.h:176
bool getSingleIncrementDisplay() const
This method returns the status about the display mode.
Definition: CDial.h:157
This class defines a color using a GLfloat representation for each component.
Definition: CColor.h:138
cColorf m_colorInactive
Color of inactivated increment lines.
Definition: CDial.h:101
double m_minValue
Range - minimum value.
Definition: CDial.h:170
This class implements a 2D dial widget.
Definition: CDial.h:76
void setSize(const double a_size)
This method sets the size of the dial.
Definition: CDial.cpp:342
double getValue1() const
This method returns the second value displayed by the dial.
Definition: CDial.h:147
double getValue0() const
This method returns the first value displayed by the dial.
Definition: CDial.h:141
Definition: CAudioBuffer.cpp:56
void copyDialProperties(cDial *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: CDial.cpp:473
cColorf m_colorActive
Color of activated increment lines.
Definition: CDial.h:88
virtual void updateDialMesh()
This method updates the mesh model of this dial.
Definition: CDial.cpp:361