MorphChannel Class Reference

Description

A collection of morph shapes that are sequentially blended together.

Each shape has a weight in range [0, 1] which determines at what point is that shape blended. As the channel percent moves from 0 to 1, different shapes will be blended with those before or after them, depending on their weight.

Inherits IReflectable.

Methods

const StringgetName () const
 Returns the name of the channel. More...
 
UINT32 getNumShapes () const
 Returns the number of available morph shapes. More...
 
SPtr< MorphShapegetShape (UINT32 idx) const
 Returns the morph shape at the specified index. 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< MorphChannelcreate (const String &name, const Vector< SPtr< MorphShape >> &shapes)
 Creates a new channel from a set of morph shapes. More...
 
static RTTITypeBasegetRTTIStatic ()
 
static SPtr< MorphChannelcreateEmpty ()
 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<MorphChannel> create ( const String name,
const Vector< SPtr< MorphShape >> &  shapes 
)
static

Creates a new channel from a set of morph shapes.

static SPtr<MorphChannel> createEmpty ( )
static

Creates MorphShapes with no data.

You must populate its data manually.

Note
For serialization use only.
const String& getName ( void  ) const

Returns the name of the channel.

UINT32 getNumShapes ( ) const

Returns the number of available morph shapes.

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.

SPtr<MorphShape> getShape ( UINT32  idx) const

Returns the morph shape at the specified index.