- Cal3D 0.11 API Reference -

Public Member Functions | Protected Attributes | List of all members
CalCoreMorphKeyframe Class Reference

The core keyframe class. More...

#include <coremorphkeyframe.h>

Public Member Functions

 CalCoreMorphKeyframe ()
 Constructs the core keyframe instance. More...
 
virtual ~CalCoreMorphKeyframe ()
 Destructs the core keyframe instance. More...
 
bool create ()
 Creates the core keyframe instance. More...
 
void destroy ()
 Destroys the core keyframe instance. More...
 
float getTime () const
 Returns the time. More...
 
void setTime (float time)
 Sets the time. More...
 
float getWeight () const
 Returns the weight. More...
 
void setWeight (float)
 Sets the weight. More...
 

Protected Attributes

float m_time
 
float m_weight
 

Detailed Description

The core keyframe class.

Constructor & Destructor Documentation

◆ CalCoreMorphKeyframe()

CalCoreMorphKeyframe::CalCoreMorphKeyframe ( )

Constructs the core keyframe instance.

This function is the default constructor of the core keyframe instance.

◆ ~CalCoreMorphKeyframe()

CalCoreMorphKeyframe::~CalCoreMorphKeyframe ( )
virtual

Destructs the core keyframe instance.

This function is the destructor of the core keyframe instance.

Member Function Documentation

◆ create()

bool CalCoreMorphKeyframe::create ( )

Creates the core keyframe instance.

This function creates the core keyframe instance.

Returns
One of the following values:
  • true if successful
  • false if an error happend

◆ destroy()

void CalCoreMorphKeyframe::destroy ( )

Destroys the core keyframe instance.

This function destroys all data stored in the core keyframe instance and frees all allocated memory.

◆ getTime()

float CalCoreMorphKeyframe::getTime ( ) const

Returns the time.

This function returns the time of the core keyframe instance.

Returns
The time in seconds.

◆ getWeight()

float CalCoreMorphKeyframe::getWeight ( ) const

Returns the weight.

This function returns the weight of the core keyframe instance.

Returns
The weight as vector.

◆ setTime()

void CalCoreMorphKeyframe::setTime ( float  time)

Sets the time.

This function sets the time of the core keyframe instance.

Parameters
rotationThe time in seconds.

◆ setWeight()

void CalCoreMorphKeyframe::setWeight ( float  weight)

Sets the weight.

This function sets the weight of the core keyframe instance.

Parameters
weightfloat

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

Generated by The Cal3D Team with Doxygen 1.8.14