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]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]inline CullingStack& getClipSpaceCullingStack()
[more]inline CullingStack& getProjectionCullingStack()
[more]inline CullingStack& getModelViewCullingStack()
[more]inline CullingSet& getCurrentCullingSet()
[more]inline const CullingSet& getCurrentCullingSet() const
[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

[more]typedef std::vector<ShadowVolumeOccluder> OccluderList
[more]typedef std::vector< CullingSet > CullingStack

Protected Fields

[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]unsigned int _index_modelviewCullingStack
[more]CullingSet* _back_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

[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


Inherited from CullSettings:

Public Classes

oenum ComputeNearFarMode
oenum CullingModeValues
ostruct ClampProjectionMatrixCallback: public osg::Referenced

Public Methods

oCullSettings& operator = (const CullSettings& settings)
ovoid setCullSettings(const CullSettings& settings)
ovoid setDefaults()
ovoid readEnvironmentalVariables()
ovoid readCommandLine(ArgumentParser& arguments)
ovoid setImpostorsActive(bool active)
obool getImpostorsActive() const
ovoid setImpostorPixelErrorThreshold(float numPixels)
ofloat getImpostorPixelErrorThreshold() const
ovoid setDepthSortImpostorSprites(bool doDepthSort)
obool setDepthSortImpostorSprites() const
ovoid setNumberOfFrameToKeepImpostorSprites(int numFrames)
oint getNumberOfFrameToKeepImpostorSprites() const
ovoid setComputeNearFarMode(ComputeNearFarMode cnfm)
oComputeNearFarMode getComputeNearFarMode() const
ovoid setNearFarRatio(double ratio)
odouble getNearFarRatio() const
ovoid setCullingMode(CullingMode mode)
oCullingMode getCullingMode() const
ovoid setCullMask(const osg::Node::NodeMask nm)
oosg::Node::NodeMask getCullMask() const
ovoid setCullMaskLeft(const osg::Node::NodeMask nm)
oosg::Node::NodeMask getCullMaskLeft() const
ovoid setCullMaskRight(const osg::Node::NodeMask nm)
oosg::Node::NodeMask getCullMaskRight() const
ovoid setLODScale(float bias)
ofloat getLODScale() const
ovoid setSmallFeatureCullingPixelSize(float value)
ofloat getSmallFeatureCullingPixelSize() const
ovoid setClampProjectionMatrixCallback(ClampProjectionMatrixCallback* cpmc)
oClampProjectionMatrixCallback* getClampProjectionMatrixCallback()
oconst ClampProjectionMatrixCallback* getClampProjectionMatrixCallback() const

Public

otypedef unsigned int CullingMode

Protected Fields

oComputeNearFarMode _computeNearFar
oCullingMode _cullingMode
ofloat _LODScale
ofloat _smallFeatureCullingPixelSize
oref_ptr<ClampProjectionMatrixCallback> _clampProjectionMatrixCallback
odouble _nearFarRatio
obool _impostorActive
obool _depthSortImpostorSprites
ofloat _impostorPixelErrorThreshold
oint _numFramesToKeepImpostorSprites
oNode::NodeMask _cullMask
oNode::NodeMask _cullMaskLeft
oNode::NodeMask _cullMaskRight


Documentation

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

o ~CullStack()

otypedef std::vector<ShadowVolumeOccluder> OccluderList

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

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 std::vector< CullingSet > CullingStack

oinline CullingStack& getClipSpaceCullingStack()

oinline CullingStack& getProjectionCullingStack()

oinline CullingStack& getModelViewCullingStack()

oinline CullingSet& getCurrentCullingSet()

oinline const CullingSet& getCurrentCullingSet() const

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

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

ounsigned int _index_modelviewCullingStack

oCullingSet* _back_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++.