#include <gradient.h>
This is the interface for the render data of the Gradient data type. The data is reference-counted and a copy will automatically be created if a non-const function is called.
Public Member Functions | |
MAXON_METHOD Color | CalcGradientPixel (Float pos) const |
MAXON_METHOD Int | GetKnotCount () const |
MAXON_METHOD const GradientKnot * | GetKnot (Int index) const |
MAXON_METHOD const BaseArray< GradientKnot > & | GetKnots () const |
MAXON_METHOD COMPARERESULT | Compare (const GradientRenderDataInterface *arg2) const |
MAXON_METHOD HashInt | GetHashCode () const |
Private Member Functions | |
MAXON_INTERFACE_NONVIRTUAL (GradientRenderDataInterface, MAXON_REFERENCE_COPY_ON_WRITE, "net.maxon.interface.gradientrenderdata") | |
|
private |
MAXON_METHOD Color CalcGradientPixel | ( | Float | pos | ) | const |
Calculates a gradient pixel.
[in] | pos | The X position. |
MAXON_METHOD Int GetKnotCount | ( | ) | const |
Gets the number of knots for GetRenderKnot().
MAXON_METHOD const GradientKnot* GetKnot | ( | Int | index | ) | const |
Gets a pointer to the knot at index.
[in] | index | The knot index. 0 <= index < GetKnotCount() |
MAXON_METHOD const BaseArray<GradientKnot>& GetKnots | ( | ) | const |
Gets a read only reference to internal knot list for fast access.
MAXON_METHOD COMPARERESULT Compare | ( | const GradientRenderDataInterface * | arg2 | ) | const |
Compares this with another GradientRenderData value.
[in] | arg2 | The other GradientRenderData value to compare with. |
MAXON_METHOD HashInt GetHashCode | ( | ) | const |
Gets the checksum of the gradient render data.