ShadowVolumeOccluder is a helper class for implementating shadow occlusion culling.
Public Methods
-
ShadowVolumeOccluder(const ShadowVolumeOccluder& svo)
-
ShadowVolumeOccluder()
-
bool operator < (const ShadowVolumeOccluder& svo) const
-
bool computeOccluder(const NodePath& nodePath, const ConvexPlanarOccluder& occluder, CullStack& cullStack, bool createDrawables=false)
- compute the shadow volume occluder.
-
bool matchProjectionMatrix(const osg::Matrix& matrix) const
- return true if the matrix passed in matches the projection matrix that this ShaowVolumeOccluder is associated with
-
inline void setNodePath(NodePath& nodePath)
- Set the NodePath which describes the which node in the scene graph that this occluder was attached to
-
inline NodePath& getNodePath()
-
inline const NodePath& getNodePath() const
-
float getVolume() const
- get the volume of the occluder minus its holes, in eye coords, the volume is normalized by dividing by the volume of the view frustum in eye coords
-
Polytope& getOccluder()
- return the occluder polytope
-
const Polytope& getOccluder() const
- return the const occluder polytope
-
HoleList& getHoleList()
- return the list of holes
-
const HoleList& getHoleList() const
- return the const list of holes
-
bool contains(const std::vector<Vec3>& vertices)
- return true if the specified vertex list is contaned entirely within this shadow occluder volume
-
bool contains(const BoundingSphere& bound)
- return true if the specified bounding sphere is contaned entirely within this shadow occluder volume
-
bool contains(const BoundingBox& bound)
- return true if the specified bounding box is contained entirely within this shadow occluder volume
-
inline void transformProvidingInverse(const osg::Matrix& matrix)
-
inline void disableResultMasks()
-
inline void pushCurrentMask()
-
inline void popCurrentMask()
Public Members
-
typedef std::vector<Polytope> HoleList
Protected Fields
-
float _volume
-
NodePath _nodePath
-
ref_ptr<const Matrix> _projectionMatrix
-
Polytope _occluderVolume
-
HoleList _holeList
Documentation
ShadowVolumeOccluder is a helper class for implementating shadow occlusion culling.
- typedef std::vector<Polytope> HoleList
- ShadowVolumeOccluder(const ShadowVolumeOccluder& svo)
- ShadowVolumeOccluder()
- bool operator < (const ShadowVolumeOccluder& svo) const
- bool computeOccluder(const NodePath& nodePath, const ConvexPlanarOccluder& occluder, CullStack& cullStack, bool createDrawables=false)
- compute the shadow volume occluder.
- bool matchProjectionMatrix(const osg::Matrix& matrix) const
- return true if the matrix passed in matches the projection matrix that this ShaowVolumeOccluder is
associated with
- inline void setNodePath(NodePath& nodePath)
- Set the NodePath which describes the which node in the scene graph
that this occluder was attached to
- inline NodePath& getNodePath()
- inline const NodePath& getNodePath() const
- float getVolume() const
- get the volume of the occluder minus its holes, in eye coords, the volume is normalized by dividing by
the volume of the view frustum in eye coords
- Polytope& getOccluder()
- return the occluder polytope
- const Polytope& getOccluder() const
- return the const occluder polytope
- HoleList& getHoleList()
- return the list of holes
- const HoleList& getHoleList() const
- return the const list of holes
- bool contains(const std::vector<Vec3>& vertices)
- return true if the specified vertex list is contaned entirely
within this shadow occluder volume
- bool contains(const BoundingSphere& bound)
- return true if the specified bounding sphere is contaned entirely
within this shadow occluder volume
- bool contains(const BoundingBox& bound)
- return true if the specified bounding box is contained entirely
within this shadow occluder volume
- inline void transformProvidingInverse(const osg::Matrix& matrix)
- float _volume
- NodePath _nodePath
- ref_ptr<const Matrix> _projectionMatrix
- Polytope _occluderVolume
- HoleList _holeList
- inline void disableResultMasks()
- inline void pushCurrentMask()
- inline void popCurrentMask()
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.