OpenSceneGraph 3.6.5
|
#include <CullSettings>
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 () | |
CullSettings (ArgumentParser &arguments) | |
CullSettings (const CullSettings &cs) | |
virtual | ~CullSettings () |
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. | |
InheritanceMask | getInheritanceMask () const |
Get the inheritance mask used in inheritCullSettings to control which variables get overwritten by the passed in CullSettings object. | |
void | setCullSettings (const CullSettings &settings) |
Set the local cull settings values from specified CullSettings object. | |
virtual void | inheritCullSettings (const CullSettings &settings) |
Inherit the local cull settings variable from specified CullSettings object, according to the inheritance mask. | |
virtual void | inheritCullSettings (const CullSettings &settings, unsigned int inheritanceMask) |
Inherit the local cull settings variable from specified CullSettings object, according to the inheritance mask. | |
void | readEnvironmentalVariables () |
read the environmental variables. | |
void | readCommandLine (ArgumentParser &arguments) |
read the commandline arguments. | |
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. | |
void | setImpostorsActive (bool active) |
Switch the creation of Impostors on or off. | |
bool | getImpostorsActive () const |
Get whether impostors are active or not. | |
void | setImpostorPixelErrorThreshold (float numPixels) |
Set the impostor error threshold. | |
float | getImpostorPixelErrorThreshold () const |
Get the impostor error threshold. | |
void | setDepthSortImpostorSprites (bool doDepthSort) |
Set whether ImpostorSprite's should be placed in a depth sorted bin for rendering. | |
bool | getDepthSortImpostorSprites () const |
Get whether ImpostorSprite's are depth sorted bin for rendering. | |
void | setNumberOfFrameToKeepImpostorSprites (int numFrames) |
Set the number of frames that an ImpostorSprite is kept whilst not being beyond, before being recycled. | |
int | getNumberOfFrameToKeepImpostorSprites () const |
Get the number of frames that an ImpostorSprite is kept whilst not being beyond, before being recycled. | |
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. | |
CullingMode | getCullingMode () const |
Returns the current CullingMode. | |
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. | |
float | getLODScale () const |
Get the LOD bias. | |
void | setSmallFeatureCullingPixelSize (float value) |
Threshold at which small features are culled. | |
float | getSmallFeatureCullingPixelSize () const |
Get the Small Feature Culling Pixel Size. | |
void | setClampProjectionMatrixCallback (ClampProjectionMatrixCallback *cpmc) |
set the ClampProjectionMatrixCallback. | |
ClampProjectionMatrixCallback * | getClampProjectionMatrixCallback () |
get the non const ClampProjectionMatrixCallback. | |
const ClampProjectionMatrixCallback * | getClampProjectionMatrixCallback () const |
get the const ClampProjectionMatrixCallback. | |
void | write (std::ostream &out) |
Write out internal settings of CullSettings. |
typedef int osg::CullSettings::CullingMode |
typedef int osg::CullSettings::InheritanceMask |
|
inline |
References readEnvironmentalVariables(), and setDefaults().
Referenced by CullSettings(), osg::Camera::inheritCullSettings(), inheritCullSettings(), inheritCullSettings(), operator=(), and setCullSettings().
|
inline |
References readCommandLine(), readEnvironmentalVariables(), and setDefaults().
osg::CullSettings::CullSettings | ( | const CullSettings & | cs | ) |
References CullSettings().
|
inlinevirtual |
|
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.
References _inheritanceMask, _inheritanceMaskActionOnAttributeSetting, and DISABLE_ASSOCIATED_INHERITANCE_MASK_BIT.
Referenced by setClampProjectionMatrixCallback(), osg::Camera::setClearColor(), osg::Camera::setClearMask(), setComputeNearFarMode(), setCullingMode(), setCullMask(), setCullMaskLeft(), setCullMaskRight(), setDepthSortImpostorSprites(), osg::Camera::setDrawBuffer(), setImpostorPixelErrorThreshold(), setImpostorsActive(), setLODScale(), setNearFarRatio(), setNumberOfFrameToKeepImpostorSprites(), osg::Camera::setReadBuffer(), and setSmallFeatureCullingPixelSize().
|
inline |
get the non const ClampProjectionMatrixCallback.
References _clampProjectionMatrixCallback.
|
inline |
get the const ClampProjectionMatrixCallback.
References _clampProjectionMatrixCallback.
|
inline |
References _computeNearFar.
|
inline |
Returns the current CullingMode.
References _cullingMode.
|
inline |
References _cullMask.
|
inline |
References _cullMaskLeft.
|
inline |
References _cullMaskRight.
|
inline |
Get whether ImpostorSprite's are depth sorted bin for rendering.
References _depthSortImpostorSprites.
|
inline |
Get the impostor error threshold.
References _impostorPixelErrorThreshold.
|
inline |
Get whether impostors are active or not.
References _impostorActive.
|
inline |
Get the inheritance mask used in inheritCullSettings to control which variables get overwritten by the passed in CullSettings object.
References _inheritanceMask.
|
inline |
References _inheritanceMaskActionOnAttributeSetting.
|
inline |
References _nearFarRatio.
|
inline |
Get the number of frames that an ImpostorSprite is kept whilst not being beyond, before being recycled.
References _numFramesToKeepImpostorSprites.
|
inline |
Get the Small Feature Culling Pixel Size.
References _smallFeatureCullingPixelSize.
|
inlinevirtual |
Inherit the local cull settings variable from specified CullSettings object, according to the inheritance mask.
Reimplemented in osgUtil::SceneView.
References _inheritanceMask, CullSettings(), and inheritCullSettings().
Referenced by inheritCullSettings().
|
virtual |
Inherit the local cull settings variable from specified CullSettings object, according to the inheritance mask.
Reimplemented in osg::Camera, and osgUtil::SceneView.
References CullSettings().
|
inline |
References CullSettings(), and setCullSettings().
void osg::CullSettings::readCommandLine | ( | ArgumentParser & | arguments | ) |
read the commandline arguments.
Referenced by CullSettings().
void osg::CullSettings::readEnvironmentalVariables | ( | ) |
read the environmental variables.
Referenced by CullSettings(), and CullSettings().
|
inline |
set the ClampProjectionMatrixCallback.
References _clampProjectionMatrixCallback, applyMaskAction(), and CLAMP_PROJECTION_MATRIX_CALLBACK.
|
inline |
References _computeNearFar, applyMaskAction(), and COMPUTE_NEAR_FAR_MODE.
|
inline |
Set the culling mode for the CullVisitor to use.
References _cullingMode, applyMaskAction(), and CULLING_MODE.
|
inline |
References _cullMask, applyMaskAction(), and CULL_MASK.
|
inline |
References _cullMaskLeft, applyMaskAction(), and CULL_MASK_LEFT.
|
inline |
References _cullMaskRight, applyMaskAction(), and CULL_MASK_RIGHT.
void osg::CullSettings::setCullSettings | ( | const CullSettings & | settings | ) |
Set the local cull settings values from specified CullSettings object.
References CullSettings().
Referenced by operator=().
|
virtual |
Reimplemented in osgUtil::SceneView.
Referenced by CullSettings(), and CullSettings().
|
inline |
Set whether ImpostorSprite's should be placed in a depth sorted bin for rendering.
References _depthSortImpostorSprites, applyMaskAction(), and DEPTH_SORT_IMPOSTOR_SPRITES.
|
inline |
Set the impostor error threshold.
Used in calculation of whether impostors remain valid.
References _impostorPixelErrorThreshold, applyMaskAction(), and IMPOSTOR_PIXEL_ERROR_THRESHOLD.
|
inline |
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.
References _impostorActive, applyMaskAction(), and IMPOSTOR_ACTIVE.
|
inline |
Set the inheritance mask used in inheritCullSettings to control which variables get overwritten by the passed in CullSettings object.
References _inheritanceMask.
|
inline |
References _inheritanceMaskActionOnAttributeSetting.
|
inline |
Set the LOD bias for the CullVisitor to use.
References _LODScale, applyMaskAction(), and LOD_SCALE.
|
inline |
References _nearFarRatio, applyMaskAction(), and NEAR_FAR_RATIO.
|
inline |
Set the number of frames that an ImpostorSprite is kept whilst not being beyond, before being recycled.
References _numFramesToKeepImpostorSprites, applyMaskAction(), and NUM_FRAMES_TO_KEEP_IMPOSTORS_SPRITES.
|
inline |
Threshold at which small features are culled.
value | Bounding volume size in screen space. Default is 2.0. |
References _smallFeatureCullingPixelSize, applyMaskAction(), and SMALL_FEATURE_CULLING_PIXEL_SIZE.
void osg::CullSettings::write | ( | std::ostream & | out | ) |
Write out internal settings of CullSettings.
|
protected |
|
protected |
Referenced by getComputeNearFarMode(), and setComputeNearFarMode().
|
protected |
Referenced by getCullingMode(), and setCullingMode().
|
protected |
Referenced by getCullMask(), and setCullMask().
|
protected |
Referenced by getCullMaskLeft(), and setCullMaskLeft().
|
protected |
Referenced by getCullMaskRight(), and setCullMaskRight().
|
protected |
Referenced by getDepthSortImpostorSprites(), and setDepthSortImpostorSprites().
|
protected |
Referenced by getImpostorsActive(), and setImpostorsActive().
|
protected |
Referenced by getImpostorPixelErrorThreshold(), and setImpostorPixelErrorThreshold().
|
protected |
|
protected |
|
protected |
Referenced by getLODScale(), and setLODScale().
|
protected |
Referenced by getNearFarRatio(), and setNearFarRatio().
|
protected |
Referenced by getNumberOfFrameToKeepImpostorSprites(), and setNumberOfFrameToKeepImpostorSprites().
|
protected |
Referenced by getSmallFeatureCullingPixelSize(), and setSmallFeatureCullingPixelSize().
![]() | Generated at Sun Jul 20 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0. |