Open Search
    MTCharacterBodyPart Class Reference

    #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
     

    Hierarchy helper

    maxon::Result< void > InsertChild (MTCharacterBodyPart *child)
     
    maxon::Result< void > DeleteChild (Int index)
     
    maxon::Result< MTCharacterBodyPart * > GetChild (Int index) const
     
    Int GetChildCount () const
     
    MTCharacterBodyPartGetParent () const
     

    Parameters helper

    maxon::Result< void > SetParameters (const MTBodyPartParameters &param)
     
    MTBodyPartParametersGetParameters ()
     

    Alloc/Free

    static MTCharacterBodyPartAlloc ()
     
    static void Free (MTCharacterBodyPart *&ptr)
     

    Constructor & Destructor Documentation

    ◆ MTCharacterBodyPart() [1/2]

    MTCharacterBodyPart ( )
    privatedefault

    ◆ MTCharacterBodyPart() [2/2]

    ◆ ~MTCharacterBodyPart()

    Member Function Documentation

    ◆ MAXON_DISALLOW_COPY_AND_ASSIGN()

    MAXON_DISALLOW_COPY_AND_ASSIGN ( MTCharacterBodyPart  )
    private

    ◆ Alloc()

    static MTCharacterBodyPart* Alloc ( )
    static

    Allocates a MTCharacterBodyPart. Destroy the allocated MTCharacterBodyPart with Free(). Use AutoAlloc to automate the allocation and destruction based on scope.

    Returns
    The allocated MTCharacterBodyPart, or nullptr if the allocation failed.

    ◆ Free()

    static void Free ( MTCharacterBodyPart *&  ptr)
    static

    Destructs MTCharacterBodyPart allocated with Alloc(). Use AutoAlloc to automate the allocation and destruction based on scope. All the children will be freed.

    Parameters
    [in,out]ptrThe MTCharacterBodyPart to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards.

    ◆ InsertChild()

    maxon::Result<void> InsertChild ( MTCharacterBodyPart child)

    Inserts the given child.

    Parameters
    [in]childChild to insert.
    Returns
    OK on success

    ◆ DeleteChild()

    maxon::Result<void> DeleteChild ( Int  index)

    Deletes the child at the given index.

    Parameters
    [in]indexChild index.
    Returns
    OK on success

    ◆ GetChild()

    maxon::Result<MTCharacterBodyPart*> GetChild ( Int  index) const

    Gets the child at the given index.

    Parameters
    [in]indexChild index.
    Returns
    the child body part pointer on success.

    ◆ GetChildCount()

    Int GetChildCount ( ) const

    Gets the child count.

    Returns
    the child count.

    ◆ GetParent()

    MTCharacterBodyPart* GetParent ( ) const

    Gets the parent pointer if any.

    Returns
    parent pointer.

    ◆ SetParameters()

    maxon::Result<void> SetParameters ( const MTBodyPartParameters param)

    Sets the parameter for the body part.

    Parameters
    [in]paramparameters.
    Returns
    OK on success.

    ◆ GetParameters()

    MTBodyPartParameters& GetParameters ( )

    Gets the parameters structure.

    Returns
    the body part parameters.

    Member Data Documentation

    ◆ _parameters

    MTBodyPartParameters _parameters
    private

    ◆ _parent

    MTCharacterBodyPart* _parent
    private

    ◆ _children