From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- .../nel/classNL3D_1_1CPSValueGradientFunc.html | 678 +++++++++++++++++++++ 1 file changed, 678 insertions(+) create mode 100644 docs/doxygen/nel/classNL3D_1_1CPSValueGradientFunc.html (limited to 'docs/doxygen/nel/classNL3D_1_1CPSValueGradientFunc.html') diff --git a/docs/doxygen/nel/classNL3D_1_1CPSValueGradientFunc.html b/docs/doxygen/nel/classNL3D_1_1CPSValueGradientFunc.html new file mode 100644 index 00000000..6691be76 --- /dev/null +++ b/docs/doxygen/nel/classNL3D_1_1CPSValueGradientFunc.html @@ -0,0 +1,678 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# 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::CPSValueGradientFunc Class Template Reference

This functor blend between several Value. +More... +

+#include <ps_attrib_maker_template.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

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

void getValues (T *tab) const
 copie the keys values in the specified table. More...

getValue (uint index) const
 get one value. More...

uint32 getNumValues (void) const
void setValues (const T *ValueTab, uint32 numValues, uint32 nbStages)
 set the colors. More...

uint32 getNumStages (void) const
 get the number of stages between each value. More...

void setNumStages (uint32 numStages)
 change the number of stages between each value. More...

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

getMaxValue (void) const
 CPSValueGradientFunc ()
 ctor. More...

virtual ~CPSValueGradientFunc ()
 dtor. More...


Protected Attributes

std::vector< T > _Tab
uint32 _NbStages
uint32 _NbValues
_MaxValue
+


Detailed Description

+

template<typename T>
+ class NL3D::CPSValueGradientFunc< T >

+ +This functor blend between several Value. +

+Intermediate value are sampled with a given number of steps It is used by CPSValueGradient, that you can use to have gradients with your own types

+Author:
+Nicolas Vizerie , Nevrax France
+Date:
+2001
+

+ +

+Definition at line 283 of file ps_attrib_maker_template.h.


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + + + + +
+template<typename T>
NL3D::CPSValueGradientFunc< T >::CPSValueGradientFunc   [inline]
+
+ + + + + +
+   + + +

+ctor. +

+ +

+Definition at line 351 of file ps_attrib_maker_template.h.

+

+ + + + +
+ + + + + + + + + + + + +
+template<typename T>
virtual NL3D::CPSValueGradientFunc< T >::~CPSValueGradientFunc   [inline, virtual]
+
+ + + + + +
+   + + +

+dtor. +

+ +

