class MorphChannel

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.

Public

Methods

GetName

const String &GetName() const

Returns the unique name of the channel.

GetShapeCount

u32 GetShapeCount() const

Returns the number of available morph shapes.

GetShape

SPtr<MorphShape> GetShape(u32 index) const

Returns the morph shape at the specified index.

GetShapes

const Vector<SPtr<MorphShape>> &GetShapes() const

Returns all morph shapes within this channel, in order from lowest to highest.

staticCreate

static SPtr<MorphChannel> Create(const String &name, const Vector<SPtr<MorphShape>> &shapes)

Creates a new channel from a set of morph shapes.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const

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

staticCreateEmpty

static SPtr<MorphChannel> CreateEmpty()

Creates MorphShapes with no data.

You must populate its data manually.

Private

Constructors

MorphChannel

MorphChannel() = default

MorphChannel

MorphChannel(const String &name, const Vector<SPtr<MorphShape>> &shapes)

Fields

mName

String mName

mShapes

Vector<SPtr<MorphShape>> mShapes