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.

../../_images/OEColorGradientDisplayOptions_AddLabel.png

Example of depicting labels above the color gradient

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.

operator=

OEColorGradientLabel &operator=(const OEColorGradientLabel &rhs)

Assignment operator.

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.