CGrid3d< T > Class Template Reference

#include <grid-3d.hh>

Collaboration diagram for CGrid3d< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

Constructeurs et destructeur
 CGrid3d (int ASizeI, int ASizeJ, int ASizeK, const CBoundingBox &ABB=CBoundingBox())
virtual ~CGrid3d ()
Méthodes publiques
int getSizeI () const
int getSizeJ () const
int getSizeK () const
const CBoundingBoxgetBoundingBox () const
T & getCell (int Ai, int Aj, int Ak) const
T & getCell (const CGrid3dIterator< T > &AIter) const
CBoundingBox getCellBoundingBox (int Ai, int Aj, int Ak) const
CBoundingBox getCellBoundingBox (const CGrid3dIterator< T > &AIter) const
bool getCellPosition (const CVertex &APoint, int *Ai, int *Aj, int *Ak) const
bool getCellPosition (const CVertex &APoint, TCoordinate *Ai, TCoordinate *Aj, TCoordinate *Ak) const
void setBoundingBox (const CBoundingBox &ABB)
void setCell (int Ai, int Aj, int Ak, const T &AObj)
void setCell (const CGrid3dIterator< T > &AIter, const T &AObj)
void fillCellsWith (const CBoundingBox &ABB, const T &AObj)

Private Member Functions

Méthodes privées
TCoordinate getCellI (TCoordinate Ax) const
TCoordinate getCellJ (TCoordinate Ay) const
TCoordinate getCellK (TCoordinate Az) const

Private Attributes

T *** FGrid
int FSizeI
int FSizeJ
int FSizeK
CBoundingBox FBB


Detailed Description

template<class T>
class CGrid3d< T >

Definition at line 42 of file grid-3d.hh.


Constructor & Destructor Documentation

template<class T >
CGrid3d< T >::CGrid3d ( int  ASizeI,
int  ASizeJ,
int  ASizeK,
const CBoundingBox ABB = CBoundingBox() 
) [inline]

Constructeur avec initialisation

Parameters:
ASizeI Nombre de divisions en largeur
ASizeJ Nombre de divisions en hauteur
ASizeK Nombre de divisions en profondeur
ABB Boîte englobante de la grille
Returns:
Une nouvelle instance de la classe
Construction d'une nouvelle instance de la classe initialisée avec une grille dont les dimensions sont passées en paramètres.

Definition at line 196 of file grid-3d.hh.

template<class T >
CGrid3d< T >::~CGrid3d (  )  [inline, virtual]

Destructeur

Destruction de l'instance.

Definition at line 214 of file grid-3d.hh.


Member Function Documentation

template<class T>
void CGrid3d< T >::fillCellsWith ( const CBoundingBox ABB,
const T &  AObj 
) [inline]

Definition at line 362 of file grid-3d.hh.

template<class T >
const CBoundingBox & CGrid3d< T >::getBoundingBox (  )  const [inline]

Definition at line 243 of file grid-3d.hh.

template<class T>
T & CGrid3d< T >::getCell ( const CGrid3dIterator< T > &  AIter  )  const [inline]

Definition at line 265 of file grid-3d.hh.

template<class T >
T & CGrid3d< T >::getCell ( int  Ai,
int  Aj,
int  Ak 
) const [inline]

Definition at line 249 of file grid-3d.hh.

template<class T>
CBoundingBox CGrid3d< T >::getCellBoundingBox ( const CGrid3dIterator< T > &  AIter  )  const [inline]

Definition at line 294 of file grid-3d.hh.

template<class T >
CBoundingBox CGrid3d< T >::getCellBoundingBox ( int  Ai,
int  Aj,
int  Ak 
) const [inline]

Definition at line 272 of file grid-3d.hh.

template<class T >
TCoordinate CGrid3d< T >::getCellI ( TCoordinate  Ax  )  const [inline, private]

Definition at line 386 of file grid-3d.hh.

template<class T >
TCoordinate CGrid3d< T >::getCellJ ( TCoordinate  Ay  )  const [inline, private]

Definition at line 397 of file grid-3d.hh.

template<class T >
TCoordinate CGrid3d< T >::getCellK ( TCoordinate  Az  )  const [inline, private]

Definition at line 408 of file grid-3d.hh.

template<class T >
bool CGrid3d< T >::getCellPosition ( const CVertex APoint,
TCoordinate *  Ai,
TCoordinate *  Aj,
TCoordinate *  Ak 
) const [inline]

Definition at line 325 of file grid-3d.hh.

template<class T >
bool CGrid3d< T >::getCellPosition ( const CVertex APoint,
int *  Ai,
int *  Aj,
int *  Ak 
) const [inline]

Definition at line 300 of file grid-3d.hh.

template<class T >
int CGrid3d< T >::getSizeI (  )  const [inline]

Definition at line 225 of file grid-3d.hh.

template<class T >
int CGrid3d< T >::getSizeJ (  )  const [inline]

Definition at line 231 of file grid-3d.hh.

template<class T >
int CGrid3d< T >::getSizeK (  )  const [inline]

Definition at line 237 of file grid-3d.hh.

template<class T >
void CGrid3d< T >::setBoundingBox ( const CBoundingBox ABB  )  [inline]

Definition at line 340 of file grid-3d.hh.

template<class T>
void CGrid3d< T >::setCell ( const CGrid3dIterator< T > &  AIter,
const T &  AObj 
) [inline]

Definition at line 356 of file grid-3d.hh.

template<class T>
void CGrid3d< T >::setCell ( int  Ai,
int  Aj,
int  Ak,
const T &  AObj 
) [inline]

Definition at line 346 of file grid-3d.hh.


Member Data Documentation

template<class T>
CBoundingBox CGrid3d< T >::FBB [private]

FBB Boîte englobante de la grille.

Definition at line 140 of file grid-3d.hh.

template<class T>
T*** CGrid3d< T >::FGrid [private]

Attributs privés FGrid Tableau tri-dimensionnel représentant la grille.

Definition at line 130 of file grid-3d.hh.

template<class T>
int CGrid3d< T >::FSizeI [private]

FSizeI, FSizeJ, FSizeK Nombre de divisions selon les 3 axes.

Definition at line 135 of file grid-3d.hh.

template<class T>
int CGrid3d< T >::FSizeJ [private]

Definition at line 135 of file grid-3d.hh.

template<class T>
int CGrid3d< T >::FSizeK [private]

Definition at line 135 of file grid-3d.hh.


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

Generated on Tue Jul 7 15:20:59 2009 for Moka libraries by  doxygen 1.5.8