# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::IAnimatedValue Class Reference

A value handled by the animation system. More...

#include <animated_value.h>

Inheritance diagram for NL3D::IAnimatedValue:

NL3D::CAnimatedValueBlendable NL3D::CAnimatedValueBlendable< CQuat > NL3D::CAnimatedValueBlendable< CVector > NL3D::CAnimatedValueBlendable< float > NL3D::CAnimatedValueBlendable< NLMISC::CQuat > NL3D::CAnimatedValueBlendable< NLMISC::CRGBA > NL3D::CAnimatedValueBlendable< sint32 > NL3D::CAnimatedValueNotBlendable NL3D::CAnimatedValueNotBlendable< bool > NL3D::CAnimatedValueNotBlendable< std::string > List of all members.

Public Methods

virtual void blend (const IAnimatedValue &value, float blendFactor)=0
 The blend method. More...

virtual void affect (const IAnimatedValue &value)=0
 An assignation method. More...


Detailed Description

A value handled by the animation system.

This value must be managed by a IAnimatable object.

Author:
Cyril 'Hulud' Corvazier , Nevrax France
Date:
2001

Definition at line 47 of file animated_value.h.


Member Function Documentation

virtual void NL3D::IAnimatedValue::affect const IAnimatedValue &    value [pure virtual]
 

An assignation method.

This method assign a values in the object.

Parameters:
value  is the new value.

Implemented in NL3D::CAnimatedValueBlendable.

virtual void NL3D::IAnimatedValue::blend const IAnimatedValue &    value,
float    blendFactor
[pure virtual]
 

The blend method.

This method blend two the animated values and store the result in the object. The two first args can be reference on the object itself. Idealy, it performs the operation this->value=(this->value*blendFactor + value*(1.f-blendFactor))

Parameters:
value  is the first value in the blend operation.
blendFactor  must be in the range [0..1].

Implemented in NL3D::CAnimatedValueBlendable.


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