#include <ps_attrib_maker_template.h>
Inheritance diagram for NL3D::CPSValueBlendFunc< T >:

Nevrax France
Definition at line 93 of file ps_attrib_maker_template.h.
Public Member Functions | |
| T | operator() (TAnimationTime time) const |
| This produce Values. | |
Object | |
| CPSValueBlendFunc () | |
| ctor | |
| void | serial (NLMISC::IStream &f) throw (NLMISC::EStream) |
| serialization | |
| T | getMaxValue (void) const |
| T | getMinValue (void) const |
| virtual void | getValues (T &startValue, T &endValue) const |
| Retrieve the start and end Value. | |
| virtual void | setValues (T startValue, T endValue) |
| Set the Values between which to blend. | |
Protected Attributes | |
| T | _EndValue |
| T | _StartValue |
|
|||||||||
|
ctor
Definition at line 99 of file ps_attrib_maker_template.h.
00099 {}
|
|
||||||||||
|
Definition at line 137 of file ps_attrib_maker_template.h.
00138 {
00139 return std::max((*this)(0), (*this)(1));
00140 }
|
|
||||||||||
|
Definition at line 141 of file ps_attrib_maker_template.h.
00142 {
00143 return std::min((*this)(0), (*this)(1));
00144 }
|
|
||||||||||||||||
|
Retrieve the start and end Value.
Implements NL3D::CPSValueBlendFuncBase< T >. Definition at line 123 of file ps_attrib_maker_template.h.
00124 {
00125 startValue = (*this)(0);
00126 endValue = (*this)(1);
00127 }
|
|
||||||||||
|
This produce Values.
Definition at line 113 of file ps_attrib_maker_template.h.
00114 {
00115
00116 return PSValueBlend(_StartValue, _EndValue, time); // a cast to T is necessary, because
00117 // the specialization couls be done with integer
00118 }
|
|
||||||||||
|
serialization
Definition at line 102 of file ps_attrib_maker_template.h.
00103 {
00104 f.serialVersion(1);
00105 f.serial(_StartValue, _EndValue);
00106 }
|
|
||||||||||||||||
|
Set the Values between which to blend.
Implements NL3D::CPSValueBlendFuncBase< T >. Definition at line 130 of file ps_attrib_maker_template.h.
00131 {
00132 _StartValue = startValue;
00133 _EndValue = endValue;
00134 }
|
|
|||||
|
Definition at line 148 of file ps_attrib_maker_template.h. |
|
|||||
|
Definition at line 148 of file ps_attrib_maker_template.h. |
1.3.6