Open Search
    ReflectionLayer Class Reference

    #include <c4d_reflection.h>

    Detailed Description

    A reflection layer in a material.

    See also
    Material Reflection Layers.

    Public Member Functions

     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
     
    Material_parent
     

    Constructor & Destructor Documentation

    ◆ ReflectionLayer()

    Default constructor.

    Member Function Documentation

    ◆ GetLayerID()

    Int32 GetLayerID ( ) const

    Retrieves the layer ID.

    Since
    R18
    Returns
    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.

    Returns
    The layer base data ID.

    ◆ GetName()

    String GetName ( ) const

    Retrieves the layer name.

    Since
    R18
    Returns
    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.

    Since
    R18
    Parameters
    [in]nameThe layer name.

    ◆ GetFlags()

    Int32 GetFlags ( ) const

    Retrieves the flags for the layer.

    Since
    R18
    Returns
    The layer flags: REFLECTION_FLAG

    ◆ SetFlags()

    void SetFlags ( Int32  flags)

    Sets the flags for the layer.

    Since
    R18
    Parameters
    [in]flagsThe 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

    Material* _parent
    protected

    Internal. The owner of the reflection layer.