FalloffDataData Struct Reference

#include <c4d_falloffdata.h>

详细描述

Holds the data for FalloffData plugins.
Structure is read-only. The only exception is _userData , which can be set to whatever.
_userData must be checked before it is accessed as it can be reset to nullptr .
It is not normally reset to nullptr in-between switches to a different falloff, so it should be cleared in FalloffData::FreeFalloff if it has been set before.

注意
_userData is usually filled and used for speed within FalloffData::Sample .

公共成员函数

  FalloffDataData ()
  ~FalloffDataData (void)
Bool   operator== (const FalloffDataData &b)
Bool   operator!= (const FalloffDataData &b)

Public Attributes

矩阵   _mat
矩阵   _imat
Float   _falloff
Float   _scale
Float   _strength
向量   _size
Bool   _invert
Bool   _clamped
Bool   _visible
Bool   _useSpline
矩阵   _nodemat
矩阵   _inverseNodeMat
向量   _offset
Int32   _axis
Float   _slice
Float   _torusRadius
Int32   _function
Bool   _spherical
Float   _radius
Float   _inverseRadius
Float   _inverseFalloff
void *  _userData

构造函数 & 析构函数文档编制

◆  FalloffDataData()

FalloffDataData ( )

Default constructor.

◆  ~FalloffDataData()

~ FalloffDataData ( void  )

Default destructor.

成员函数文档编制

◆  operator==()

Bool operator== ( const FalloffDataData b )

Equality operator. Checks if two FalloffDataDatas are identical.

参数
[in] b The FalloffDataData to compare with.
返回
true if the FalloffDataDatas are equal, otherwise false .

◆  operator!=()

Bool operator!= ( const FalloffDataData b )

Inequality operator. Checks if two FalloffDataDatas are different.

参数
[in] b The FalloffDataData to compare with.
返回
true if the FalloffDataDatas are not equal, otherwise false .

Member Data Documentation

◆  _mat

矩阵 _mat

Falloff matrix.

◆  _imat

矩阵 _imat

Inverse falloff matrix.

◆  _falloff

Float _falloff

Falloff.

◆  _scale

Float _scale

Scale.

◆  _strength

Float _strength

Strength.

◆  _size

向量 _size

Size.

◆  _invert

Bool _invert

Invert.

◆  _clamped

Bool _clamped

Clamped.

◆  _visible

Bool _visible

Visible.

◆  _useSpline

Bool _useSpline

Use spline.

◆  _nodemat

矩阵 _nodemat

The node's matrix.

◆  _inverseNodeMat

矩阵 _inverseNodeMat

The node's inverse matrix.

◆  _offset

向量 _offset

Offset.

◆  _axis

Int32 _axis

Axis orientation: FALLOFF_SHAPE_AXIS .

◆  _slice

Float _slice

切片 0- 360° .

◆  _torusRadius

Float _torusRadius

Torus radius.

◆  _function

Int32 _function

Falloff function: FALLOFF_FUNCTION .

◆  _spherical

Bool _spherical

Deprecated .

◆  _radius

Float _radius

Deprecated .

◆  _inverseRadius

Float _inverseRadius

Deprecated .

◆  _inverseFalloff

Float _inverseFalloff

Inverse falloff.

◆  _userData

void* _userData

User data.