c4d_basechannel.h File Reference

Classes

class   BaseShader
class   BaseChannel

函数

Bool   HandleShaderPopupI ( BaseList2D *parent, BaseShader *¤t, Int32 value, Int param)
Bool   BuildShaderPopupMenuI ( BaseContainer *menu, BaseList2D *parent, BaseShader *current, Int param)
Bool   HandleShaderPopup (const BaseContainer &bc, const DescID &descid, Int32 value, Int param)
Bool   BuildShaderPopupMenu ( BaseContainer *menu, const BaseContainer &bc, const DescID &descid, Int param)
String   GetChannelName ( Int32 channelid)

Function Documentation

◆  HandleShaderPopupI()

Bool HandleShaderPopupI ( BaseList2D parent ,
BaseShader *&  current ,
Int32   value ,
Int   param  
)

Simplifies the task of shader operations: undo handling, removing existing shaders, keeping track of the shader trees etc. ('I' stands for isolated.)

另请参阅
HandleShaderPopup()
参数
[in] parent Element that carries the shaders. The caller owns the pointed object.
[in] current Currently set element, might be deleted, in which case the pointer is set to nullptr . The caller owns the pointed shader.
[in] value The operation: SHADERPOPUP
[in] param The parameter. Depends on value
返回
true if successful, otherwise false .

◆  BuildShaderPopupMenuI()

Bool BuildShaderPopupMenuI ( BaseContainer menu ,
BaseList2D parent ,
BaseShader current ,
Int   param  
)

Private .

◆  HandleShaderPopup()

Bool HandleShaderPopup ( const BaseContainer bc ,
const DescID descid ,
Int32   value ,
Int   param  
)

Simplifies the task of shader operations: undo handling, removing existing shaders, keeping track of the shader trees etc.

另请参阅
HandleShaderPopupI() .
参数
[in] bc A container with links to BaseList2D elements. These must be stored under increasing IDs (starting with 1 ).
[in] descid The description ID under which the shaders are stored.
[in] value The operation: SHADERPOPUP
[in] param The parameter. Depends on value
返回
true if successful, otherwise false .

◆  BuildShaderPopupMenu()

Bool BuildShaderPopupMenu ( BaseContainer menu ,
const BaseContainer bc ,
const DescID descid ,
Int   param  
)

Private .

◆  GetChannelName()

String GetChannelName ( Int32   channelid )

Retrieves the name for the given channel type ID.

参数
[in] channelid The channel type: CHANNEL
返回
The name for the channel type.