#include <c4d_takedata.h>
Protected Member Functions | |
| TakeData () | |
| ~TakeData () | |
Protected Attributes | |
| BaseDocument * | _doc |
Friends | |
| class | BaseDocument |
Miscellaneous | |
| Bool | Set (BaseDocument *doc) |
| BaseDocument * | GetDocument () |
| BaseTake * | GetMainTake () |
Override Enabling | |
| OVERRIDEENABLING | GetOverrideEnabling () |
| Bool | CheckOverrideEnabling (OVERRIDEENABLING mask) |
Take | |
| BaseTake * | GetCurrentTake () |
| Bool | SetCurrentTake (BaseTake *take) |
| BaseTake * | AddTake (const String &name, BaseTake *parent, BaseTake *cloneFrom=nullptr) |
| void | DeleteTake (BaseTake *take) |
| void | InsertTake (BaseTake *takeToMove, BaseTake *destTake, Int32 insertMode) |
| BaseOverride * | FindOverride (BaseTake *take, BaseList2D *op) |
| BaseOverride * | AddOverride (const OverrideDataSet ¶m) |
| void | DeleteOverride (const OverrideDataSet ¶m) |
| BaseOverride * | FindOverrideCounterPart (BaseOverride *overrideNode, const DescID &descId, BaseTake *&resultTake) |
| BaseOverride * | FindOverrideInHierarchy (BaseTake *take, BaseList2D *op, const DescID &descId, BaseTake *&resultTake) |
Stores the Take System related data of a BaseDocument.
|
protected |
|
protected |
| Bool Set | ( | BaseDocument * | doc | ) |
Sets the internal document link for the TakeData. Private.
| [in] | doc | The document to attach to the TakeData. The caller owns the pointed BaseDocument. |
| BaseDocument* GetDocument | ( | ) |
Retrieves the document for the TakeData.
| BaseTake* GetMainTake | ( | ) |
Retrieves the Main Take.
| OVERRIDEENABLING GetOverrideEnabling | ( | ) |
Retrieves the ability for the Take System to override a specific kind of node based on global switch.
| Bool CheckOverrideEnabling | ( | OVERRIDEENABLING | mask | ) |
Checks for a specific OVERRIDEENABLING.
| [in] | mask | The Take System override enabling mask: OVERRIDEENABLING |
| BaseTake* GetCurrentTake | ( | ) |
Retrieves a pointer to the current Take.
Sets the current Take.
| [in] | take | The Take to set. If nullptr is passed the Main Take will be set. The caller owns the pointed BaseTake. |
Creates and inserts a new Take.
| [in] | name | The name of the Take to add. If an empty string is passed default Take name will be used. |
| [in] | parent | Optionally pass a parent Take otherwise new Take will be added at the end of the list under the Main Take. The caller owns the pointed BaseTake. |
| [in] | cloneFrom | UNUSED, NOT SUPPORTED YET. (Optionally pass a Take the new Take will be cloned from. The caller owns the pointed BaseTake.) |
| void DeleteTake | ( | BaseTake * | take | ) |
Deletes a Take and all connected overrides. If Take is the current the Main Take will be set as current.
| [in] | take | The Take to delete. The caller owns the pointed BaseTake. |
Moves a Take in the hierarchy in a safe way.
The Take system has several hierarchy dependencies.
If a Take is moved while it is current or while it is a child of the Current Take then this would need to manually take care of all data sorting and handling.
This function do all this work for you.
| [in] | takeToMove | The Take to move. The caller owns the pointed BaseTake. |
| [in] | destTake | The parent destination Take. If nullptr the Main Take will be used. The caller owns the pointed BaseTake. |
| [in] | insertMode | The insertion mode. Can be INSERT_BEFORE or INSERT_AFTER or INSERT_UNDER. |
| BaseOverride* FindOverride | ( | BaseTake * | take, |
| BaseList2D * | op | ||
| ) |
Private.
| BaseOverride* AddOverride | ( | const OverrideDataSet & | param | ) |
Private.
| void DeleteOverride | ( | const OverrideDataSet & | param | ) |
Private.
| BaseOverride* FindOverrideCounterPart | ( | BaseOverride * | overrideNode, |
| const DescID & | descId, | ||
| BaseTake *& | resultTake | ||
| ) |
Private.
| BaseOverride* FindOverrideInHierarchy | ( | BaseTake * | take, |
| BaseList2D * | op, | ||
| const DescID & | descId, | ||
| BaseTake *& | resultTake | ||
| ) |
Private.
|
friend |
|
protected |