Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

OpenCAL::Blendable< C > Class Template Reference

#include <Blendable.h>

List of all members.

Public Member Functions

virtual void blend (float u, const C &dest)=0
virtual void blend (float u, const C &source, const C &dest)=0
virtual C blended (float u, const C &dest) const =0
virtual C blended (float u, const C &source, const C &dest) const =0


Detailed Description

template<class C>
class OpenCAL::Blendable< C >

Instances of this class are able to blend to another instance, for use in keyframing.

Definition at line 26 of file Blendable.h.


Member Function Documentation

template<class C>
virtual void OpenCAL::Blendable< C >::blend float  u,
const C &  source,
const C &  dest
[pure virtual]
 

Makes this instance a blend between two other instances

Parameters:
u: the blend factor, between 0 and 1
source: where to blend from
dest: where to blend to

template<class C>
virtual void OpenCAL::Blendable< C >::blend float  u,
const C &  dest
[pure virtual]
 

Blends this instance linearly to another.

Parameters:
u: the blend factor, between 0 and 1
dest: where to blend to

template<class C>
virtual C OpenCAL::Blendable< C >::blended float  u,
const C &  source,
const C &  dest
const [pure virtual]
 

Calculates a blend between two instances

Parameters:
u: the blend factor, between 0 and 1
source: where to blend from
dest: where to blend to
Returns:
The blended instance

template<class C>
virtual C OpenCAL::Blendable< C >::blended float  u,
const C &  dest
const [pure virtual]
 

Calculates a blend between this instance and another

Parameters:
u: the blend factor, between 0 and 1
dest: where to blend to
Returns:
The blended instance


The documentation for this class was generated from the following file:
Generated on Sun Aug 15 19:19:37 2004 for OpenCAL: Open Computer Animation Library by doxygen 1.3.8