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::RefMatrix* matrix)
[more]void popProjectionMatrix()
[more]void pushModelViewMatrix(osg::RefMatrix* 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::RefMatrix& getModelViewMatrix()
[more]inline osg::RefMatrix& getProjectionMatrix()
[more]inline osg::Matrix getWindowMatrix()
[more]inline const osg::RefMatrix& 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 RefMatrix& getModelViewMatrix()
[more]inline RefMatrix& getProjectionMatrix()
[more]inline Matrix getWindowMatrix()
[more]inline const RefMatrix& getMVPW()
[more]inline RefMatrix* 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]ref_ptr<osg::RefMatrix> _identity
[more]MatrixList _reuseMatrixList
[more]unsigned int _currentReuseMatrixIndex

Protected Methods

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

Protected Members

[more]typedef fast_back_stack< ref_ptr<RefMatrix> > 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::RefMatrix> > 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_SIDES_CULLING

o NEAR_PLANE_CULLING

o FAR_PLANE_CULLING

o VIEW_FRUSTUM_CULLING

o SMALL_FEATURE_CULLING

o SHADOW_OCCLUSION_CULLING

o DEFAULT_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::RefMatrix* matrix)

ovoid popProjectionMatrix()

ovoid pushModelViewMatrix(osg::RefMatrix* 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::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

ovoid pushCullingSet()

ovoid popCullingSet()

oCullingMode _cullingMode

ofloat _LODScale

ofloat _smallFeatureCullingPixelSize

oShadowVolumeOccluderList _occluderList

otypedef fast_back_stack< ref_ptr<RefMatrix> > 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

oref_ptr<osg::RefMatrix> _identity

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

oMatrixList _reuseMatrixList

ounsigned int _currentReuseMatrixIndex

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

oinline Viewport* getViewport()

oinline RefMatrix& getModelViewMatrix()

oinline RefMatrix& getProjectionMatrix()

oinline Matrix getWindowMatrix()

oinline const RefMatrix& getMVPW()

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