MorphShapes Class Reference

Description

Contains a set of morph channels used for morph target animation.

Each morph channel contains one or multiple shapes which are blended together depending on frame animation. Each channel is then additively blended together depending on some weight.

Inherits IReflectable.

Methods

UINT32 getNumChannels () const
 Returns the number of available morph channels. More...
 
SPtr< MorphChannelgetChannel (UINT32 idx) const
 Returns the morph channel at the specified index. More...
 
UINT32 getNumVertices () const
 Returns the number of vertices per morph shape. More...
 
RTTITypeBasegetRTTI () const override
 Returns an interface you can use to access class' Run Time Type Information. More...
 
- Methods inherited from IReflectable
bool isDerivedFrom (RTTITypeBase *base)
 Returns true if current RTTI class is derived from base (Or if it is the same type as base). More...
 
UINT32 getTypeId () const
 Returns an unique type identifier of the class. More...
 
const StringgetTypeName () const
 Returns the type name of the class. More...
 

Static methods

static SPtr< MorphShapescreate (const Vector< SPtr< MorphChannel >> &channels, UINT32 numVertices)
 Creates a new set of morph shapes. More...
 
static RTTITypeBasegetRTTIStatic ()
 
static SPtr< MorphShapescreateEmpty ()
 Creates MorphShapes with no data. More...
 
- Static methods inherited from IReflectable
static Vector< RTTITypeBase * > & getDerivedClasses ()
 Returns all classes deriving directly from IReflectable. More...
 
static SPtr< IReflectablecreateInstanceFromTypeId (UINT32 rttiTypeId)
 Creates an empty instance of a class from a type identifier. More...
 
static void _registerDerivedClass (RTTITypeBase *derivedClass)
 Called by each type deriving from IReflectable, on program load. More...
 
static RTTITypeBase_getRTTIfromTypeId (UINT32 rttiTypeId)
 Returns class' RTTI type from type id. More...
 
static bool _isTypeIdDuplicate (UINT32 typeId)
 Checks if the provided type id is unique. More...
 
static void _checkForCircularReferences ()
 Iterates over all RTTI types and reports any circular references (for example one type having a field referencing another type, and that type having a field referencing the first type). More...
 
static RTTITypeBasegetRTTIStatic ()
 Returns an interface you can use to access class' Run Time Type Information. More...
 

Method documentation

static SPtr<MorphShapes> create ( const Vector< SPtr< MorphChannel >> &  channels,
UINT32  numVertices 
)
static

Creates a new set of morph shapes.

static SPtr<MorphShapes> createEmpty ( )
static

Creates MorphShapes with no data.

You must populate its data manually.

Note
For serialization use only.
SPtr<MorphChannel> getChannel ( UINT32  idx) const

Returns the morph channel at the specified index.

UINT32 getNumChannels ( ) const

Returns the number of available morph channels.

UINT32 getNumVertices ( ) const

Returns the number of vertices per morph shape.

RTTITypeBase* getRTTI ( ) const
overridevirtual

Returns an interface you can use to access class' Run Time Type Information.

Note
You must derive your own version of RTTITypeBase, in which you may encapsulate all reflection specific operations.

Implements IReflectable.