#include <c4d_baseshader.h>
Public Types | |
typedef BaseList4D | SUPER |
![]() | |
typedef BaseList2D | SUPER |
![]() | |
typedef GeListNode | SUPER |
![]() | |
typedef PrivateChunk | SUPER |
Protected Member Functions | |
virtual Int32 | GetInstanceType () const |
![]() | |
BaseList4D () | |
~BaseList4D () | |
![]() | |
void | SetID (Int32 id) |
virtual Bool | GetDParameter (const DescID &id, GeData &data) |
virtual Bool | SetDParameter (const DescID &id, const GeData &data) |
Private Member Functions | |
virtual Bool | CopyToX (PrivateChunk *dst, COPYFLAGS flags, AliasTrans *trn) |
Constructor | |
BaseShader () | |
BaseShader (Int32 type) | |
Alloc/Free | |
static BaseShader * | Alloc (Int32 type) |
static void | Free (BaseShader *s) |
Navigation | |
BaseShader * | GetNext () |
BaseShader * | GetPred () |
BaseShader * | GetUp () |
BaseShader * | GetDown () |
BaseShader * | GetDownLast () |
Type | |
virtual Int32 | GetType () const |
virtual Int32 | GetDiskType () const |
Clone | |
virtual BaseList2D * | GetClone (COPYFLAGS flags, AliasTrans *trn) |
Miscellaneous | |
Bool | Compare (BaseShader *dst) |
Bitmap Shader | |
Filename | GetFileName () |
void | SetFileName (Filename name) |
Bool | HasContent () |
Private | |
virtual Bool | HandleSubChunk (HyperFile *hf, Int32 id, Int32 level) |
virtual Bool | Write (HyperFile *hf) |
Additional Inherited Members | |
![]() | |
Int32 | m_id |
RootShader | mp_rootshader |
RootShader | mp_rootshader_hidden |
RootShader | root_shader_repository |
Int32 | l_bitfeld |
RootCTrack | mp_rootctrack |
RootPluginNode | root_override |
NotifyList * | notify_events |
DescIdStore * | keyframestore |
DescIdStore * | propstore |
BaseContainer | m_bc |
NodeData * | m_data |
![]() | |
GeAliasGoal | m_xgoal |
UInt32 | m_bits [4] |
RootList2D * | t_rootlist_parent |
RootList2D * | m_children |
BaseDocument * | parent_doc |
void * | unknownData |
Int | unknownDataSize |
Int32 | unknownDataLevel |
Int32 | pluginID |
Represents a shader in the shader tree of a channel. Call Material::GetShader() to retrieve an instance.
typedef BaseList4D SUPER |
BaseShader | ( | ) |
Default constructor.
BaseShader | ( | Int32 | type | ) |
Constructs a base shader of the given type.
[in] | type | A shader type ID. |
|
virtual |
Reimplemented from BaseList4D.
|
privatevirtual |
Reimplemented from BaseList2D.
|
protectedvirtual |
Reimplemented from BaseList2D.
|
static |
Allocates a base shader. Destroy the allocated base shader with Free().
[in] | type | A shader type ID. |
|
static |
Destructs base shaders allocated with Alloc().
[in,out] | s | The base shader to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards. |
BaseShader* GetNext | ( | ) |
Gets the next base shader in the list.
BaseShader* GetPred | ( | ) |
Gets the previous base shader in the list.
BaseShader* GetUp | ( | ) |
Gets the parent base shader of the list node.
BaseShader* GetDown | ( | ) |
Gets the first child base shader of the list node.
BaseShader* GetDownLast | ( | ) |
Gets the last child base shader of the list node.
|
virtual |
Gets the type of the shader.
Reimplemented from BaseList2D.
|
virtual |
Gets the shader's unique disk type.
Reimplemented from BaseList2D.
|
virtual |
Gets a clone/copy of the base shader.
[in] | flags | Flags for the clone. |
[in] | trn | An alias translator for the operation. Can be nullptr. The caller owns the pointed alias translator. |
Reimplemented from BaseList2D.
Bool Compare | ( | BaseShader * | dst | ) |
Checks if *this
is similar to *dst.
[in] | dst | The shader to compare with. The caller owns the pointed shader. |
Filename GetFileName | ( | ) |
void SetFileName | ( | Filename | name | ) |
Sets the texture path for bitmap shaders.
[in] | name | The texture path to set. |
Bool HasContent | ( | ) |
Checks if the texture path is set for bitmap shaders.
Private.
Reimplemented from BaseList4D.
Private.
Reimplemented from BaseList4D.