class SG_EXPORT osg::CullStack

A CullStack class which accumulates the current project, modelview matrices and the CullingSet.

Inheritance:


Public Methods

[more] CullStack()
[more] ~CullStack()
[more]void reset()
[more]void setOccluderList(const ShadowVolumeOccluderList& svol)
[more]ShadowVolumeOccluderList& getOccluderList()
[more]const ShadowVolumeOccluderList& getOccluderList() const
[more]void pushViewport(osg::Viewport* viewport)
[more]void popViewport()
[more]void pushProjectionMatrix(osg::Matrix* matrix)
[more]void popProjectionMatrix()
[more]void pushModelViewMatrix(osg::Matrix* matrix)
[more]void popModelViewMatrix()
[more]inline float getFrustumVolume()
[more]void setCullingMode(CullingMode mode)
Sets the current CullingMode
[more]CullingMode getCullingMode() const
Returns the current CullingMode
[more]void setLODScale(float bias)
[more]float getLODScale() const
[more]void setSmallFeatureCullingPixelSize(float value)
[more]float getSmallFeatureCullingPixelSize() const
[more]float pixelSize(const Vec3& v, float radius) const
Compute the pixel of an object at position v, with specified radius
[more]float pixelSize(const BoundingSphere& bs) const
Compute the pixel of an bounding sphere
[more]inline void disableAndPushOccludersCurrentMask(NodePath& nodePath)
[more]inline void popOccludersCurrentMask(NodePath& nodePath)
[more]inline bool isCulled(const std::vector<Vec3>& vertices)
[more]inline bool isCulled(const BoundingBox& bb)
[more]inline bool isCulled(const BoundingSphere& bs)
[more]inline bool isCulled(const osg::Node& node)
[more]inline void pushCurrentMask()
[more]inline void popCurrentMask()
[more]CullingStack& getClipSpaceCullingStack()
[more]CullingStack& getProjectionCullingStack()
[more]CullingStack& getModelViewCullingStack()
[more]CullingSet& getCurrentCullingSet()
[more]inline osg::Viewport* getViewport()
[more]inline osg::Matrix& getModelViewMatrix()
[more]inline osg::Matrix& getProjectionMatrix()
[more]inline osg::Matrix getWindowMatrix()
[more]inline const osg::Matrix& getMVPW()
[more]inline const osg::Vec3& getEyeLocal() const
[more]inline const osg::Vec3 getUpLocal() const
[more]inline const osg::Vec3 getLookVectorLocal() const
[more]inline Viewport* getViewport()
[more]inline Matrix& getModelViewMatrix()
[more]inline Matrix& getProjectionMatrix()
[more]inline Matrix getWindowMatrix()
[more]inline const Matrix& getMVPW()
[more]inline Matrix* createOrReuseMatrix(const osg::Matrix& value)

Public Members

[more]typedef std::vector<ShadowVolumeOccluder> OccluderList
[more]enum CullingModeValues
[more]typedef unsigned int CullingMode
[more]typedef fast_back_stack<ref_ptr<CullingSet> > CullingStack

Protected Fields

[more]CullingMode _cullingMode
[more]float _LODScale
[more]float _smallFeatureCullingPixelSize
[more]ShadowVolumeOccluderList _occluderList
[more]MatrixStack _projectionStack
[more]MatrixStack _modelviewStack
[more]MatrixStack _MVPW_Stack
[more]ViewportStack _viewportStack
[more]EyePointStack _eyePointStack
[more]CullingStack _clipspaceCullingStack
[more]CullingStack _projectionCullingStack
[more]CullingStack _modelviewCullingStack
[more]float _frustumVolume
[more]unsigned int _bbCornerNear
[more]unsigned int _bbCornerFar
[more]osg::Matrix _identity
[more]MatrixList _reuseMatrixList
[more]unsigned int _currentReuseMatrixIndex

Protected Methods

[more]void pushCullingSet()
[more]void popCullingSet()
[more]void computeFrustumVolume()
[more]inline osg::Matrix* createOrReuseMatrix(const osg::Matrix& value)

Protected Members

