#include <c4d_baselist2d.h>
Public Types | |
typedef GeListNode | SUPER |
![]() | |
typedef PrivateChunk | SUPER |
Protected Member Functions | |
void | SetID (Int32 id) |
virtual Bool | HandleSubChunk (HyperFile *hf, Int32 id, Int32 level) |
virtual Bool | Write (HyperFile *hf) |
virtual Bool | GetDParameter (const DescID &id, GeData &data) |
virtual Bool | SetDParameter (const DescID &id, const GeData &data) |
virtual Bool | CopyToX (PrivateChunk *dest, COPYFLAGS flags, AliasTrans *trans) |
virtual Int32 | GetInstanceType () const |
Protected Attributes | |
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 |
Private Attributes | |
String | m_name |
BaseLink | mp_layer |
GeMarker | m_marker |
UniqueIDArray * | l_uniquearray |
DynamicDescription | dynamicdescription |
Friends | |
class | RootList2D |
class | RootShader |
class | RootCKey |
class | RootCTrack |
class | RootObject |
class | RootMultipass |
class | RootVideoPost |
class | BaseDocument |
class | RootRenderData |
class | BaseShader |
class | BaseList4D |
class | BaseObject |
class | WeightTagData |
class | RootBaseDraw |
class | RootPluginNode |
class | BaseOverrideData |
class | BaseSceneHook |
class | PluginNode |
Constructor/Destructor | |
BaseList2D () | |
virtual | ~BaseList2D () |
Navigation | |
BaseList2D * | GetNext () |
BaseList2D * | GetPred () |
Node Data | |
NodeData * | GetNodeData () |
void | SetNodeData (NodeData *data) |
Bit | |
void | SetBit (Int32 mask) |
Bool | GetBit (Int32 mask) |
void | DelBit (Int32 mask) |
void | ToggleBit (Int32 mask) |
Int32 | GetAllBits () |
void | SetAllBits (Int32 bits) |
Data | |
BaseContainer | GetData () |
BaseContainer * | GetDataInstance () |
BaseContainer & | GetDataInstanceRef () |
Name | |
const String & | GetName () |
void | SetName (const String &new_name) |
Marker | |
const GeMarker & | GetMarker () const |
void | SetMarker (const GeMarker &m) |
Unique ID | |
Bool | AddUniqueID (Int32 appid, const Char *const mem, Int bytes) |
Bool | FindUniqueID (Int32 appid, const Char *&mem, Int &bytes) const |
Int32 | GetUniqueIDCount () const |
Bool | GetUniqueIDIndex (Int32 idx, Int32 &id, const Char *&mem, Int &bytes) const |
Shader | |
BaseShader * | GetFirstShader () |
Bool | InsertShader (BaseShader *shader, BaseShader *pred=nullptr) |
Bool | InsertShaderLast (BaseShader *shader) |
CTrack | |
RootCTrack * | GetCTrackRoot () |
CTrack * | GetFirstCTrack () |
CTrack * | FindCTrack (const DescID &id) |
Bool | AppendCTrack (CTrack *t) |
void | InsertTrackSorted (CTrack *track) |
Type | |
virtual Int32 | GetType () const |
virtual Int32 | GetDiskType () const |
Layer | |
LayerObject * | GetLayerObject () |
void | SetLayerObject (LayerObject *layer) |
const LayerData * | GetLayerData (BaseDocument *doc, Bool rawdata=false) |
Bool | SetLayerData (BaseDocument *doc, const LayerData &data) |
Miscellaneous | |
virtual BaseList2D * | GetClone (COPYFLAGS flags, AliasTrans *trans) |
DynamicDescription * | GetDynamicDescription () |
virtual Bool | IsBaseList () |
virtual void | Remove () |
Bool | SetDescIDState (const DescID &id, DESCIDSTATE descidstate) |
DESCIDSTATE | GetDescIDState (const DescID &id, Bool tolerant) const |
RootPluginNode * | GetOverrideRoot () |
BaseOverride * | GetFirstOverride () |
virtual Bool | TranslateDescID (const DescID &id, DescID &res_id, GeListNode *&res_at) |
Represents a node in a 2D list.
typedef GeListNode SUPER |
BaseList2D | ( | ) |
Default constructor.
|
virtual |
Default destructor.
|
virtual |
Reimplemented from GeListNode.
Reimplemented in PluginNode, CTrack, BaseDocument, BaseObject, UVWTag, DisplayTag, BaseOverride, BaseTake, CCurve, NormalTag, BaseTag, VertexColorTag, SplineObject, TangentTag, CKey, RenderData, BaseOverrideGroup, BaseVideoPost, Material, BaseDraw, PolygonObject, ViewPanel, LayerObject, SegmentTag, BaseList4D, BaseMaterial, BaseSceneHook, BaseShader, MultipassObject, PointObject, SelectionTag, SoftSelectionTag, CompositingTag, PointTag, PolygonTag, TextureTag, and VertexMapTag.
|
protected |
Private.
Reimplemented from GeListNode.
Reimplemented in BaseDocument, CTrack, CKey, CCurve, Material, RenderData, BaseMaterial, BaseDraw, BaseTag, UVWTag, BaseShader, VertexColorTag, BaseVideoPost, TextureTag, NormalTag, FieldLayer, BaseObject, MultipassObject, DisplayTag, TangentTag, VertexMapTag, PointTag, PolygonTag, SelectionTag, PluginNode, BaseSceneHook, CompositingTag, ViewPanel, SplineObject, LayerObject, SegmentTag, and BaseList4D.
Private.
Reimplemented from GeListNode.
Reimplemented in BaseDocument, CTrack, CKey, CCurve, Material, RenderData, BaseMaterial, BaseDraw, BaseTag, UVWTag, BaseShader, VertexColorTag, BaseVideoPost, TextureTag, NormalTag, FieldLayer, MultipassObject, BaseObject, DisplayTag, TangentTag, VertexMapTag, PointTag, PolygonTag, SelectionTag, PluginNode, BaseSceneHook, ViewPanel, SplineObject, LayerObject, SegmentTag, and BaseList4D.
Reimplemented from PrivateChunk.
Reimplemented in CTrack, CKey, RenderData, TextureTag, UVWTag, BaseTag, BaseDocument, BaseObject, DisplayTag, LayerObject, BaseMaterial, and Material.
Reimplemented from PrivateChunk.
Reimplemented in CTrack, CKey, RenderData, TextureTag, UVWTag, BaseTag, BaseDocument, BaseObject, DisplayTag, LayerObject, BaseMaterial, and Material.
|
protectedvirtual |
Reimplemented from GeListNode.
Reimplemented in Material, RenderData, BaseMaterial, BaseDraw, UVWTag, BaseVideoPost, BaseDocument, MultipassObject, DisplayTag, TangentTag, ViewPanel, BaseShader, CTrack, CKey, CCurve, BaseTag, VertexColorTag, NormalTag, BaseObject, PointTag, PolygonTag, SoftSelectionTag, SelectionTag, BaseSceneHook, PluginNode, SegmentTag, VertexMapTag, FieldLayer, and LayerObject.
|
protectedvirtual |
Reimplemented from PrivateChunk.
Reimplemented in BaseObject, BaseTag, BaseMaterial, BaseVideoPost, and BaseShader.
BaseList2D* GetNext | ( | ) |
Gets the next base list in the list.
BaseList2D* GetPred | ( | ) |
Gets the previous base list in the list.
NodeData* GetNodeData | ( | ) |
Gets the node data of the object.
void SetNodeData | ( | NodeData * | data | ) |
Sets the node data of the object.
[in] | data | The node data to set. The object takes over the ownership of the pointed node data. |
void SetBit | ( | Int32 | mask | ) |
Sets the base list bit flags denoted by mask to true.
[in] | mask | Bit mask of the flags. |
Gets the state of the base list bit flags denoted by mask.
[in] | mask | Bit mask of the flags. |
void DelBit | ( | Int32 | mask | ) |
Deletes the base list bit flags denoted by mask, i.e. sets the corresponding bit to false.
[in] | mask | Bit mask of the flags. |
void ToggleBit | ( | Int32 | mask | ) |
Toggles the state of the base list bit flags denoted by mask.
[in] | mask | Bit mask of the flags. |
Int32 GetAllBits | ( | ) |
Gets all of the base list's bit flags.
void SetAllBits | ( | Int32 | bits | ) |
Sets all of the base list's bit flags at once.
[in] | bits | New flags. |
BaseContainer GetData | ( | ) |
Gets a copy of the base list's container.
BaseContainer* GetDataInstance | ( | ) |
Gets a pointer to the base list's container that can be changed directly.
BaseContainer& GetDataInstanceRef | ( | ) |
Retrieves a reference to the object container that can be changed directly.
const String& GetName | ( | ) |
Gets the name of the base list.
void SetName | ( | const String & | new_name | ) |
Sets the name of the object.
[in] | new_name | The new name. |
const GeMarker& GetMarker | ( | ) | const |
Gets the object's marker.
void SetMarker | ( | const GeMarker & | m | ) |
Sets the object's marker.
[in] | m | The new object's marker. |
Adds unique ID data to the base list.
[in] | appid | Unique application ID. Has to be registered at MAXON and obtained from http://www.plugincafe.com. |
[in] | mem | Pointer to a block of memory. Used for instance to store the name of a software vendor. |
[in] | bytes | Length of mem memory block. |
Checks for a specific unique application ID data.
[in] | appid | Unique application ID. Has to be registered at MAXON and obtained from http://www.plugincafe.com. |
[in] | mem | Assigned a pointer to a block of memory. Used for instance to read the name of a software vendor. |
[in] | bytes | Assigned the length of mem block. |
Int32 GetUniqueIDCount | ( | ) | const |
Gets the number of unique IDs.
Gets the idx-th unique ID data.
[in] | idx | Unique ID index. |
[in] | id | Assigned the unique ID. |
[in] | mem | Assigned a pointer to a block of memory. Used for instance to read the name of a software vendor. |
[in] | bytes | Assigned the length of mem block. |
BaseShader* GetFirstShader | ( | ) |
Gets the first shader of the base list.
Example 1: A tag references a shader. The shader must be inserted into the tag using InsertShader();. Example 2: A Shader (A) references another shader (B): the shader B must be child of the shader A.
Bool InsertShader | ( | BaseShader * | shader, |
BaseShader * | pred = nullptr |
||
) |
Inserts a shader in the base list's shader list.
[in] | shader | The shader to insert. The object takes over the ownership of the pointed shader. |
[in] | pred | The shader to insert the new shader after, or nullptr (default) to insert the new shader first. The pointed shader must already be inserted into the list. |
Bool InsertShaderLast | ( | BaseShader * | shader | ) |
Inserts a shader in the base list's shader list as last shader.
[in] | shader | The shader to insert. The object takes over the ownership of the pointed shader. |
RootCTrack* GetCTrackRoot | ( | ) |
Gets the track root of the base list.
CTrack* GetFirstCTrack | ( | ) |
Gets the first track of the base list.
Finds the track for the specified description id.
[in] | id | The description ID for the searched track. |
Appends a track and automatically places it at the right place (so that Y comes after X for example).
[in] | t | The track to append. |
void InsertTrackSorted | ( | CTrack * | track | ) |
Inserts a track and automatically places it at the right place (so that Y comes after X for example).
[in] | track | The track to insert. |
|
virtual |
Gets the type of the base list.
Reimplemented from PrivateChunk.
Reimplemented in CTrack, BaseDocument, BaseShader, BaseTag, BaseVideoPost, BaseMaterial, SplineObject, PolygonObject, RenderData, PointObject, PluginNode, BaseSceneHook, and ViewPanel.
|
virtual |
Gets the unique disk type of the base list.
Reimplemented from GeListNode.
Reimplemented in CTrack, BaseMaterial, BaseShader, BaseTag, BaseVideoPost, BaseObject, FieldLayer, PluginNode, BaseSceneHook, SplineObject, PointObject, and PolygonObject.
LayerObject* GetLayerObject | ( | ) |
Gets the layer for the base list.
void SetLayerObject | ( | LayerObject * | layer | ) |
Sets the layer for the base list.
[in] | layer | The layer to set. The object takes over the ownership of the pointed layer. |
const LayerData* GetLayerData | ( | BaseDocument * | doc, |
Bool | rawdata = false |
||
) |
Gets the layer data for the object.
[in] | doc | The document for the operation. |
[in] | rawdata | Usually GetLayerData() takes special global modes like SOLO layer automatically into account. To get the original layer values without any additional global changes set rawdata to true. |
Bool SetLayerData | ( | BaseDocument * | doc, |
const LayerData & | data | ||
) |
Sets the layer data for the object.
[in] | doc | The document for the operation. |
[in] | data | The new layer data. |
|
virtual |
Gets a copy of the base list.
[in] | flags | Flags for the clone. |
[in] | trans | An alias translator for the operation. Can be nullptr. The caller owns the pointed object. |
Reimplemented from GeListNode.
Reimplemented in RenderData, CKey, BaseShader, LayerObject, CTrack, BaseDocument, BaseObject, BaseDraw, BaseTag, BaseVideoPost, FieldLayer, MultipassObject, BaseMaterial, PluginNode, BaseSceneHook, and ViewPanel.
DynamicDescription* GetDynamicDescription | ( | ) |
Gets the dynamic description of the base list. Also known as the User Data part of the Attribute Manager.
|
virtual |
Checks if it is a base list.
Reimplemented from GeListNode.
|
virtual |
Removes the node from its list.
Reimplemented in CTrack, CCurve, and BaseList4D.
Bool SetDescIDState | ( | const DescID & | id, |
DESCIDSTATE | descidstate | ||
) |
Sets the state for the description id.
[in] | id | The description ID. |
[in] | descidstate | The new description ID state: DESCIDSTATE |
DESCIDSTATE GetDescIDState | ( | const DescID & | id, |
Bool | tolerant | ||
) | const |
Gets the state of a description id.
[in] | id | The description ID. |
[in] | tolerant | If set to true a valid state is returned even though the description ID do not match-completly. This can be useful for descriptions with several levels. Take this description ID for example: DescID(DescLevel(1000, DTYPE_VECTOR, 0), DescLevel(1, DTYPE_REAL, 0))
DescID(DescLevel(1000, DTYPE_VECTOR, 0))
|
RootPluginNode* GetOverrideRoot | ( | ) |
Private.
BaseOverride* GetFirstOverride | ( | ) |
Private.
|
virtual |
Private.
Reimplemented from GeListNode.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |