NL3D::CFDot3AddIterator< TBaseIter > Struct Template Reference

#include <ps_attrib_maker_iterators.h>

Inheritance diagram for NL3D::CFDot3AddIterator< TBaseIter >:

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

Detailed Description

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

this iterator perform a dot prod with a vector, add an offset and take the fabs of the result

Definition at line 96 of file ps_attrib_maker_iterators.h.

Public Member Functions

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

Data Fields

TBaseIter Iter
float Offset
NLMISC::CVector V


Constructor & Destructor Documentation

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

Definition at line 104 of file ps_attrib_maker_iterators.h.

00104 : 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::CFDot3AddIterator< TBaseIter >::get  )  const [inline]
 

Reimplemented from NL3D::CPSBaseIterator< TBaseIter >.

Definition at line 99 of file ps_attrib_maker_iterators.h.

References NL3D::MaxInputValue, and r.

00100                 { 
00101                         const float r = fabsf(Iter.get() * V + Offset);
00102                         return r > MaxInputValue ? MaxInputValue : r;
00103                 }


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:35 2004 for NeL by doxygen 1.3.6