ReflectionLayer Class Reference

#include <c4d_reflection.h>

详细描述

A reflection layer in a material.

另请参阅
材质 Reflection Layers.

公共成员函数

  ReflectionLayer ()
Int32   GetLayerID () const
Int32   GetDataID () const
String   GetName () const
void  SetName (const maxon::String &name)
Int32   GetFlags () const
void  SetFlags ( Int32 flags)

Protected Attributes

Int32   _layerDataID
材质 _parent

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

◆  ReflectionLayer()

ReflectionLayer ( )

Default constructor.

成员函数文档编制

◆  GetLayerID()

Int32 GetLayerID ( ) const

Retrieves the layer ID.

由于
R18
返回
The layer ID. Must be a value greater or equal than 3 , otherwise it failed.

◆  GetDataID()

Int32 GetDataID ( ) const

Retrieves the layer base data ID to get/set its data.

返回
The layer base data ID.

◆  GetName()

String GetName ( ) const

Retrieves the layer name.

由于
R18
返回
The layer name.

◆  SetName()

void SetName ( const maxon::String name )

Sets the layer name. If not valid (i.e. empty or all chars are whitespaces) a default layer name will be used.

由于
R18
参数
[in] name The layer name.

◆  GetFlags()

Int32 GetFlags ( ) const

Retrieves the flags for the layer.

由于
R18
返回
The layer flags: REFLECTION_FLAG

◆  SetFlags()

void SetFlags ( Int32   flags )

Sets the flags for the layer.

由于
R18
参数
[in] flags The layer flags to set: REFLECTION_FLAG

Member Data Documentation

◆  _layerDataID

Int32 _layerDataID
protected

Internal . Used to retrieve layer data from material container. Note: this ID is dynamic and could vary (based on the layer position in the list)

◆  _parent

材质 * _parent
protected

Internal . The owner of the reflection layer.