# 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::CPSValueBlendSampleFunc Class Template Reference

This temlate functor blend between 2 values by performing n samples (n = template parameter) It may be faster that the CPSValueBlendFunc in some cases. More...

#include <ps_attrib_maker_template.h>

Inheritance diagram for NL3D::CPSValueBlendSampleFunc:

NL3D::CPSValueBlendFuncBase List of all members.

Public Methods

operator() (TAnimationTime time) const
 this produce Values. More...

virtual void getValues (T &startValue, T &endValue) const
 restrieve the start and end Value. More...

virtual void setValues (T startValue, T endValue)
 set the Values. More...

 CPSValueBlendSampleFunc ()
 ctor. More...

void serial (NLMISC::IStream &f) throw (NLMISC::EStream)
 serialization. More...

getMaxValue (void) const

Protected Attributes

_Values [n+1]

Detailed Description

template<typename T, const uint n>
class NL3D::CPSValueBlendSampleFunc< T, n >

This temlate functor blend between 2 values by performing n samples (n = template parameter) It may be faster that the CPSValueBlendFunc in some cases.

To accomplish blending, it use the template function PSValueBlend It is used by CPSValueBlend

Author:
Nicolas Vizerie , Nevrax France
Date:
2001
See also:
PSValueBlend

Definition at line 188 of file ps_attrib_maker_template.h.


Constructor & Destructor Documentation

template<typename T, const uint n>
NL3D::CPSValueBlendSampleFunc< T, n >::CPSValueBlendSampleFunc   [inline]
 

ctor.

Definition at line 224 of file ps_attrib_maker_template.h.


Member Function Documentation

template<typename T, const uint n>
T NL3D::CPSValueBlendSampleFunc< T, n >::getMaxValue void    const [inline]
 

Definition at line 242 of file ps_attrib_maker_template.h.

template<typename T, const uint n>
virtual void NL3D::CPSValueBlendSampleFunc< T, n >::getValues T &    startValue,
T &    endValue
const [inline, virtual]
 

restrieve the start and end Value.

Implements NL3D::CPSValueBlendFuncBase.

Definition at line 203 of file ps_attrib_maker_template.h.

template<typename T, const uint n>
T NL3D::CPSValueBlendSampleFunc< T, n >::operator() TAnimationTime    time const [inline]
 

this produce Values.

Definition at line 195 of file ps_attrib_maker_template.h.

template<typename T, const uint n>
void NL3D::CPSValueBlendSampleFunc< T, n >::serial NLMISC::IStream   f throw (NLMISC::EStream) [inline]
 

serialization.

Definition at line 227 of file ps_attrib_maker_template.h.

template<typename T, const uint n>
virtual void NL3D::CPSValueBlendSampleFunc< T, n >::setValues   startValue,
  endValue
[inline, virtual]
 

set the Values.

Implements NL3D::CPSValueBlendFuncBase.

Definition at line 211 of file ps_attrib_maker_template.h.

Referenced by NL3D::CPSValueBlendSampleFunc< NLMISC::CRGBA, n >::serial.


Member Data Documentation

template<typename T, const uint n>
T NL3D::CPSValueBlendSampleFunc::_Values[n + 1] [protected]
 

Definition at line 248 of file ps_attrib_maker_template.h.

Referenced by NL3D::CPSValueBlendSampleFunc< NLMISC::CRGBA, n >::getValues, NL3D::CPSValueBlendSampleFunc< NLMISC::CRGBA, n >::operator(), NL3D::CPSValueBlendSampleFunc< NLMISC::CRGBA, n >::serial, and NL3D::CPSValueBlendSampleFunc< NLMISC::CRGBA, n >::setValues.


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