# 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  

NLPACS::CFaceGrid Class Reference

A selection grid for the interior faces. More...

#include <face_grid.h>

List of all members.

Public Methods

 CFaceGrid ()
 Constructor. More...

void clear ()
 Clear the grid. More...

void create (const CFaceGridBuild &fgb)
 Create the face grid from a CFaceGridBuild. More...

void select (const NLMISC::CVector &pos, std::vector< uint32 > &selected) const
 Select faces indexes close to a given point. More...

void serial (NLMISC::IStream &f)
 Serial the face grid. More...


Protected Attributes

uint16 _Width
 The width of the grid in rows and lines. More...

uint16 _Log2Width
 The 2Log of the width of the grid. More...

float _ElSize
 The size (in meter) of each grid element. More...

std::vector< uint32_Grid
 The grid of indexes to the data buffer. More...

std::vector< uint32_GridData
 The grid data buffer (packed datas). More...


Detailed Description

A selection grid for the interior faces.

It contains the indexes of the faces, as uint32.

Author:
Benjamin Legros , Nevrax France
Date:
2001

Definition at line 57 of file face_grid.h.


Constructor & Destructor Documentation

NLPACS::CFaceGrid::CFaceGrid   [inline]
 

Constructor.

Definition at line 102 of file face_grid.h.

References _ElSize, _Log2Width, and _Width.


Member Function Documentation

void NLPACS::CFaceGrid::clear   [inline]
 

Clear the grid.

Definition at line 120 of file face_grid.h.

References _ElSize, _Grid, _GridData, _Log2Width, and _Width.

Referenced by create.

void NLPACS::CFaceGrid::create const CFaceGridBuild   fgb [inline]
 

Create the face grid from a CFaceGridBuild.

Definition at line 129 of file face_grid.h.

References _ElSize, _Grid, _GridData, _Log2Width, _Width, clear, NLMISC::getPowerOf2, and nlassert.

void NLPACS::CFaceGrid::select const NLMISC::CVector   pos,
std::vector< uint32 > &    selected
const [inline]
 

Select faces indexes close to a given point.

Definition at line 151 of file face_grid.h.

References _ElSize, _Grid, _GridData, _Log2Width, _Width, NLMISC::CVector::x, x, NLMISC::CVector::y, and y.

void NLPACS::CFaceGrid::serial NLMISC::IStream   f [inline]
 

Serial the face grid.

Definition at line 170 of file face_grid.h.

References _ElSize, _Grid, _GridData, _Log2Width, _Width, NLMISC::IStream::serial, NLMISC::IStream::serialCont, and NLMISC::IStream::serialVersion.


Member Data Documentation

float NLPACS::CFaceGrid::_ElSize [protected]
 

The size (in meter) of each grid element.

Definition at line 93 of file face_grid.h.

Referenced by CFaceGrid, clear, create, select, and serial.

std::vector<uint32> NLPACS::CFaceGrid::_Grid [protected]
 

The grid of indexes to the data buffer.

Definition at line 96 of file face_grid.h.

Referenced by clear, create, select, and serial.

std::vector<uint32> NLPACS::CFaceGrid::_GridData [protected]
 

The grid data buffer (packed datas).

Definition at line 98 of file face_grid.h.

Referenced by clear, create, select, and serial.

uint16 NLPACS::CFaceGrid::_Log2Width [protected]
 

The 2Log of the width of the grid.

Definition at line 90 of file face_grid.h.

Referenced by CFaceGrid, clear, create, select, and serial.

uint16 NLPACS::CFaceGrid::_Width [protected]
 

The width of the grid in rows and lines.

Definition at line 88 of file face_grid.h.

Referenced by CFaceGrid, clear, create, select, and serial.


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