GradientRenderDataInterface Class Reference Data Types

#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")

成员函数文档编制

◆  MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( GradientRenderDataInterface   ,
MAXON_REFERENCE_COPY_ON_WRITE   ,
"net.maxon.interface.gradientrenderdata"   
)
private

◆  CalcGradientPixel()

MAXON_METHOD 颜色 CalcGradientPixel ( Float   pos ) const

Calculates a gradient pixel.

参数
[in] pos The X position.
返回
The calculated gradient pixel.

◆  GetKnotCount()

MAXON_METHOD Int GetKnotCount ( ) const

Gets the number of knots for GetRenderKnot().

返回
The render knot count.

◆  GetKnot()

const MAXON_METHOD GradientKnot * GetKnot ( Int   index ) const

Gets a pointer to the knot at index .

参数
[in] index The knot index. 0 <= index < GetKnotCount()
返回
The render knot at index . The gradient data owns the pointed knot.

◆  GetKnots()

const MAXON_METHOD BaseArray < GradientKnot >& GetKnots ( ) const

Gets a read only reference to internal knot list for fast access.

返回
The knot list.

◆  Compare()

MAXON_METHOD COMPARERESULT 比较 ( const GradientRenderDataInterface arg2 ) const

Compares this with another GradientRenderData value.

参数
[in] arg2 The other GradientRenderData value to compare with.
返回
The comparison result.

◆  GetHashCode()

MAXON_METHOD HashInt GetHashCode ( ) const

Gets the checksum of the gradient render data.

返回
The checksum of the gradient render data.