NL3D::CStaticQuadGrid< T > Class Template Reference

This class is builded from a CQuadGrid, and is to be used when:

More...

#include <static_quad_grid.h>

List of all members.

Classes

class  CQuadNode

Public Member Functions

 CStaticQuadGrid ()
 Constructor.
 ~CStaticQuadGrid ()
 dtor.
Initialization



void build (CQuadGrid< T > &quadGrid)
 build from a CQuadGrid.
void clear ()
 Clear all the container.
Selection



const Tselect (const NLMISC::CVector &point, uint &numElts)
 Select elements at a given point Speed is in O(1), because the array of the cell is returned.

Private Member Functions

void selectPoint (CVector point, sint &x0, sint &y0)

Private Attributes

std::vector< T_Elements
std::vector< CQuadNode_Grid
sint _Size
sint _SizePower
float _EltSize
NLMISC::CMatrix _ChangeBasis

Detailed Description

template<class T>
class NL3D::CStaticQuadGrid< T >

This class is builded from a CQuadGrid, and is to be used when:

Because elements are duplicated all over cells and only one cell can be selected at a time.

Author:
Lionel Berenguier
Nevrax France
Date:
2002

Definition at line 49 of file static_quad_grid.h.


Constructor & Destructor Documentation

template<class T >
NL3D::CStaticQuadGrid< T >::CStaticQuadGrid (  )  [inline]
template<class T >
NL3D::CStaticQuadGrid< T >::~CStaticQuadGrid (  )  [inline]

dtor.

Definition at line 154 of file static_quad_grid.h.

References NL3D::CStaticQuadGrid< T >::clear().


Member Function Documentation

template<class T>
void NL3D::CStaticQuadGrid< T >::build ( CQuadGrid< T > &  quadGrid  )  [inline]
template<class T >
void NL3D::CStaticQuadGrid< T >::clear ( void   )  [inline]
template<class T >
const T * NL3D::CStaticQuadGrid< T >::select ( const NLMISC::CVector point,
uint numElts 
) [inline]

Select elements at a given point Speed is in O(1), because the array of the cell is returned.

NULL if size==0.

Parameters:
point is the point used to select
numElts number of elements returned
Returns:
a ptr on array of elements

Definition at line 267 of file static_quad_grid.h.

References NL3D::CStaticQuadGrid< T >::_ChangeBasis, NL3D::CStaticQuadGrid< T >::_Grid, NL3D::CStaticQuadGrid< T >::_Size, NL3D::CStaticQuadGrid< T >::CQuadNode::Nodes, NL3D::CStaticQuadGrid< T >::CQuadNode::NumNodes, and NL3D::CStaticQuadGrid< T >::selectPoint().

Referenced by NL3D::CCubeGrid< TCell >::select().

template<class T>
void NL3D::CStaticQuadGrid< T >::selectPoint ( CVector  point,
sint x0,
sint y0 
) [inline, private]

Definition at line 112 of file static_quad_grid.h.

Referenced by NL3D::CStaticQuadGrid< T >::select().


Member Data Documentation

template<class T>
NLMISC::CMatrix NL3D::CStaticQuadGrid< T >::_ChangeBasis [private]
template<class T>
std::vector<T> NL3D::CStaticQuadGrid< T >::_Elements [private]
template<class T>
float NL3D::CStaticQuadGrid< T >::_EltSize [private]
template<class T>
std::vector<CQuadNode> NL3D::CStaticQuadGrid< T >::_Grid [private]
template<class T>
sint NL3D::CStaticQuadGrid< T >::_Size [private]
template<class T>
sint NL3D::CStaticQuadGrid< T >::_SizePower [private]

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

Generated on Thu Jan 7 08:30:11 2010 for NeL by  doxygen 1.6.1