+Definition at line 355 of file ps_attrib_maker_template.h.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + +
+template<typename T>
T NL3D::CPSValueGradientFunc< T >::getMaxValue void   const [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 345 of file ps_attrib_maker_template.h.

+

+ + + + +
+ + + + + + + + + + + + + +
+template<typename T>
uint32 NL3D::CPSValueGradientFunc< T >::getNumStages void   const [inline]
+
+ + + + + +
+   + + +

+get the number of stages between each value. +

+ +

+Definition at line 330 of file ps_attrib_maker_template.h.

+

+ + + + +
+ + + + + + + + + + + + + +
+template<typename T>
uint32 NL3D::CPSValueGradientFunc< T >::getNumValues void   const [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 317 of file ps_attrib_maker_template.h. +

+Referenced by NL3D::CPSValueGradientFunc< sint32 >::getValue, and NL3D::CPSValueGradientFunc< sint32 >::setNumStages.

+

+ + + + +
+ + + + + + + + + + + + + +
+template<typename T>
T NL3D::CPSValueGradientFunc< T >::getValue uint   index const [inline]
+
+ + + + + +
+   + + +

+get one value. +

+ +

+Definition at line 308 of file ps_attrib_maker_template.h.

+

+ + + + +
+ + + + + + + + + + + + + +
+template<typename T>
void NL3D::CPSValueGradientFunc< T >::getValues T *   tab const [inline]
+
+ + + + + +
+   + + +

+copie the keys values in the specified table. +

+ +

+Definition at line 296 of file ps_attrib_maker_template.h. +

+Referenced by NL3D::CPSValueGradientFunc< sint32 >::setNumStages.

+

+ + + + +
+ + + + + + + + + + + + + +
+template<typename T>
T NL3D::CPSValueGradientFunc< T >::operator() TAnimationTime   time const [inline]
+
+ + + + + +
+   + + +

+this produce Values. +

+ +

+Definition at line 290 of file ps_attrib_maker_template.h.

+

+ + + + +
+ + + + + + + + + + + + + +
+template<typename T>
void NL3D::CPSValueGradientFunc< T >::serial NLMISC::IStream  f throw (NLMISC::EStream) [virtual]
+
+ + + + + +
+   + + +

+serialization. +

+ +

+Definition at line 449 of file ps_attrib_maker_template.h.

+

+ + + + +
+ + + + + + + + + + + + + +
+template<typename T>
void NL3D::CPSValueGradientFunc< T >::setNumStages uint32   numStages [inline]
+
+ + + + + +
+   + + +

+change the number of stages between each value. +

+ +

+Definition at line 333 of file ps_attrib_maker_template.h.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+template<typename T>
void NL3D::CPSValueGradientFunc< T >::setValues const T *   ValueTab,
uint32   numValues,
uint32   nbStages
[inline]
+
+ + + + + +
+   + + +

+set the colors. +

+

+Parameters:
+ + + +
numValue  +number of Values, must be >= 2 \ValueTab a table containing the Values. Value will be blended, so you must only provide keyframe Values
nbStages  +The result is sampled into a table by linearly interpolating values. This give the number of step between each value WARNING : for integer types, some specilization exist that ensure correct interpolation. see below
+
+

+Definition at line 408 of file ps_attrib_maker_template.h. +

+References _MaxValue, _NbStages, _NbValues, _Tab, alpha, NLAISCRIPT::l, nlassert, and NL3D::PSValueBlend. +

+Referenced by NL3D::CPSValueGradientFunc< sint32 >::setNumStages.

+


Member Data Documentation

+

+ + + + +
+ + + + + +
+template<typename T>
T NL3D::CPSValueGradientFunc::_MaxValue [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 372 of file ps_attrib_maker_template.h. +

+Referenced by NL3D::CPSValueGradientFunc< sint32 >::getMaxValue, and setValues.

+

+ + + + +
+ + + + + +
+template<typename T>
uint32 NL3D::CPSValueGradientFunc::_NbStages [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 365 of file ps_attrib_maker_template.h. +

+Referenced by NL3D::CPSValueGradientFunc< sint32 >::CPSValueGradientFunc, NL3D::CPSValueGradientFunc< sint32 >::getNumStages, NL3D::CPSValueGradientFunc< sint32 >::getNumValues, NL3D::CPSValueGradientFunc< sint32 >::getValue, NL3D::CPSValueGradientFunc< sint32 >::getValues, and setValues.

+

+ + + + +
+ + + + + +
+template<typename T>
uint32 NL3D::CPSValueGradientFunc::_NbValues [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 368 of file ps_attrib_maker_template.h. +

+Referenced by NL3D::CPSValueGradientFunc< sint32 >::CPSValueGradientFunc, NL3D::CPSValueGradientFunc< sint32 >::getNumValues, NL3D::CPSValueGradientFunc< sint32 >::getValues, NL3D::CPSValueGradientFunc< sint32 >::operator(), and setValues.

+

+ + + + +
+ + + + + +
+template<typename T>
std::vector<T> NL3D::CPSValueGradientFunc::_Tab [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 361 of file ps_attrib_maker_template.h. +

+Referenced by NL3D::CPSValueGradientFunc< sint32 >::getValue, NL3D::CPSValueGradientFunc< sint32 >::getValues, NL3D::CPSValueGradientFunc< sint32 >::operator(), and setValues.

+


The documentation for this class was generated from the following file: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1