|
OpenSceneGraph
|


Classes | |
| struct | ClampProjectionMatrixCallback |
| Callback for overriding the CullVisitor's default clamping of the projection matrix to computed near and far values. More... | |
Public Member Functions | |
| CullSettings (ArgumentParser &arguments) | |
| CullSettings (const CullSettings &cs) | |
| CullSettings & | operator= (const CullSettings &settings) |
| virtual void | setDefaults () |
| void | setInheritanceMask (InheritanceMask mask) |
| Set the inheritance mask used in inheritCullSettings to control which variables get overwritten by the passed in CullSettings object. More... | |
| InheritanceMask | getInheritanceMask () const |
| Get the inheritance mask used in inheritCullSettings to control which variables get overwritten by the passed in CullSettings object. More... | |
| void | setCullSettings (const CullSettings &settings) |
| Set the local cull settings values from specified CullSettings object. More... | |
| virtual void | inheritCullSettings (const CullSettings &settings) |
| Inherit the local cull settings variable from specified CullSettings object, according to the inheritance mask. More... | |
| virtual void | inheritCullSettings (const CullSettings &settings, unsigned int inheritanceMask) |
| Inherit the local cull settings variable from specified CullSettings object, according to the inheritance mask. More... | |
| void | readEnvironmentalVariables () |
| read the environmental variables. More... | |
| void | readCommandLine (ArgumentParser &arguments) |
| read the commandline arguments. More... | |
| void | setInheritanceMaskActionOnAttributeSetting (InheritanceMaskActionOnAttributeSetting action) |
| InheritanceMaskActionOnAttributeSetting | getInheritanceMaskActionOnAttributeSetting () const |
| void | applyMaskAction (unsigned int maskBit) |
| Apply the action, specified by the InheritanceMaskActionOnAttributeSetting, to apply to the inheritance bit mask. 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 | getDepthSortImpostorSprites () const |
| Get whether ImpostorSprite's are depth sorted bin for rendering. More... | |
| void | setNumberOfFrameToKeepImpostorSprites (int numFrames) |
| Set the number of frames that an ImpostorSprite is kept whilst not being beyond, before being recycled. More... | |
| int | getNumberOfFrameToKeepImpostorSprites () const |
| Get the number of frames that an ImpostorSprite is kept whilst not being beyond, before being recycled. More... | |
| void | setComputeNearFarMode (ComputeNearFarMode cnfm) |
| ComputeNearFarMode | getComputeNearFarMode () const |
| void | setNearFarRatio (double ratio) |
| double | getNearFarRatio () const |
| void | setCullingMode (CullingMode mode) |
| Set the culling mode for the CullVisitor to use. More... | |
| CullingMode | getCullingMode () const |
| Returns the current CullingMode. More... | |
| void | setCullMask (osg::Node::NodeMask nm) |
| osg::Node::NodeMask | getCullMask () const |
| void | setCullMaskLeft (osg::Node::NodeMask nm) |
| osg::Node::NodeMask | getCullMaskLeft () const |
| void | setCullMaskRight (osg::Node::NodeMask nm) |
| osg::Node::NodeMask | getCullMaskRight () const |
| void | setLODScale (float scale) |
| Set the LOD bias for the CullVisitor to use. More... | |
| float | getLODScale () const |
| Get the LOD bias. More... | |
| void | setSmallFeatureCullingPixelSize (float value) |
| Threshold at which small features are culled. 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. More... | |
| void | write (std::ostream &out) |
| Write out internal settings of CullSettings. More... | |
Protected Attributes | |
| InheritanceMask | _inheritanceMask |
| InheritanceMaskActionOnAttributeSetting | _inheritanceMaskActionOnAttributeSetting |
| ComputeNearFarMode | _computeNearFar |
| CullingMode | _cullingMode |
| float | _LODScale |
| float | _smallFeatureCullingPixelSize |
| ref_ptr< ClampProjectionMatrixCallback > | _clampProjectionMatrixCallback |
| double | _nearFarRatio |
| bool | _impostorActive |
| bool | _depthSortImpostorSprites |
| float | _impostorPixelErrorThreshold |
| int | _numFramesToKeepImpostorSprites |
| Node::NodeMask | _cullMask |
| Node::NodeMask | _cullMaskLeft |
| Node::NodeMask | _cullMaskRight |
|
inline |
Apply the action, specified by the InheritanceMaskActionOnAttributeSetting, to apply to the inheritance bit mask.
This method is called by CullSettings::set*() parameter methods to ensure that CullSettings inheritance mechanisms doesn't overwrite the local parameter settings.
|
inline |
get the non const ClampProjectionMatrixCallback.
|
inline |
get the const ClampProjectionMatrixCallback.
|
inline |
Returns the current CullingMode.
|
inline |
Get whether ImpostorSprite's are depth sorted bin for rendering.
|
inline |
Get the impostor error threshold.
|
inline |
Get whether impostors are active or not.
|
inline |
Get the inheritance mask used in inheritCullSettings to control which variables get overwritten by the passed in CullSettings object.
|
inline |
Get the number of frames that an ImpostorSprite is kept whilst not being beyond, before being recycled.
|
inline |
Get the Small Feature Culling Pixel Size.
|
inlinevirtual |
Inherit the local cull settings variable from specified CullSettings object, according to the inheritance mask.
Reimplemented in osgUtil::SceneView.
|
virtual |
Inherit the local cull settings variable from specified CullSettings object, according to the inheritance mask.
Reimplemented in osg::Camera, and osgUtil::SceneView.
| void osg::CullSettings::readCommandLine | ( | ArgumentParser & | arguments | ) |
read the commandline arguments.
| void osg::CullSettings::readEnvironmentalVariables | ( | ) |
read the environmental variables.
|
inline |
set the ClampProjectionMatrixCallback.
|
inline |
Set the culling mode for the CullVisitor to use.
| void osg::CullSettings::setCullSettings | ( | const CullSettings & | settings | ) |
Set the local cull settings values from specified CullSettings object.
|
inline |
Set whether ImpostorSprite's should be placed in a depth sorted bin for rendering.
|
inline |
Set the impostor error threshold.
Used in calculation of whether impostors remain valid.
|
inline |
|
inline |
Set the inheritance mask used in inheritCullSettings to control which variables get overwritten by the passed in CullSettings object.
|
inline |
Set the LOD bias for the CullVisitor to use.
|
inline |
Set the number of frames that an ImpostorSprite is kept whilst not being beyond, before being recycled.
|
inline |
Threshold at which small features are culled.
| value | Bounding volume size in screen space. Default is 2.0. |
| void osg::CullSettings::write | ( | std::ostream & | out | ) |
Write out internal settings of CullSettings.
1.8.13