NL3D::CFClampDot3AddIterator< TBaseIter > Struct Template Reference

#include <ps_attrib_maker_iterators.h>

Inheritance diagram for NL3D::CFClampDot3AddIterator< TBaseIter >:

NL3D::CDistIterator< TBaseIter > NL3D::CPSBaseIterator< TBaseIter >

Detailed Description

template<class TBaseIter>
struct NL3D::CFClampDot3AddIterator< TBaseIter >

this iterator perform a dot prod with a vector, add an offset. If it is negatif it return MaxInputValue, and take the abs of the result

Definition at line 122 of file ps_attrib_maker_iterators.h.

Public Member Functions

void advance ()
 CFClampDot3AddIterator (const TBaseIter &it)
GET_INLINE float get () const

Data Fields

TBaseIter Iter
float Offset
NLMISC::CVector V


Constructor & Destructor Documentation

template<class TBaseIter>
NL3D::CFClampDot3AddIterator< TBaseIter >::CFClampDot3AddIterator const TBaseIter &  it  )  [inline]
 

Definition at line 131 of file ps_attrib_maker_iterators.h.

00131 : CDistIterator<TBaseIter>(it) {}


Member Function Documentation

template<typename TBaseIter>
void NL3D::CPSBaseIterator< TBaseIter >::advance  )  [inline, inherited]
 

Definition at line 50 of file ps_attrib_maker_iterators.h.

00050 { Iter.advance(); }     

template<class TBaseIter>
GET_INLINE float NL3D::CFClampDot3AddIterator< TBaseIter >::get  )  const [inline]
 

Reimplemented from NL3D::CPSBaseIterator< TBaseIter >.

Definition at line 125 of file ps_attrib_maker_iterators.h.

References NL3D::MaxInputValue, and r.

00126                 { 
00127                         const float r = Iter.get() * V + Offset;
00128                         if (r < 0.f) return MaxInputValue;
00129                         return r > MaxInputValue ? MaxInputValue : r;
00130                 }


Field Documentation

template<typename TBaseIter>
TBaseIter NL3D::CPSBaseIterator< TBaseIter >::Iter [inherited]
 

Definition at line 45 of file ps_attrib_maker_iterators.h.

template<class TBaseIter>
float NL3D::CDistIterator< TBaseIter >::Offset [inherited]
 

Definition at line 89 of file ps_attrib_maker_iterators.h.

Referenced by NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > >::make(), NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > >::make4(), and NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > >::makeN().

template<class TBaseIter>
NLMISC::CVector NL3D::CDistIterator< TBaseIter >::V [inherited]
 

Definition at line 88 of file ps_attrib_maker_iterators.h.

Referenced by NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > >::make(), NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > >::make4(), and NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > >::makeN().


The documentation for this struct was generated from the following file:
Generated on Tue Mar 16 06:46:34 2004 for NeL by doxygen 1.3.6