class SG_EXPORT osg::CullSettings


Inheritance:


Public Classes

[more]enum ComputeNearFarMode
[more]enum CullingModeValues
[more]struct ClampProjectionMatrixCallback: public osg::Referenced
Callback for overriding the CullVisitor's default clamping of the projection matrix to computed near and far values.

Public Methods

[more] CullSettings()
[more] CullSettings(ArgumentParser& arguments)
[more] CullSettings(const CullSettings& cs)
[more]virtual ~CullSettings()
[more]CullSettings& operator = (const CullSettings& settings)
[more]void setCullSettings(const CullSettings& settings)
[more]void setDefaults()
[more]void readEnvironmentalVariables()
read the environmental variables
[more]void readCommandLine(ArgumentParser& arguments)
read the commandline arguments
[more]void setImpostorsActive(bool active)
Switch the creation of Impostors on or off.
[more]bool getImpostorsActive() const
Get whether impostors are active or not.
[more]void setImpostorPixelErrorThreshold(float numPixels)
Set the impostor error threshold.
[more]float getImpostorPixelErrorThreshold() const
Get the impostor error threshold
[more]void setDepthSortImpostorSprites(bool doDepthSort)
Set whether ImpostorSprite's should be placed in a depth sorted bin for rendering
[more]bool setDepthSortImpostorSprites() const
Get whether ImpostorSprite's are depth sorted bin for rendering
[more]void setNumberOfFrameToKeepImpostorSprites(int numFrames)
Set the number of frames that an ImpostorSprite's is kept whilst not being beyond, before being recycled
[more]int getNumberOfFrameToKeepImpostorSprites() const
Get the number of frames that an ImpostorSprite's is kept whilst not being beyond, before being recycled
[more]void setComputeNearFarMode(ComputeNearFarMode cnfm)
[more]ComputeNearFarMode getComputeNearFarMode() const
[more]void setNearFarRatio(double ratio)
[more]double getNearFarRatio() const
[more]void setCullingMode(CullingMode mode)
Set the culling mode for the CullVisitor to use
[more]CullingMode getCullingMode() const
Returns the current CullingMode
[more]void setCullMask(const osg::Node::NodeMask nm)
[more]osg::Node::NodeMask getCullMask() const
[more]void setCullMaskLeft(const osg::Node::NodeMask nm)
[more]osg::Node::NodeMask getCullMaskLeft() const
[more]void setCullMaskRight(const osg::Node::NodeMask nm)
[more]osg::Node::NodeMask getCullMaskRight() const
[more]void setLODScale(float bias)
Set the LOD bias for the CullVisitor to use
[more]float getLODScale() const
Get the LOD bias
[more]void setSmallFeatureCullingPixelSize(float value)
Set the Small Feature Culling Pixel Size
[more]float getSmallFeatureCullingPixelSize() const
Get the Small Feature Culling Pixel Size
[more]void setClampProjectionMatrixCallback(ClampProjectionMatrixCallback* cpmc)
set the ClampProjectionMatrixCallback
[more]ClampProjectionMatrixCallback* getClampProjectionMatrixCallback()
get the non const ClampProjectionMatrixCallback
[more]const ClampProjectionMatrixCallback* getClampProjectionMatrixCallback() const
get the const ClampProjectionMatrixCallback

Public

[more]typedef unsigned int CullingMode

Protected Fields

[more]ComputeNearFarMode _computeNearFar
[more]CullingMode _cullingMode
[more]float _LODScale
[more]float _smallFeatureCullingPixelSize
[more]ref_ptr<ClampProjectionMatrixCallback> _clampProjectionMatrixCallback
[more]double _nearFarRatio
[more]bool _impostorActive
[more]bool _depthSortImpostorSprites
[more]float _impostorPixelErrorThreshold
[more]int _numFramesToKeepImpostorSprites
[more]Node::NodeMask _cullMask
[more]Node::NodeMask _cullMaskLeft
[more]Node::NodeMask _cullMaskRight


Documentation

o CullSettings()

o CullSettings(ArgumentParser& arguments)

o CullSettings(const CullSettings& cs)

ovirtual ~CullSettings()

oCullSettings& operator = (const CullSettings& settings)

ovoid setCullSettings(const CullSettings& settings)

ovoid setDefaults()

ovoid readEnvironmentalVariables()
read the environmental variables

ovoid readCommandLine(ArgumentParser& arguments)
read the commandline arguments

ovoid setImpostorsActive(bool active)
Switch the creation of Impostors on or off. Setting active to false forces the CullVisitor to use the Impostor LOD children for rendering. Setting active to true forces the CullVisitor to create the appropriate pre-rendering stages which render to the ImpostorSprite's texture.

obool getImpostorsActive() const
Get whether impostors are active or not.

ovoid setImpostorPixelErrorThreshold(float numPixels)
Set the impostor error threshold. Used in calculation of whether impostors remain valid.

ofloat getImpostorPixelErrorThreshold() const
Get the impostor error threshold

ovoid setDepthSortImpostorSprites(bool doDepthSort)
Set whether ImpostorSprite's should be placed in a depth sorted bin for rendering

obool setDepthSortImpostorSprites() const
Get whether ImpostorSprite's are depth sorted bin for rendering

ovoid setNumberOfFrameToKeepImpostorSprites(int numFrames)
Set the number of frames that an ImpostorSprite's is kept whilst not being beyond, before being recycled

oint getNumberOfFrameToKeepImpostorSprites() const
Get the number of frames that an ImpostorSprite's is kept whilst not being beyond, before being recycled

oenum ComputeNearFarMode

o DO_NOT_COMPUTE_NEAR_FAR

o COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES

o COMPUTE_NEAR_FAR_USING_PRIMITIVES

ovoid setComputeNearFarMode(ComputeNearFarMode cnfm)

oComputeNearFarMode getComputeNearFarMode() const

ovoid setNearFarRatio(double ratio)

odouble getNearFarRatio() const

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 CLUSTER_CULLING

o DEFAULT_CULLING

o ENABLE_ALL_CULLING

otypedef unsigned int CullingMode

ovoid setCullingMode(CullingMode mode)
Set the culling mode for the CullVisitor to use

oCullingMode getCullingMode() const
Returns the current CullingMode

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)
Set the LOD bias for the CullVisitor to use

ofloat getLODScale() const
Get the LOD bias

ovoid setSmallFeatureCullingPixelSize(float value)
Set the Small Feature Culling Pixel Size

ofloat getSmallFeatureCullingPixelSize() const
Get the Small Feature Culling Pixel Size

ostruct ClampProjectionMatrixCallback: public osg::Referenced
Callback for overriding the CullVisitor's default clamping of the projection matrix to computed near and far values. Note, both Matrixf and Matrixd versions of clampProjectionMatrixImplementation must be implemented as the CullVisitor can target either Matrix data type, configured at compile time.

ovirtual bool clampProjectionMatrixImplementation(osg::Matrixf& projection, double& znear, double& zfar) const

ovirtual bool clampProjectionMatrixImplementation(osg::Matrixd& projection, double& znear, double& zfar) const

ovoid setClampProjectionMatrixCallback(ClampProjectionMatrixCallback* cpmc)
set the ClampProjectionMatrixCallback

oClampProjectionMatrixCallback* getClampProjectionMatrixCallback()
get the non const ClampProjectionMatrixCallback

oconst ClampProjectionMatrixCallback* getClampProjectionMatrixCallback() const
get the const ClampProjectionMatrixCallback

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


Direct child classes:
CullStack

Alphabetic index HTML hierarchy of classes or Java



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