NL3D::IAnimatedValue Class Reference

#include <animated_value.h>

Inheritance diagram for NL3D::IAnimatedValue:

NL3D::CAnimatedValueBlendable< T > NL3D::CAnimatedValueBlendable< CQuat > NL3D::CAnimatedValueBlendable< CVector > NL3D::CAnimatedValueBlendable< float > NL3D::CAnimatedValueBlendable< NLMISC::CAngleAxis > NL3D::CAnimatedValueBlendable< sint32 > NL3D::CAnimatedValueNotBlendable< T > NL3D::CAnimatedValueNotBlendable< bool > NL3D::CAnimatedValueNotBlendable< std::string >

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.

Public Member Functions

virtual void affect (const IAnimatedValue &value)=0
virtual void blend (const IAnimatedValue &value, float blendFactor)=0


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< T >, NL3D::CAnimatedValueNotBlendable< T >, NL3D::CAnimatedValueBlendable< float >, NL3D::CAnimatedValueBlendable< NLMISC::CQuat >, NL3D::CAnimatedValueBlendable< NLMISC::CRGBA >, NL3D::CAnimatedValueBlendable< NLMISC::CAngleAxis >, NL3D::CAnimatedValueBlendable< NLMISC::CVector >, NL3D::CAnimatedValueBlendable< CQuat >, NL3D::CAnimatedValueBlendable< sint32 >, NL3D::CAnimatedValueBlendable< CVector >, NL3D::CAnimatedValueNotBlendable< std::string >, and NL3D::CAnimatedValueNotBlendable< bool >.

Referenced by NL3D::CChannelMixer::eval(), NL3D::CChannelMixer::evalSingleChannel(), and NL3D::CChannelMixer::refreshList().

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< T >, NL3D::CAnimatedValueNotBlendable< T >, NL3D::CAnimatedValueBlendable< float >, NL3D::CAnimatedValueBlendable< NLMISC::CQuat >, NL3D::CAnimatedValueBlendable< NLMISC::CRGBA >, NL3D::CAnimatedValueBlendable< NLMISC::CAngleAxis >, NL3D::CAnimatedValueBlendable< NLMISC::CVector >, NL3D::CAnimatedValueBlendable< CQuat >, NL3D::CAnimatedValueBlendable< sint32 >, NL3D::CAnimatedValueBlendable< CVector >, NL3D::CAnimatedValueNotBlendable< std::string >, and NL3D::CAnimatedValueNotBlendable< bool >.

Referenced by NL3D::CChannelMixer::evalSingleChannel().


The documentation for this class was generated from the following file:
Generated on Tue Mar 16 08:37:14 2004 for NeL by doxygen 1.3.6