#include <c4d_baselist.h>
Represents a C4DAtom that resides in a 4D list.
Private Member Functions | |
GeListNode () | |
~GeListNode () | |
Navigation | |
GeListNode * | GetNext () |
const GeListNode * | GetNext () const |
GeListNode * | GetPred () |
const GeListNode * | GetPred () const |
GeListNode * | GetDown () |
const GeListNode * | GetDown () const |
GeListNode * | GetUp () |
const GeListNode * | GetUp () const |
GeListNode * | GetDownLast () |
const GeListNode * | GetDownLast () const |
Insertion | |
void | InsertBefore (GeListNode *bl) |
void | InsertAfter (GeListNode *bl) |
void | InsertUnder (GeListNode *bl) |
void | InsertUnderLast (GeListNode *bl) |
void | Remove () |
void | FlushChilds () |
void | MoveChildrenTo (GeListNode *dest) |
Miscellaneous | |
GeListHead * | GetListHead () |
const GeListHead * | GetListHead () const |
Int32 | GetNodeID (Int32 index=0) const |
template<typename CAST > | |
const CAST * | GetNodeData (Int32 index=0) const |
template<typename CAST > | |
CAST * | GetNodeData (Int32 index=0) |
void | SetCustomData (GeListNode *node) |
GeListNode * | GetCustomData () |
const GeListNode * | GetCustomData () const |
const BaseDocument * | GetDocument () const |
BaseDocument * | GetDocument () |
maxon::Result< Bool > | GetBranchInfo (const maxon::ValueReceiver< const BranchInfo & > &info, GETBRANCHINFO flags) const |
Bool | IsDocumentRelated () const |
Int32 | GetInfo () const |
Nbit | |
Bool | GetNBit (NBIT bit) const |
UInt32 | GetNBitMask (Int32 index) const |
Bool | ChangeNBit (NBIT bit, NBITCONTROL bitmode) |
|
private |
|
private |
GeListNode* GetNext | ( | ) |
Gets the next node in the list.
const GeListNode* GetNext | ( | ) | const |
GeListNode* GetPred | ( | ) |
Gets the previous node in the list.
const GeListNode* GetPred | ( | ) | const |
GeListNode* GetDown | ( | ) |
Gets the first child node.
const GeListNode* GetDown | ( | ) | const |
GeListNode* GetUp | ( | ) |
Gets the parent node.
const GeListNode* GetUp | ( | ) | const |
GeListNode* GetDownLast | ( | ) |
Gets the last child node.
const GeListNode* GetDownLast | ( | ) | const |
void InsertBefore | ( | GeListNode * | bl | ) |
Inserts the node before bl.
[in] | bl | The node to insert before. The caller owns the pointed node. |
void InsertAfter | ( | GeListNode * | bl | ) |
Inserts the node after bl.
[in] | bl | The node to insert after. The caller owns the pointed node. |
void InsertUnder | ( | GeListNode * | bl | ) |
Inserts the node under bl as the first child.
[in] | bl | The node to insert under. The caller owns the pointed node. |
void InsertUnderLast | ( | GeListNode * | bl | ) |
Inserts the node as the last child of bl.
[in] | bl | The node to insert under as last child. The caller owns the pointed node. |
void Remove | ( | ) |
Removal Removes the node from its list.
void FlushChilds | ( | ) |
Deletes all childs in the GetDown() branch.
void MoveChildrenTo | ( | GeListNode * | dest | ) |
Moves all children from this to dest No notifications are send around, this is for internal use if you know what you do. dest will call FlushChilds() before moving the objects.
GeListHead* GetListHead | ( | ) |
Retrieves the list head for the node.
const GeListHead* GetListHead | ( | ) | const |
Gets the ID of the node optionally for the given level index.
[in] | index | For multi-nodes (two or more nodes virtually linked together) retrieve the ID for every level index. For example GvNode is a level 2 multi-nodes. They consist of one list element (GeListNode or BaseList2D) and two virtual NodeData derivate: one is private and one is used by the operator. |
const CAST* GetNodeData | ( | Int32 | index = 0 | ) | const |
Retrieves the data for the node.
template <typename CAST> CAST*
. [in] | index | For multi-nodes (two or more nodes virtually linked together) retrieve the ID for every level index. For example GvNode objects are level 2 multi-nodes. They consist of one list element (GeListNode or BaseList2D) and two virtual NodeData derivate: one is private and one is used by the operator. |
CAST* GetNodeData | ( | Int32 | index = 0 | ) |
Retrieves the data for the node.
template <typename CAST> CAST*
. [in] | index | For multi-nodes (two or more nodes virtually linked together) retrieve the ID for every level index. For example GvNode objects are level 2 multi-nodes. They consist of one list element (GeListNode or BaseList2D) and two virtual NodeData derivate: one is private and one is used by the operator. |
void SetCustomData | ( | GeListNode * | node | ) |
Sets the custom data for the node.
[in] | node | The new custom data. |
GeListNode* GetCustomData | ( | ) |
const GeListNode* GetCustomData | ( | ) | const |
const BaseDocument* GetDocument | ( | ) | const |
Retrieves the document for the node.
BaseDocument* GetDocument | ( | ) |
Retrieves the document for the node.
maxon::Result<Bool> GetBranchInfo | ( | const maxon::ValueReceiver< const BranchInfo & > & | info, |
GETBRANCHINFO | flags | ||
) | const |
Gets information about which other node types the node contains.
For example objects contain tags.
Example: Pass an array of BranchInfo objects and its size, the function returns the number of filled elements:
[in] | info | ValueReceiver will be called for all found BranchInfo structures. |
[in] | flags | Flags: GETBRANCHINFO |
Bool IsDocumentRelated | ( | ) | const |
Checks if the node is of a type that can be inserted into a document.
Bool ChangeNBit | ( | NBIT | bit, |
NBITCONTROL | bitmode | ||
) |
Sets bits in the node state.
[in] | bit | The bit index: NBIT |
[in] | bitmode | The bit mode: NBITCONTROL |
Int32 GetInfo | ( | ) | const |
Private.