class SG_EXPORT osg::ShadowVolumeOccluder

ShadowVolumeOccluder is a helper class for implementating shadow occlusion culling.

Public Methods

[more] ShadowVolumeOccluder(const ShadowVolumeOccluder& svo)
[more] ShadowVolumeOccluder()
[more]bool operator < (const ShadowVolumeOccluder& svo) const
[more]bool computeOccluder(const NodePath& nodePath, const ConvexPlanarOccluder& occluder, CullStack& cullStack, bool createDrawables=false)
compute the shadow volume occluder.
[more]bool matchProjectionMatrix(const osg::Matrix& matrix) const
return true if the matrix passed in matches the projection matrix that this ShaowVolumeOccluder is associated with
[more]inline void setNodePath(NodePath& nodePath)
Set the NodePath which describes the which node in the scene graph that this occluder was attached to
[more]inline NodePath& getNodePath()
[more]inline const NodePath& getNodePath() const
[more]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
[more]Polytope& getOccluder()
return the occluder polytope
[more]const Polytope& getOccluder() const
return the const occluder polytope
[more]HoleList& getHoleList()
return the list of holes
[more]const HoleList& getHoleList() const
return the const list of holes
[more]bool contains(const std::vector<Vec3>& vertices)
return true if the specified vertex list is contaned entirely within this shadow occluder volume
[more]bool contains(const BoundingSphere& bound)
return true if the specified bounding sphere is contaned entirely within this shadow occluder volume
[more]bool contains(const BoundingBox& bound)
return true if the specified bounding box is contained entirely within this shadow occluder volume
[more]inline void transformProvidingInverse(const osg::Matrix& matrix)
[more]inline void disableResultMasks()
[more]inline void pushCurrentMask()
[more]inline void popCurrentMask()

Public

[more]typedef std::vector<Polytope> HoleList

Protected Fields

[more]float _volume
[more]NodePath _nodePath
[more]ref_ptr<const RefMatrix> _projectionMatrix
[more]Polytope _occluderVolume
[more]HoleList _holeList


Documentation

ShadowVolumeOccluder is a helper class for implementating shadow occlusion culling.
otypedef std::vector<Polytope> HoleList

o ShadowVolumeOccluder(const ShadowVolumeOccluder& svo)

o ShadowVolumeOccluder()

obool operator < (const ShadowVolumeOccluder& svo) const

obool computeOccluder(const NodePath& nodePath, const ConvexPlanarOccluder& occluder, CullStack& cullStack, bool createDrawables=false)
compute the shadow volume occluder.

obool matchProjectionMatrix(const osg::Matrix& matrix) const
return true if the matrix passed in matches the projection matrix that this ShaowVolumeOccluder is associated with

oinline void setNodePath(NodePath& nodePath)
Set the NodePath which describes the which node in the scene graph that this occluder was attached to

oinline NodePath& getNodePath()

oinline const NodePath& getNodePath() const

ofloat 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

oPolytope& getOccluder()
return the occluder polytope

oconst Polytope& getOccluder() const
return the const occluder polytope

oHoleList& getHoleList()
return the list of holes

oconst HoleList& getHoleList() const
return the const list of holes

obool contains(const std::vector<Vec3>& vertices)
return true if the specified vertex list is contaned entirely within this shadow occluder volume

obool contains(const BoundingSphere& bound)
return true if the specified bounding sphere is contaned entirely within this shadow occluder volume

obool contains(const BoundingBox& bound)
return true if the specified bounding box is contained entirely within this shadow occluder volume

oinline void transformProvidingInverse(const osg::Matrix& matrix)

ofloat _volume

oNodePath _nodePath

oref_ptr<const RefMatrix> _projectionMatrix

oPolytope _occluderVolume

oHoleList _holeList

oinline void disableResultMasks()

oinline void pushCurrentMask()

oinline 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++.