# 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::CSurfaceQuadTree Class Reference

#include <surface_quad.h>

List of all members.

Public Methods

 CSurfaceQuadTree ()
 CSurfaceQuadTree (const CSurfaceQuadTree &quad)
CSurfaceQuadTree & operator= (const CSurfaceQuadTree &quad)
const IQuadNodegetRoot () const
float getMaxThickness () const
uint8 getMaxLevel () const
const NLMISC::CAABBoxgetBBox () const
void clear ()
void init (float maxThickness, uint maxLevel, const NLMISC::CVector &center, float halfSize=80.0f)
void addVertex (const NLMISC::CVector &v)
void compile ()
bool check () const
const CQuadLeafgetLeaf (const NLMISC::CVector &v) const
float getInterpZ (const NLMISC::CVector &v) const
void translate (const NLMISC::CVector &translation)
void serial (NLMISC::IStream &f)

Protected Attributes

IQuadNode_Root
float _MaxThickness
uint8 _MaxLevel
NLMISC::CAABBox _BBox


Constructor & Destructor Documentation

NLPACS::CSurfaceQuadTree::CSurfaceQuadTree  
 

Definition at line 37 of file surface_quad.cpp.

References _BBox, _MaxLevel, _MaxThickness, _Root, NLMISC::CAABBox::setCenter, and NLMISC::CAABBox::setSize.

NLPACS::CSurfaceQuadTree::CSurfaceQuadTree const CSurfaceQuadTree &    quad
 

Definition at line 46 of file surface_quad.cpp.


Member Function Documentation

void NLPACS::CSurfaceQuadTree::addVertex const NLMISC::CVector   v
 

Definition at line 96 of file surface_quad.cpp.

References _BBox, _MaxLevel, _MaxThickness, _Root, NLMISC::CAABBox::getCenter, NLMISC::CAABBox::getHalfSize, NLMISC::CAABBox::include, and v.

bool NLPACS::CSurfaceQuadTree::check   const
 

Definition at line 297 of file surface_quad.cpp.

References _Root.

void NLPACS::CSurfaceQuadTree::clear  
 

Definition at line 80 of file surface_quad.cpp.

References _Root.

Referenced by init.

void NLPACS::CSurfaceQuadTree::compile  
 

Definition at line 123 of file surface_quad.cpp.

References _MaxThickness, and _Root.

const NLMISC::CAABBox& NLPACS::CSurfaceQuadTree::getBBox   const [inline]
 

Definition at line 172 of file surface_quad.h.

float NLPACS::CSurfaceQuadTree::getInterpZ const NLMISC::CVector   v const
 

Definition at line 384 of file surface_quad.cpp.

References _BBox, _Root, NLMISC::CAABBox::include, nlassert, NLMISC::sqr, and v.

const NLPACS::CQuadLeaf * NLPACS::CSurfaceQuadTree::getLeaf const NLMISC::CVector   v const
 

Definition at line 304 of file surface_quad.cpp.

References _BBox, _Root, NLMISC::CAABBox::include, nlassert, and v.

uint8 NLPACS::CSurfaceQuadTree::getMaxLevel   const [inline]
 

Definition at line 171 of file surface_quad.h.

References _MaxLevel.

float NLPACS::CSurfaceQuadTree::getMaxThickness   const [inline]
 

Definition at line 170 of file surface_quad.h.

References _MaxThickness.

const IQuadNode* NLPACS::CSurfaceQuadTree::getRoot   const [inline]
 

Definition at line 169 of file surface_quad.h.

void NLPACS::CSurfaceQuadTree::init float    maxThickness,
uint    maxLevel,
const NLMISC::CVector   center,
float    halfSize = 80.0f
 

Definition at line 86 of file surface_quad.cpp.

References _BBox, _MaxLevel, _MaxThickness, clear, nlassert, NLMISC::CAABBox::setCenter, and NLMISC::CAABBox::setHalfSize.

NLPACS::CSurfaceQuadTree & NLPACS::CSurfaceQuadTree::operator= const CSurfaceQuadTree &    quad
 

Definition at line 51 of file surface_quad.cpp.

References _BBox, _MaxLevel, _MaxThickness, and _Root.

void NLPACS::CSurfaceQuadTree::serial NLMISC::IStream   f
 

Definition at line 329 of file surface_quad.cpp.

References _BBox, _MaxLevel, _MaxThickness, _Root, NLMISC::IStream::isReading, nlerror, NLMISC::IStream::serial, and NLMISC::IStream::serialVersion.

void NLPACS::CSurfaceQuadTree::translate const NLMISC::CVector   translation [inline]
 

Definition at line 184 of file surface_quad.h.

References NLMISC::CAABBox::getCenter, and NLMISC::CAABBox::setCenter.


Member Data Documentation

NLMISC::CAABBox NLPACS::CSurfaceQuadTree::_BBox [protected]
 

Definition at line 161 of file surface_quad.h.

Referenced by addVertex, CSurfaceQuadTree, getInterpZ, getLeaf, init, operator=, and serial.

uint8 NLPACS::CSurfaceQuadTree::_MaxLevel [protected]
 

Definition at line 160 of file surface_quad.h.

Referenced by addVertex, CSurfaceQuadTree, getMaxLevel, init, operator=, and serial.

float NLPACS::CSurfaceQuadTree::_MaxThickness [protected]
 

Definition at line 159 of file surface_quad.h.

Referenced by addVertex, compile, CSurfaceQuadTree, getMaxThickness, init, operator=, and serial.

IQuadNode* NLPACS::CSurfaceQuadTree::_Root [protected]
 

Definition at line 158 of file surface_quad.h.

Referenced by addVertex, check, clear, compile, CSurfaceQuadTree, getInterpZ, getLeaf, operator=, and serial.


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