Color scale element: one value + one color.
More...
#include <ccColorScale.h>
|
| ccColorScaleElement () |
| Default constructor.
|
|
| ccColorScaleElement (double relativePos, const QColor &color) |
| Constructor from a (relative) position and a color.
|
|
void | setRelativePos (double pos) |
| Sets associated value (relative to scale boundaries) More...
|
|
double | getRelativePos () const |
| Returns step position (relative to scale boundaries) More...
|
|
void | setColor (const QColor &color) |
| Sets color.
|
|
const QColor & | getColor () const |
| Returns color.
|
|
Color scale element: one value + one color.
◆ getRelativePos()
double ccColorScaleElement::getRelativePos |
( |
| ) |
const |
|
inline |
Returns step position (relative to scale boundaries)
- Returns
- relative position (always between 0.0 and 1.0!)
◆ setRelativePos()
void ccColorScaleElement::setRelativePos |
( |
double |
pos | ) |
|
|
inline |
Sets associated value (relative to scale boundaries)
- Parameters
-
pos | relative position (always between 0.0 and 1.0!) |
◆ m_relativePos
double ccColorScaleElement::m_relativePos |
|
protected |
Step (relative) position.
Must always be between 0.0 and 1.0!
The documentation for this class was generated from the following file: