kanzi::MorphRuntime Class Reference

Contains morph weights for a morph. More...

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

Public Member Functions

void initialize (const Morph &morph)
 Initialize morph runtime from morph. More...
 
const float * getData () const
 Get float data array for morph weights. More...
 
size_t getChannelCount () const
 Gets size of morph runtime. More...
 
float & operator[] (size_t index)
 Access operator. More...
 
const float & operator[] (size_t index) const
 Const access operator. 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

kanzi::MorphRuntime::MorphRuntime ( )
explicitprotected

Constructor.

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

Constructor.

Member Function Documentation

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

Create a morph runtime.

Returns
Uninitialized morph runtime.
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.
void kanzi::MorphRuntime::initialize ( const Morph morph)

Initialize morph runtime from morph.

Parameters
morphMorph to acquire information from when preparing.
const float* kanzi::MorphRuntime::getData ( ) const
inline

Get float data array for morph weights.

Returns
Floating-point array of morph weights.
size_t kanzi::MorphRuntime::getChannelCount ( ) const
inline

Gets size of morph runtime.

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

Access operator.

Parameters
indexWeight index.
Returns
Weight at index.
const float& kanzi::MorphRuntime::operator[] ( size_t  index) const
inline

Const access operator.

Parameters
indexWeight index.
Returns
Weight at index.

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