#include <c4d_motiontransfer.h>
Public Member Functions | |
| MTCharacterBodyPart (MTCharacterBodyPart &&src) | |
| ~MTCharacterBodyPart () | |
Private Member Functions | |
| MAXON_DISALLOW_COPY_AND_ASSIGN (MTCharacterBodyPart) | |
| MTCharacterBodyPart ()=default | |
Private Attributes | |
| MTBodyPartParameters | _parameters |
| MTCharacterBodyPart * | _parent |
| maxon::BaseArray< MTCharacterBodyPart * > | _children |
Alloc/Free | |
| using | IsAllocType = std::true_type |
| static MTCharacterBodyPart * | Alloc () |
| static MTCharacterBodyPart * | Alloc (const maxon::SourceLocation &) |
| static void | Free (MTCharacterBodyPart *&ptr) |
Hierarchy helper | |
| maxon::Result< void > | InsertChild (MTCharacterBodyPart *child) |
| maxon::Result< void > | DeleteChild (Int index) |
| maxon::Result< MTCharacterBodyPart * > | GetChild (Int index) const |
| Int | GetChildCount () const |
| MTCharacterBodyPart * | GetParent () const |
Parameters helper | |
| maxon::Result< void > | SetParameters (const MTBodyPartParameters ¶m) |
| MTBodyPartParameters & | GetParameters () |
| using IsAllocType = std::true_type |
|
privatedefault |
| MTCharacterBodyPart | ( | MTCharacterBodyPart && | src | ) |
| ~MTCharacterBodyPart | ( | ) |
|
private |
|
static |
Allocates a MTCharacterBodyPart. Destroy the allocated MTCharacterBodyPart with Free(). Use AutoAlloc to automate the allocation and destruction based on scope.
|
static |
Allocates a MTCharacterBodyPart. Destroy the allocated MTCharacterBodyPart with Free(). Use AutoAlloc to automate the allocation and destruction based on scope.
|
static |
Destructs MTCharacterBodyPart allocated with Alloc(). Use AutoAlloc to automate the allocation and destruction based on scope. All the children will be freed.
| [in,out] | ptr | The MTCharacterBodyPart to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards. |
| maxon::Result<void> InsertChild | ( | MTCharacterBodyPart * | child | ) |
Inserts the given child.
| [in] | child | Child to insert. |
| maxon::Result<void> DeleteChild | ( | Int | index | ) |
Deletes the child at the given index.
| [in] | index | Child index. |
| maxon::Result<MTCharacterBodyPart*> GetChild | ( | Int | index | ) | const |
Gets the child at the given index.
| [in] | index | Child index. |
| Int GetChildCount | ( | ) | const |
Gets the child count.
| MTCharacterBodyPart* GetParent | ( | ) | const |
Gets the parent pointer if any.
| maxon::Result<void> SetParameters | ( | const MTBodyPartParameters & | param | ) |
Sets the parameter for the body part.
| [in] | param | Parameters. |
| MTBodyPartParameters& GetParameters | ( | ) |
Gets the parameters structure.
|
private |
|
private |
|
private |