List of all members.
Detailed Description
A Polytope class for representing convex clipping volumes made up of a set of planes. When adding planes, their normals should point inwards (into the volume)
Member Typedef Documentation
Constructor & Destructor Documentation
osg::Polytope::Polytope |
( |
) |
[inline] |
osg::Polytope::Polytope |
( |
const Polytope & |
cv ) |
[inline] |
osg::Polytope::Polytope |
( |
const PlaneList & |
pl ) |
[inline] |
osg::Polytope::~Polytope |
( |
) |
[inline] |
Member Function Documentation
void osg::Polytope::add |
( |
const osg::Plane & |
pl ) |
[inline] |
void osg::Polytope::clear |
( |
) |
[inline] |
bool osg::Polytope::contains |
( |
const osg::Vec3 & |
v ) |
const [inline] |
Check whether a vertex is contained within clipping set.
bool osg::Polytope::contains |
( |
const std::vector< Vec3 > & |
vertices ) |
[inline] |
Check whether any part of vertex list is contained within clipping set.
Check whether any part of a bounding sphere is contained within clipping set. Using a mask to determine which planes should be used for the check, and modifying the mask to turn off planes which wouldn't contribute to clipping of any internal objects. This feature is used in osgUtil::CullVisitor to prevent redundant plane checking.
Check whether any part of a bounding box is contained within clipping set. Using a mask to determine which planes should be used for the check, and modifying the mask to turn off planes which wouldn't contribute to clipping of any internal objects. This feature is used in osgUtil::CullVisitor to prevent redundant plane checking.
bool osg::Polytope::containsAllOf |
( |
const std::vector< Vec3 > & |
vertices ) |
[inline] |
Check whether all of vertex list is contained with clipping set.
Check whether the entire bounding sphere is contained within clipping set.
Check whether the entire bounding box is contained within clipping set.
void osg::Polytope::flip |
( |
) |
[inline] |
flip/reverse the orientation of all the planes.
ClippingMask osg::Polytope::getCurrentMask |
( |
) |
const [inline] |
MaskStack& osg::Polytope::getMaskStack |
( |
) |
[inline] |
const MaskStack& osg::Polytope::getMaskStack |
( |
) |
const [inline] |
PlaneList& osg::Polytope::getPlaneList |
( |
) |
[inline] |
const PlaneList& osg::Polytope::getPlaneList |
( |
) |
const [inline] |
VertexList& osg::Polytope::getReferenceVertexList |
( |
) |
[inline] |
const VertexList& osg::Polytope::getReferenceVertexList |
( |
) |
const [inline] |
ClippingMask osg::Polytope::getResultMask |
( |
) |
const [inline] |
void osg::Polytope::popCurrentMask |
( |
) |
[inline] |
void osg::Polytope::pushCurrentMask |
( |
) |
[inline] |
void osg::Polytope::set |
( |
const PlaneList & |
pl ) |
[inline] |
void osg::Polytope::setAndTransformProvidingInverse |
( |
const Polytope & |
pt, |
|
|
const osg::Matrix & |
matrix |
|
) |
| [inline] |
void osg::Polytope::setReferenceVertexList |
( |
VertexList & |
vertices ) |
[inline] |
void osg::Polytope::setResultMask |
( |
ClippingMask |
mask ) |
[inline] |
void osg::Polytope::setToBoundingBox |
( |
const BoundingBox & |
bb ) |
[inline] |
void osg::Polytope::setToUnitFrustum |
( |
bool |
withNear = true , |
|
|
bool |
withFar = true |
|
) |
| [inline] |
Create a Polytope which is a cube, centered at 0,0,0, with sides of 2 units.
void osg::Polytope::setupMask |
( |
) |
[inline] |
void osg::Polytope::transform |
( |
const osg::Matrix & |
matrix ) |
[inline] |
void osg::Polytope::transformProvidingInverse |
( |
const osg::Matrix & |
matrix ) |
[inline] |
Transform the clipping set by provide a pre inverted matrix. see transform for details.
Member Data Documentation
The documentation for this class was generated from the following file: