#include <gradient.h>
This is the interface for the render data of the 渐变 data type. The data is reference-counted and a copy will automatically be created if a non-const function is called.
公共成员函数 |
|
MAXON_METHOD 颜色 | CalcGradientPixel ( Float pos) const |
MAXON_METHOD Int | GetKnotCount () const |
const MAXON_METHOD GradientKnot * | GetKnot ( Int index) const |
const MAXON_METHOD BaseArray < GradientKnot > & | GetKnots () const |
MAXON_METHOD COMPARERESULT | 比较 (const GradientRenderDataInterface *arg2) const |
MAXON_METHOD HashInt | GetHashCode () const |
私有成员函数 |
|
MAXON_INTERFACE_NONVIRTUAL ( GradientRenderDataInterface , MAXON_REFERENCE_COPY_ON_WRITE , "net.maxon.interface.gradientrenderdata") |
|
private |
MAXON_METHOD 颜色 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().
const MAXON_METHOD GradientKnot * GetKnot | ( | Int | index | ) | const |
Gets a pointer to the knot at index .
[in] | index | The knot index. 0 <= index < GetKnotCount() |
const MAXON_METHOD BaseArray < GradientKnot >& GetKnots | ( | ) | const |
Gets a read only reference to internal knot list for fast access.
MAXON_METHOD COMPARERESULT 比较 | ( | 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.