[more]typedef fast_back_stack< ref_ptr<Matrix> > MatrixStack
[more]typedef fast_back_stack<ref_ptr<Viewport> > ViewportStack
[more]typedef fast_back_stack<Vec3> EyePointStack
[more]typedef std::vector< osg::ref_ptr<osg::Matrix> > MatrixList


Documentation

A CullStack class which accumulates the current project, modelview matrices and the CullingSet.
o CullStack()

o ~CullStack()

otypedef std::vector<ShadowVolumeOccluder> OccluderList

oenum CullingModeValues

o NO_CULLING

o VIEW_FRUSTUM_CULLING

o NEAR_PLANE_CULLING

o FAR_PLANE_CULLING

o SMALL_FEATURE_CULLING

o SHADOW_OCCLUSION_CULLING

o ENABLE_ALL_CULLING

otypedef unsigned int CullingMode

ovoid reset()

ovoid setOccluderList(const ShadowVolumeOccluderList& svol)

oShadowVolumeOccluderList& getOccluderList()

oconst ShadowVolumeOccluderList& getOccluderList() const

ovoid pushViewport(osg::Viewport* viewport)

ovoid popViewport()

ovoid pushProjectionMatrix(osg::Matrix* matrix)

ovoid popProjectionMatrix()

ovoid pushModelViewMatrix(osg::Matrix* matrix)

ovoid popModelViewMatrix()

oinline float getFrustumVolume()

ovoid setCullingMode(CullingMode mode)
Sets the current CullingMode

oCullingMode getCullingMode() const
Returns the current CullingMode

ovoid setLODScale(float bias)

ofloat getLODScale() const

ovoid setSmallFeatureCullingPixelSize(float value)

ofloat getSmallFeatureCullingPixelSize() const

ofloat pixelSize(const Vec3& v, float radius) const
Compute the pixel of an object at position v, with specified radius

ofloat pixelSize(const BoundingSphere& bs) const
Compute the pixel of an bounding sphere

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()

otypedef fast_back_stack<ref_ptr<CullingSet> > CullingStack

oCullingStack& getClipSpaceCullingStack()

oCullingStack& getProjectionCullingStack()

oCullingStack& getModelViewCullingStack()

oCullingSet& getCurrentCullingSet()

oinline osg::Viewport* getViewport()

oinline osg::Matrix& getModelViewMatrix()

oinline osg::Matrix& getProjectionMatrix()

oinline osg::Matrix getWindowMatrix()

oinline const osg::Matrix& getMVPW()

oinline const osg::Vec3& getEyeLocal() const

oinline const osg::Vec3 getUpLocal() const

oinline const osg::Vec3 getLookVectorLocal() const

ovoid pushCullingSet()

ovoid popCullingSet()

oCullingMode _cullingMode

ofloat _LODScale

ofloat _smallFeatureCullingPixelSize

oShadowVolumeOccluderList _occluderList

otypedef fast_back_stack< ref_ptr<Matrix> > MatrixStack

oMatrixStack _projectionStack

oMatrixStack _modelviewStack

oMatrixStack _MVPW_Stack

otypedef fast_back_stack<ref_ptr<Viewport> > ViewportStack

oViewportStack _viewportStack

otypedef fast_back_stack<Vec3> EyePointStack

oEyePointStack _eyePointStack

oCullingStack _clipspaceCullingStack

oCullingStack _projectionCullingStack

oCullingStack _modelviewCullingStack

ovoid computeFrustumVolume()

ofloat _frustumVolume

ounsigned int _bbCornerNear

ounsigned int _bbCornerFar

oosg::Matrix _identity

otypedef std::vector< osg::ref_ptr<osg::Matrix> > MatrixList

oMatrixList _reuseMatrixList

ounsigned int _currentReuseMatrixIndex

oinline osg::Matrix* createOrReuseMatrix(const osg::Matrix& value)

oinline Viewport* getViewport()

oinline Matrix& getModelViewMatrix()

oinline Matrix& getProjectionMatrix()

oinline Matrix getWindowMatrix()

oinline const Matrix& getMVPW()

oinline Matrix* createOrReuseMatrix(const osg::Matrix& value)


Direct child classes:
CollectOccludersVisitor

Alphabetic index HTML hierarchy of classes or Java



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