|
|
| xiiColorGradient () |
| | Copyright (c) Theophilus Eriata. All Rights Reserved.
|
|
void | Clear () |
| | Removes all control points.
|
|
bool | IsEmpty () const |
| | Checks whether the curve has any control point.
|
|
void | AddColorControlPoint (double x, const xiiColorGammaUB &rgb) |
| | Appends a color control point. SortControlPoints() must be called to before evaluating the curve.
|
|
void | AddAlphaControlPoint (double x, xiiUInt8 uiAlpha) |
| | Appends an alpha control point. SortControlPoints() must be called to before evaluating the curve.
|
|
void | AddIntensityControlPoint (double x, float fIntensity) |
| | Appends an intensity control point. SortControlPoints() must be called to before evaluating the curve.
|
|
bool | GetExtents (double &ref_fMinx, double &ref_fMaxx) const |
| | Determines the min and max x-coordinate value across all control points.
|
|
void | GetNumControlPoints (xiiUInt32 &ref_uiRgb, xiiUInt32 &ref_uiAlpha, xiiUInt32 &ref_uiIntensity) const |
| | Returns the number of control points of each type.
|
|
const ColorCP & | GetColorControlPoint (xiiUInt32 uiIdx) const |
| | Const access to a control point.
|
|
const AlphaCP & | GetAlphaControlPoint (xiiUInt32 uiIdx) const |
| | Const access to a control point.
|
|
const IntensityCP & | GetIntensityControlPoint (xiiUInt32 uiIdx) const |
| | Const access to a control point.
|
| ColorCP & | ModifyColorControlPoint (xiiUInt32 uiIdx) |
| AlphaCP & | ModifyAlphaControlPoint (xiiUInt32 uiIdx) |
| IntensityCP & | ModifyIntensityControlPoint (xiiUInt32 uiIdx) |
| void | SortControlPoints () |
| void | Evaluate (double x, xiiColorGammaUB &ref_rgba, float &ref_fIntensity) const |
|
void | Evaluate (double x, xiiColor &ref_hdr) const |
| | Evaluates the curve and returns RGBA and intensity in one combined xiiColor value.
|
|
void | EvaluateColor (double x, xiiColorGammaUB &ref_rgb) const |
| | Evaluates only the color curve.
|
| void | EvaluateColor (double x, xiiColor &ref_rgb) const |
| | Evaluates only the color curve.
|
| void | EvaluateAlpha (double x, xiiUInt8 &ref_uiAlpha) const |
| | Evaluates only the alpha curve.
|
| void | EvaluateIntensity (double x, float &ref_fIntensity) const |
| | Evaluates only the intensity curve.
|
|
xiiUInt64 | GetHeapMemoryUsage () const |
| | How much heap memory the curve uses.
|
|
void | Save (xiiStreamWriter &ref_stream) const |
| | Stores the current state in a stream.
|
|
void | Load (xiiStreamReader &ref_stream) |
| | Restores the state from a stream.
|
A color curve for animating colors.
The gradient consists of a number of control points, for rgb, alpha and intensity. One can evaluate the curve at any x coordinate.