OEColorGradientLabel¶
class OEColorGradientLabel
The OEColorGradientLabel class stores a value (double) and label (string) pair that is used by the OEColorGradientDisplayOptions class to render user defined labels into the color gradients.
See also
Constructors¶
OEColorGradientLabel(double value, const std::string &label)
- value
Defines the position of the string being rendered.
- label
Defines the string being rendered.
Constructor.
OEColorGradientLabel(const OEColorGradientLabel &rhs)
Copy constructor.
GetLabel¶
std::string GetLabel() const
Returns the string stored in the OEColorGradientLabel object that will be rendered into the color gradient.
GetValue¶
double GetValue() const
Returns the value stored in the OEColorGradientLabel object that defined the position of the associated label on the color gradient.