class SG_EXPORT osg::ClippingVolume

A ClippingVolume class for representing convex clipping volumes made up

Public Methods

[more]typedef std::vector<osg::Plane>inline PlaneList ClippingVolume()
[more]inline ClippingVolume(const ClippingVolume& cv)
[more]inline ClippingVolume(const PlaneList& pl)
[more]inline ~ClippingVolume()
[more]inline void clear()
[more]inline ClippingVolume& operator = (const ClippingVolume& cv)
[more]inline void set(const ClippingVolume& cs)
[more]inline void set(const PlaneList& pl)
[more]inline void add(const osg::Plane& pl)
[more]inline PlaneList& getPlaneList()
[more]inline const PlaneList& getPlaneList() const
[more]inline void setupMask()
[more]inline const bool contains(const osg::Vec3& v) const
Check whether a vertex is contained with clipping set
[more]inline const bool contains(const osg::BoundingSphere& bs, unsigned int& mask) const
Check whether any part of a bounding sphere is contained within clipping set.
[more]inline const bool contains(const osg::BoundingSphere& bs) const
Check whether any part of a bounding sphere is contained within clipping set
[more]inline const bool contains(const osg::BoundingBox& bb, unsigned int& mask) const
Check whether any part of a bounding box is contained within clipping set.
[more]inline const bool contains(const osg::BoundingBox& bb) const
Check whether any part of a bounding box is contained within clipping set
[more]inline void transform(const osg::Matrix& matrix)
Transform the clipping set by matrix.
[more]inline void transformProvidingInverse(const osg::Matrix& matrix)
Transform the clipping set by provide a pre inverted matrix.

Protected Fields

[more]unsigned int _localMask
[more]PlaneList _planeList


Documentation

A ClippingVolume class for representing convex clipping volumes made up
otypedef std::vector<osg::Plane>inline PlaneList ClippingVolume()

oinline ClippingVolume(const ClippingVolume& cv)

oinline ClippingVolume(const PlaneList& pl)

oinline ~ClippingVolume()

oinline void clear()

oinline ClippingVolume& operator = (const ClippingVolume& cv)

oinline void set(const ClippingVolume& cs)

oinline void set(const PlaneList& pl)

oinline void add(const osg::Plane& pl)

oinline PlaneList& getPlaneList()

oinline const PlaneList& getPlaneList() const

oinline void setupMask()

oinline const bool contains(const osg::Vec3& v) const
Check whether a vertex is contained with clipping set

oinline const bool contains(const osg::BoundingSphere& bs, unsigned int& mask) const
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.

oinline const bool contains(const osg::BoundingSphere& bs) const
Check whether any part of a bounding sphere is contained within clipping set

oinline const bool contains(const osg::BoundingBox& bb, unsigned int& mask) const
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.

oinline const bool contains(const osg::BoundingBox& bb) const
Check whether any part of a bounding box is contained within clipping set

oinline void transform(const osg::Matrix& matrix)
Transform the clipping set by matrix. Note, this operations carries out the calculation of the inverse of the matrix since to transforms planes must be multiplied my the inverse transposed. This make this operation expensive. If the inverse has been already calculated elsewhere then use transformProvidingInverse() instead. See http://www.worldserver.com/turk/computergraphics/NormalTransformations.pdf

oinline void transformProvidingInverse(const osg::Matrix& matrix)
Transform the clipping set by provide a pre inverted matrix. see transform for details.

ounsigned int _localMask

oPlaneList _planeList


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.