Kanzi  3.9.4
Kanzi Engine API
kanzi::MorphRuntime Class Reference

Contains morph weights for a morph. More...

#include <kanzi/core.ui/graphics3d/morph_runtime.hpp>

Public Member Functions

size_t getChannelCount () const
 Gets size of morph runtime. More...
 
const float * getData () const
 Get float data array for morph weights. More...
 
void initialize (const Morph &morph)
 Initialize morph runtime from morph. More...
 
float & operator[] (size_t index)
 Access operator. More...
 
const float & operator[] (size_t index) const
 Const access operator. More...
 
void resize (size_t channelCount)
 Resizes the data array for morph weights. More...
 

Static Public Member Functions

static MorphRuntimeSharedPtr create ()
 Create a morph runtime. More...
 
static MorphRuntimeSharedPtr create (const Morph &morph)
 Create a morph runtime. More...
 

Protected Member Functions

 MorphRuntime ()
 Constructor. More...
 
 MorphRuntime (const Morph &morph)
 Constructor. More...
 

Detailed Description

Contains morph weights for a morph.

Constructor & Destructor Documentation

◆ MorphRuntime() [1/2]

kanzi::MorphRuntime::MorphRuntime ( )
explicitprotected

Constructor.

◆ MorphRuntime() [2/2]

kanzi::MorphRuntime::MorphRuntime ( const Morph morph)
explicitprotected

Constructor.

Member Function Documentation

◆ create() [1/2]

static MorphRuntimeSharedPtr kanzi::MorphRuntime::create ( )
static

Create a morph runtime.

Returns
Uninitialized morph runtime.

◆ create() [2/2]

static MorphRuntimeSharedPtr kanzi::MorphRuntime::create ( const Morph morph)
static

Create a morph runtime.

Parameters
morphMorph to acquire information from when preparing then morph runtime.
Returns
Initialized morph runtime.

◆ initialize()

void kanzi::MorphRuntime::initialize ( const Morph morph)

Initialize morph runtime from morph.

Parameters
morphMorph to acquire information from when preparing.

◆ getData()

const float* kanzi::MorphRuntime::getData ( ) const
inline

Get float data array for morph weights.

Returns
Floating-point array of morph weights.

◆ getChannelCount()

size_t kanzi::MorphRuntime::getChannelCount ( ) const
inline

Gets size of morph runtime.

◆ operator[]() [1/2]

float& kanzi::MorphRuntime::operator[] ( size_t  index)
inline

Access operator.

Parameters
indexWeight index.
Returns
Weight at index.

◆ operator[]() [2/2]

const float& kanzi::MorphRuntime::operator[] ( size_t  index) const
inline

Const access operator.

Parameters
indexWeight index.
Returns
Weight at index.

◆ resize()

void kanzi::MorphRuntime::resize ( size_t  channelCount)
inline

Resizes the data array for morph weights.

Parameters
channelCountThe new number of weights.

The documentation for this class was generated from the following file: