|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLMISC::CAABBox Class ReferenceAn Axis Aligned Bouding Box.
More...
#include <aabbox.h>
Inheritance diagram for NLMISC::CAABBox:
List of all members.
Detailed Description
An Axis Aligned Bouding Box.
Note: Center/HalfSize set to private, to have same manipulation for CAABBox and CAABBoxExt. -
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2000
Definition at line 54 of file aabbox.h.
Constructor & Destructor Documentation
NLMISC::CAABBox::CAABBox |
( |
|
) |
[inline] |
|
Member Function Documentation
bool NLMISC::CAABBox::clipBack |
( |
const CPlane & |
p |
) |
const |
|
bool NLMISC::CAABBox::clipFront |
( |
const CPlane & |
p |
) |
const |
|
CAABBox NLMISC::CAABBox::computeAABBoxUnion |
( |
const CAABBox & |
b1, |
|
|
const CAABBox & |
b2 |
|
) |
[static] |
|
void NLMISC::CAABBox::computeIntersection |
( |
const CAABBox & |
b1, |
|
|
const CAABBox & |
b2 |
|
) |
|
|
|
Compute the intersection of 2 bboxs.
NB: this methods suppose the intersection exist, and doesn't check it (use intersect() to check). If !intersect, *this is still modified and the result bbox is big chit.
Definition at line 206 of file aabbox.cpp.
References setMinMax. |
void NLMISC::CAABBox::extend |
( |
const CVector & |
v |
) |
|
|
|
extend the bbox so it contains v.
Warning!! By default, a bbox is the vector 0,0,0. So set the first vertex with setCenter() or else the bbox will be the extension of v and (0,0,0)...
Definition at line 174 of file aabbox.cpp.
References getMax, getMin, setMinMax, and v.
Referenced by NL3D::CZoneLighter::computeTileFlagsForPositionTowardWater, NLPACS::CCollisionMeshBuild::computeTrivialTranslation, NL3D::CVegetableClipBlock::extendBBoxOnly, NL3D::CQuadGridClipCluster::extendCluster, NL3D::CTessBlock::extendSphereAdd, NLPACS::CGlobalRetriever::makeInstance, and NL3D::CCluster::makeVolume. |
const CVector& NLMISC::CAABBox::getCenter |
( |
|
) |
const [inline] |
|
const CVector& NLMISC::CAABBox::getHalfSize |
( |
|
) |
const [inline] |
|
void NLMISC::CAABBox::getMax |
( |
CVector & |
ret |
) |
const [inline] |
|
CVector NLMISC::CAABBox::getMax |
( |
|
) |
const [inline] |
|
void NLMISC::CAABBox::getMin |
( |
CVector & |
ret |
) |
const [inline] |
|
CVector NLMISC::CAABBox::getMin |
( |
|
) |
const [inline] |
|
float NLMISC::CAABBox::getRadius |
( |
|
) |
const [inline] |
|
void NLMISC::CAABBox::getSize |
( |
CVector & |
ret |
) |
const [inline] |
|
CVector NLMISC::CAABBox::getSize |
( |
|
) |
const [inline] |
|
bool NLMISC::CAABBox::include |
( |
const CAABBox & |
box |
) |
const |
|
bool NLMISC::CAABBox::include |
( |
const CVector & |
a |
) |
const |
|
bool NLMISC::CAABBox::intersect |
( |
const CBSphere & |
s |
) |
const |
|
bool NLMISC::CAABBox::intersect |
( |
const CAABBox & |
box |
) |
const |
|
void NLMISC::CAABBox::makePyramid |
( |
CPlane |
planes[6] |
) |
const |
|
void NLMISC::CAABBox::setCenter |
( |
const CVector & |
center |
) |
[inline] |
|
|
Reimplemented in NLMISC::CAABBoxExt.
Definition at line 70 of file aabbox.h.
References Center.
Referenced by NL3D::CPatchDLMPointLight::compile, NL3D::CParticleSystem::computeBBox, NLPACS::CCollisionMeshBuild::computeTrivialTranslation, NL3D::CSegRemanenceShape::CSegRemanenceShape, NL3D::CSkeletonShape::CSkeletonShape, NLPACS::CSurfaceQuadTree::CSurfaceQuadTree, NL3D::CVegetableClipBlock::extendSphere, NL3D::CTessBlock::extendSphereFirst, NLPACS::CGlobalRetriever::findCollisionChains, NL3D::CWaveMakerShape::getAABBox, NL3D::CTransformShape::getAABBox, NL3D::CTransform::getAABBox, NL3D::CParticleSystemShape::getAABBox, NL3D::CFlareShape::getAABBox, NLPACS::IQuadNode::getBBox, NLPACS::CSurfaceQuadTree::init, NLPACS::CGlobalRetriever::init, NLPACS::CRetrieverInstance::make, NL3D::CCluster::makeVolume, and NLPACS::CSurfaceQuadTree::translate. |
void NLMISC::CAABBox::setHalfSize |
( |
const CVector & |
hs |
) |
[inline] |
|
|
Reimplemented in NLMISC::CAABBoxExt.
Definition at line 71 of file aabbox.h.
References HalfSize.
Referenced by NL3D::CPSUtil::addRadiusToAABBox, NL3D::CPatchDLMPointLight::compile, NL3D::CParticleSystem::computeBBox, NL3D::CSegRemanenceShape::CSegRemanenceShape, NL3D::CVegetableClipBlock::extendSphere, NL3D::CTessBlock::extendSphereFirst, NL3D::CWaveMakerShape::getAABBox, NL3D::CTransformShape::getAABBox, NL3D::CTransform::getAABBox, NL3D::CParticleSystemShape::getAABBox, NL3D::CFlareShape::getAABBox, NLPACS::IQuadNode::getBBox, NLPACS::CSurfaceQuadTree::init, NLPACS::CGlobalRetriever::init, and NLPACS::CRetrieverInstance::make. |
void NLMISC::CAABBox::setMinMax |
( |
const CVector & |
bmin, |
|
|
const CVector & |
bmax |
|
) |
[inline] |
|
void NLMISC::CAABBox::setSize |
( |
const CVector & |
s |
) |
[inline] |
|
CAABBox NLMISC::CAABBox::transformAABBox |
( |
const CMatrix & |
mat, |
|
|
const CAABBox & |
box |
|
) |
[static] |
|
Member Data Documentation
CVector NLMISC::CAABBox::Center [protected]
|
|
|
The center of the bbox.
Definition at line 58 of file aabbox.h.
Referenced by CAABBox, NLMISC::CAABBoxExt::clipBack, clipBack, NLMISC::CAABBoxExt::clipFront, clipFront, NLMISC::CAABBoxExt::getCenter, getCenter, getMax, getMin, include, intersect, makePyramid, NLMISC::CAABBoxExt::operator=, serial, NLMISC::CAABBoxExt::setCenter, setCenter, NLMISC::CAABBoxExt::setMinMax, and setMinMax. |
CVector NLMISC::CAABBox::HalfSize [protected]
|
|
|
The size/2 of the bbox.
Definition at line 60 of file aabbox.h.
Referenced by CAABBox, clipBack, clipFront, NLMISC::CAABBoxExt::getHalfSize, getHalfSize, getMax, getMin, getRadius, NLMISC::CAABBoxExt::getSize, getSize, include, intersect, makePyramid, NLMISC::CAABBoxExt::operator=, serial, NLMISC::CAABBoxExt::setHalfSize, setHalfSize, NLMISC::CAABBoxExt::setMinMax, setMinMax, NLMISC::CAABBoxExt::setSize, setSize, and NLMISC::CAABBoxExt::updateRadius. |
The documentation for this class was generated from the following files:
|
|