class SG_EXPORT osg::CollectOccludersVisitor


Inheritance:


Public Methods

[more] CollectOccludersVisitor()
[more]virtual ~CollectOccludersVisitor()
[more]virtual CollectOccludersVisitor* cloneType() const
[more]virtual void reset()
[more]virtual float getDistanceToEyePoint(const Vec3& pos, bool withLODScale) const
[more]virtual float getDistanceFromEyePoint(const Vec3& pos, bool withLODScale) const
[more]virtual void apply(osg::Node&)
[more]virtual void apply(osg::Transform& node)
[more]virtual void apply(osg::Projection& node)
[more]virtual void apply(osg::Switch& node)
[more]virtual void apply(osg::LOD& node)
[more]virtual void apply(osg::OccluderNode& node)
[more]void setMinimumShadowOccluderVolume(float vol)
[more]float getMinimumShadowOccluderVolume() const
[more]void setCreateDrawablesOnOccludeNodes(bool flag)
[more]bool getCreateDrawablesOnOccludeNodes() const
[more]void setCollectedOcculderList(const ShadowVolumeOccluderSet& svol)
[more]ShadowVolumeOccluderSet& getCollectedOccluderSet()
[more]const ShadowVolumeOccluderSet& getCollectedOccluderSet() const
[more]void removeOccludedOccluders()
remove occluded occluders for the collected occluders list

Public Members

[more]typedef std::set<ShadowVolumeOccluder> ShadowVolumeOccluderSet

Protected Fields

[more]float _minimumShadowOccluderVolume
[more]bool _createDrawables
[more]ShadowVolumeOccluderSet _occluderSet

Protected Methods

[more] CollectOccludersVisitor(const CollectOccludersVisitor&)
prevent unwanted copy construction
[more]CollectOccludersVisitor& operator = (const CollectOccludersVisitor&)
prevent unwanted copy operator
[more]inline void handle_cull_callbacks_and_traverse(osg::Node& node)
[more]inline void handle_cull_callbacks_and_accept(osg::Node& node, osg::Node* acceptNode)


Inherited from NodeVisitor:

Public Methods

oinline void setVisitorType(VisitorType type)
oinline VisitorType getVisitorType() const
oinline void setTraversalNumber(int fn)
oinline int getTraversalNumber() const
oinline void setFrameStamp(FrameStamp* fs)
oinline const FrameStamp* getFrameStamp() const
oinline void setTraversalMask(Node::NodeMask mask)
oinline Node::NodeMask getTraversalMask() const
oinline void setNodeMaskOverride(Node::NodeMask mask)
oinline Node::NodeMask getNodeMaskOverride() const
oinline bool validNodeMask(const osg::Node& node) const
oinline void setTraversalMode(TraversalMode mode)
oinline TraversalMode getTraversalMode() const
oinline void traverse(Node& node)
oinline void pushOntoNodePath(Node* node)
oinline void popFromNodePath()
oNodePath& getNodePath()
oconst NodePath& getNodePath() const
ovirtual bool getLocalToWorldMatrix(Matrix& matrix, Node* node)
ovirtual bool getWorldToLocalMatrix(Matrix& matrix, Node* node)
ovirtual osg::Vec3 getEyePoint() const

Public Members

oenum TraversalMode
oenum VisitorType

Protected Fields

oVisitorType _visitorType
oint _traversalNumber
oref_ptr<FrameStamp> _frameStamp
oTraversalMode _traversalMode
oNode::NodeMask _traversalMask
oNode::NodeMask _nodeMaskOverride
oNodePath _nodePath


Inherited from Referenced:

Public Methods

ostatic void setDeleteHandler(DeleteHandler* handler)
ostatic DeleteHandler* getDeleteHandler()
oinline void ref() const
oinline void unref_nodelete() const
oinline int referenceCount() const
oinline void unref() const

Protected Fields

omutable int _refCount


Inherited from CullStack:

Public Methods

