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]typedef unsigned int CullingMode 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 setLODBias(const float bias)
[more]const float getLODBias() 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]typedef fast_back_stack<ref_ptr<CullingSet> > CullingStack 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 const 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 const Matrix getWindowMatrix()
[more]inline const Matrix& getMVPW()
[more]inline Matrix* createOrReuseMatrix(const osg::Matrix& value)

Public Members

[more]typedef std::vector<ShadowVolumeOccluder> OccluderListenum CullingModeValues

Protected Fields

[more]CullingMode _cullingMode
[more]float _LODBias
[more]float _smallFeatureCullingPixelSize
[more]ShadowVolumeOccluderList _occluderList
[more]MatrixStack _modelviewStack
[more]MatrixStack _MVPW_Stack
[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]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 MatrixStack _projectionStack
[more]typedef fast_back_stack<ref_ptr<Viewport> > ViewportStack ViewportStack _viewportStack
[more]typedef fast_back_stack<Vec3> EyePointStack EyePointStack _eyePointStack
[more]typedef std::vector< osg::ref_ptr<osg::Matrix> > MatrixList MatrixList _reuseMatrixList


Documentation

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

o ~CullStack()

otypedef std::vector<ShadowVolumeOccluder> OccluderListenum 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 void 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 setLODBias(const float bias)

oconst float getLODBias() 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 CullingStack& getClipSpaceCullingStack()

oCullingStack& getProjectionCullingStack()

oCullingStack& getModelViewCullingStack()

oCullingSet& getCurrentCullingSet()

oinline osg::Viewport* getViewport()

oinline osg::Matrix& getModelViewMatrix()

oinline osg::Matrix& getProjectionMatrix()

oinline const 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 _LODBias

ofloat _smallFeatureCullingPixelSize

oShadowVolumeOccluderList _occluderList

otypedef fast_back_stack< ref_ptr<Matrix> > MatrixStack MatrixStack _projectionStack

oMatrixStack _modelviewStack

oMatrixStack _MVPW_Stack

otypedef fast_back_stack<ref_ptr<Viewport> > ViewportStack ViewportStack _viewportStack

otypedef fast_back_stack<Vec3> EyePointStack EyePointStack _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 MatrixList _reuseMatrixList

ounsigned int _currentReuseMatrixIndex

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

oinline Viewport* getViewport()

oinline Matrix& getModelViewMatrix()

oinline Matrix& getProjectionMatrix()

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