OSG
3.4.0
|
#include <Polytope.h>
Public Types | |
typedef unsigned int | ClippingMask |
typedef std::vector< Plane > | PlaneList |
typedef std::vector< Vec3 > | VertexList |
typedef fast_back_stack < ClippingMask > | MaskStack |
Protected Attributes | |
MaskStack | _maskStack |
ClippingMask | _resultMask |
PlaneList | _planeList |
VertexList | _referenceVertexList |
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)
Definition at line 25 of file Polytope.h.
typedef unsigned int osg::Polytope::ClippingMask |
Definition at line 30 of file Polytope.h.
Definition at line 33 of file Polytope.h.
typedef std::vector<Plane> osg::Polytope::PlaneList |
Definition at line 31 of file Polytope.h.
typedef std::vector<Vec3> osg::Polytope::VertexList |
Definition at line 32 of file Polytope.h.
|
inline |
Definition at line 35 of file Polytope.h.
|
inline |
Definition at line 37 of file Polytope.h.
|
inline |
Definition at line 43 of file Polytope.h.
|
inline |
Definition at line 45 of file Polytope.h.
|
inline |
Definition at line 135 of file Polytope.h.
|
inline |
Definition at line 47 of file Polytope.h.
|
inline |
Check whether a vertex is contained within clipping set.
Definition at line 196 of file Polytope.h.
|
inline |
Check whether any part of vertex list is contained within clipping set.
Definition at line 212 of file Polytope.h.
|
inline |
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.
Definition at line 243 of file Polytope.h.
|
inline |
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.
Definition at line 270 of file Polytope.h.
|
inline |
Check whether all of vertex list is contained with clipping set.
Definition at line 293 of file Polytope.h.
|
inline |
Check whether the entire bounding sphere is contained within clipping set.
Definition at line 316 of file Polytope.h.
|
inline |
Check whether the entire bounding box is contained within clipping set.
Definition at line 339 of file Polytope.h.
|
inline |
Definition at line 148 of file Polytope.h.
|
inline |
flip/reverse the orientation of all the planes.
Definition at line 138 of file Polytope.h.
|
inline |
Definition at line 172 of file Polytope.h.
|
inline |
Definition at line 174 of file Polytope.h.
|
inline |
Definition at line 180 of file Polytope.h.
|
inline |
Definition at line 182 of file Polytope.h.
|
inline |
|
inline |
Definition at line 152 of file Polytope.h.
|
inline |
Definition at line 157 of file Polytope.h.
|
inline |
Definition at line 159 of file Polytope.h.
|
inline |
Definition at line 49 of file Polytope.h.
|
inline |
|
inline |
Definition at line 132 of file Polytope.h.
|
inline |
|
inline |
Definition at line 155 of file Polytope.h.
|
inline |
|
inline |
Create a Polytope which is a equivalent to BoundingBox.
Definition at line 73 of file Polytope.h.
|
inline |
Create a Polytope which is a cube, centered at 0,0,0, with sides of 2 units.
Definition at line 60 of file Polytope.h.
|
inline |
Definition at line 162 of file Polytope.h.
|
inline |
Transform the clipping set by matrix. Note, this operations carries out the calculation of the inverse of the matrix since a plane must be multiplied by the inverse transposed to transform it. This makes this operation expensive. If the inverse has been already calculated elsewhere then use transformProvidingInverse() instead. See http://www.worldserver.com/turk/computergraphics/NormalTransformations.pdf
Definition at line 368 of file Polytope.h.
|
inline |
Transform the clipping set by provide a pre inverted matrix. see transform for details.
Definition at line 377 of file Polytope.h.
|
protected |
Definition at line 398 of file Polytope.h.
|
protected |
Definition at line 400 of file Polytope.h.
|
protected |
Definition at line 401 of file Polytope.h.
|
protected |
Definition at line 399 of file Polytope.h.