ovoid setOccluderList(const ShadowVolumeOccluderList& svol)
oShadowVolumeOccluderList& getOccluderList()
oconst ShadowVolumeOccluderList& getOccluderList() const
ovoid pushViewport(osg::Viewport* viewport)
ovoid popViewport()
ovoid pushProjectionMatrix(osg::RefMatrix* matrix)
ovoid popProjectionMatrix()
ovoid pushModelViewMatrix(osg::RefMatrix* matrix)
ovoid popModelViewMatrix()
oinline float getFrustumVolume()
ovoid setCullingMode(CullingMode mode)
oCullingMode getCullingMode() const
ovoid setLODScale(float bias)
ofloat getLODScale() const
ovoid setSmallFeatureCullingPixelSize(float value)
ofloat getSmallFeatureCullingPixelSize() const
ofloat pixelSize(const Vec3& v, float radius) const
ofloat pixelSize(const BoundingSphere& bs) const
oinline void disableAndPushOccludersCurrentMask(NodePath& nodePath)
oinline void popOccludersCurrentMask(NodePath& nodePath)
oinline bool isCulled(const std::vector<Vec3>& vertices)
oinline bool isCulled(const BoundingBox& bb)
oinline bool isCulled(const BoundingSphere& bs)
oinline bool isCulled(const osg::Node& node)
oinline void pushCurrentMask()
oinline void popCurrentMask()
oCullingStack& getClipSpaceCullingStack()
oCullingStack& getProjectionCullingStack()
oCullingStack& getModelViewCullingStack()
oCullingSet& getCurrentCullingSet()
oinline osg::Viewport* getViewport()
oinline osg::RefMatrix& getModelViewMatrix()
oinline osg::RefMatrix& getProjectionMatrix()
oinline osg::Matrix getWindowMatrix()
oinline const osg::RefMatrix& getMVPW()
oinline const osg::Vec3& getEyeLocal() const
oinline const osg::Vec3 getUpLocal() const
oinline const osg::Vec3 getLookVectorLocal() const
oinline Viewport* getViewport()
oinline RefMatrix& getModelViewMatrix()
oinline RefMatrix& getProjectionMatrix()
oinline Matrix getWindowMatrix()
oinline const RefMatrix& getMVPW()
oinline RefMatrix* createOrReuseMatrix(const osg::Matrix& value)

Public Members

otypedef std::vector<ShadowVolumeOccluder> OccluderList
oenum CullingModeValues
otypedef unsigned int CullingMode
otypedef fast_back_stack<ref_ptr<CullingSet> > CullingStack

Protected Fields

oCullingMode _cullingMode
ofloat _LODScale
ofloat _smallFeatureCullingPixelSize
oShadowVolumeOccluderList _occluderList
oMatrixStack _projectionStack
oMatrixStack _modelviewStack
oMatrixStack _MVPW_Stack
oViewportStack _viewportStack
oEyePointStack _eyePointStack
oCullingStack _clipspaceCullingStack
oCullingStack _projectionCullingStack
oCullingStack _modelviewCullingStack
ofloat _frustumVolume
ounsigned int _bbCornerNear
ounsigned int _bbCornerFar
oref_ptr<osg::RefMatrix> _identity
oMatrixList _reuseMatrixList
ounsigned int _currentReuseMatrixIndex

Protected Methods

ovoid pushCullingSet()
ovoid popCullingSet()
ovoid computeFrustumVolume()
oinline osg::RefMatrix* createOrReuseMatrix(const osg::Matrix& value)

Protected Members

otypedef fast_back_stack< ref_ptr<RefMatrix> > MatrixStack
otypedef fast_back_stack<ref_ptr<Viewport> > ViewportStack
otypedef fast_back_stack<Vec3> EyePointStack
otypedef std::vector< osg::ref_ptr<osg::RefMatrix> > MatrixList


Documentation

otypedef std::set<ShadowVolumeOccluder> ShadowVolumeOccluderSet

o CollectOccludersVisitor()

ovirtual ~CollectOccludersVisitor()

ovirtual CollectOccludersVisitor* cloneType() const

ovirtual void reset()

ovirtual float getDistanceToEyePoint(const Vec3& pos, bool withLODScale) const

ovirtual float getDistanceFromEyePoint(const Vec3& pos, bool withLODScale) const

ovirtual void apply(osg::Node&)

ovirtual void apply(osg::Transform& node)

ovirtual void apply(osg::Projection& node)

ovirtual void apply(osg::Switch& node)

ovirtual void apply(osg::LOD& node)

ovirtual void apply(osg::OccluderNode& node)

ovoid setMinimumShadowOccluderVolume(float vol)

ofloat getMinimumShadowOccluderVolume() const

ovoid setCreateDrawablesOnOccludeNodes(bool flag)

obool getCreateDrawablesOnOccludeNodes() const

ovoid setCollectedOcculderList(const ShadowVolumeOccluderSet& svol)

oShadowVolumeOccluderSet& getCollectedOccluderSet()

oconst ShadowVolumeOccluderSet& getCollectedOccluderSet() const

ovoid removeOccludedOccluders()
remove occluded occluders for the collected occluders list

o CollectOccludersVisitor(const CollectOccludersVisitor&)
prevent unwanted copy construction

oCollectOccludersVisitor& operator = (const CollectOccludersVisitor&)
prevent unwanted copy operator

oinline void handle_cull_callbacks_and_traverse(osg::Node& node)

oinline void handle_cull_callbacks_and_accept(osg::Node& node, osg::Node* acceptNode)

ofloat _minimumShadowOccluderVolume

obool _createDrawables

oShadowVolumeOccluderSet _occluderSet


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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