#include <CullSettings>
|
| enum | VariablesMask {
COMPUTE_NEAR_FAR_MODE = (0x1 << 0)
, CULLING_MODE = (0x1 << 1)
, LOD_SCALE = (0x1 << 2)
, SMALL_FEATURE_CULLING_PIXEL_SIZE = (0x1 << 3)
,
CLAMP_PROJECTION_MATRIX_CALLBACK = (0x1 << 4)
, NEAR_FAR_RATIO = (0x1 << 5)
, IMPOSTOR_ACTIVE = (0x1 << 6)
, DEPTH_SORT_IMPOSTOR_SPRITES = (0x1 << 7)
,
IMPOSTOR_PIXEL_ERROR_THRESHOLD = (0x1 << 8)
, NUM_FRAMES_TO_KEEP_IMPOSTORS_SPRITES = (0x1 << 9)
, CULL_MASK = (0x1 << 10)
, CULL_MASK_LEFT = (0x1 << 11)
,
CULL_MASK_RIGHT = (0x1 << 12)
, CLEAR_COLOR = (0x1 << 13)
, CLEAR_MASK = (0x1 << 14)
, LIGHTING_MODE = (0x1 << 15)
,
LIGHT = (0x1 << 16)
, DRAW_BUFFER = (0x1 << 17)
, READ_BUFFER = (0x1 << 18)
, NO_VARIABLES = 0x00000000
,
ALL_VARIABLES = 0x7FFFFFFF
} |
| enum | InheritanceMaskActionOnAttributeSetting { DISABLE_ASSOCIATED_INHERITANCE_MASK_BIT
, DO_NOT_MODIFY_INHERITANCE_MASK
} |
| enum | ComputeNearFarMode { DO_NOT_COMPUTE_NEAR_FAR = 0
, COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES
, COMPUTE_NEAR_FAR_USING_PRIMITIVES
, COMPUTE_NEAR_USING_PRIMITIVES
} |
| enum | CullingModeValues {
NO_CULLING = 0x0
, VIEW_FRUSTUM_SIDES_CULLING = 0x1
, NEAR_PLANE_CULLING = 0x2
, FAR_PLANE_CULLING = 0x4
,
VIEW_FRUSTUM_CULLING
, SMALL_FEATURE_CULLING = 0x8
, SHADOW_OCCLUSION_CULLING = 0x10
, CLUSTER_CULLING = 0x20
,
DEFAULT_CULLING
, ENABLE_ALL_CULLING
} |
| typedef int | InheritanceMask |
| typedef int | CullingMode |
◆ CullingMode
◆ InheritanceMask
◆ ComputeNearFarMode
| Enumerator |
|---|
| DO_NOT_COMPUTE_NEAR_FAR | |
| COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES | |
| COMPUTE_NEAR_FAR_USING_PRIMITIVES | |
| COMPUTE_NEAR_USING_PRIMITIVES | |
◆ CullingModeValues
| Enumerator |
|---|
| NO_CULLING | |
| VIEW_FRUSTUM_SIDES_CULLING | |
| NEAR_PLANE_CULLING | |
| FAR_PLANE_CULLING | |
| VIEW_FRUSTUM_CULLING | |
| SMALL_FEATURE_CULLING | |
| SHADOW_OCCLUSION_CULLING | |
| CLUSTER_CULLING | |
| DEFAULT_CULLING | |
| ENABLE_ALL_CULLING | |
◆ InheritanceMaskActionOnAttributeSetting
| Enumerator |
|---|
| DISABLE_ASSOCIATED_INHERITANCE_MASK_BIT | |
| DO_NOT_MODIFY_INHERITANCE_MASK | |
◆ VariablesMask
| Enumerator |
|---|
| COMPUTE_NEAR_FAR_MODE | |
| CULLING_MODE | |
| LOD_SCALE | |
| SMALL_FEATURE_CULLING_PIXEL_SIZE | |
| CLAMP_PROJECTION_MATRIX_CALLBACK | |
| NEAR_FAR_RATIO | |
| IMPOSTOR_ACTIVE | |
| DEPTH_SORT_IMPOSTOR_SPRITES | |
| IMPOSTOR_PIXEL_ERROR_THRESHOLD | |
| NUM_FRAMES_TO_KEEP_IMPOSTORS_SPRITES | |
| CULL_MASK | |
| CULL_MASK_LEFT | |
| CULL_MASK_RIGHT | |
| CLEAR_COLOR | |
| CLEAR_MASK | |
| LIGHTING_MODE | |
| LIGHT | |
| DRAW_BUFFER | |
| READ_BUFFER | |
| NO_VARIABLES | |
| ALL_VARIABLES | |
◆ CullSettings() [1/3]
| osg::CullSettings::CullSettings |
( |
| ) |
|
|
inline |
◆ CullSettings() [2/3]
◆ CullSettings() [3/3]
| osg::CullSettings::CullSettings |
( |
const CullSettings & | cs | ) |
|
◆ ~CullSettings()
| virtual osg::CullSettings::~CullSettings |
( |
| ) |
|
|
inlinevirtual |
◆ applyMaskAction()
| void osg::CullSettings::applyMaskAction |
( |
unsigned int | maskBit | ) |
|
|
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().
◆ getClampProjectionMatrixCallback() [1/2]
◆ getClampProjectionMatrixCallback() [2/2]
◆ getComputeNearFarMode()
◆ getCullingMode()
| CullingMode osg::CullSettings::getCullingMode |
( |
| ) |
const |
|
inline |
◆ getCullMask()
◆ getCullMaskLeft()
◆ getCullMaskRight()
◆ getDepthSortImpostorSprites()
| bool osg::CullSettings::getDepthSortImpostorSprites |
( |
| ) |
const |
|
inline |
◆ getImpostorPixelErrorThreshold()
| float osg::CullSettings::getImpostorPixelErrorThreshold |
( |
| ) |
const |
|
inline |
◆ getImpostorsActive()
| bool osg::CullSettings::getImpostorsActive |
( |
| ) |
const |
|
inline |
◆ getInheritanceMask()
Get the inheritance mask used in inheritCullSettings to control which variables get overwritten by the passed in CullSettings object.
References _inheritanceMask.
◆ getInheritanceMaskActionOnAttributeSetting()
◆ getLODScale()
| float osg::CullSettings::getLODScale |
( |
| ) |
const |
|
inline |
◆ getNearFarRatio()
| double osg::CullSettings::getNearFarRatio |
( |
| ) |
const |
|
inline |
◆ getNumberOfFrameToKeepImpostorSprites()
| int osg::CullSettings::getNumberOfFrameToKeepImpostorSprites |
( |
| ) |
const |
|
inline |
◆ getSmallFeatureCullingPixelSize()
| float osg::CullSettings::getSmallFeatureCullingPixelSize |
( |
| ) |
const |
|
inline |
◆ inheritCullSettings() [1/2]
| virtual void osg::CullSettings::inheritCullSettings |
( |
const CullSettings & | settings | ) |
|
|
inlinevirtual |
◆ inheritCullSettings() [2/2]
| virtual void osg::CullSettings::inheritCullSettings |
( |
const CullSettings & | settings, |
|
|
unsigned int | inheritanceMask ) |
|
virtual |
◆ operator=()
◆ readCommandLine()
◆ readEnvironmentalVariables()
| void osg::CullSettings::readEnvironmentalVariables |
( |
| ) |
|
◆ setClampProjectionMatrixCallback()
◆ setComputeNearFarMode()
◆ setCullingMode()
| void osg::CullSettings::setCullingMode |
( |
CullingMode | mode | ) |
|
|
inline |
◆ setCullMask()
◆ setCullMaskLeft()
◆ setCullMaskRight()
◆ setCullSettings()
| void osg::CullSettings::setCullSettings |
( |
const CullSettings & | settings | ) |
|
◆ setDefaults()
| virtual void osg::CullSettings::setDefaults |
( |
| ) |
|
|
virtual |
◆ setDepthSortImpostorSprites()
| void osg::CullSettings::setDepthSortImpostorSprites |
( |
bool | doDepthSort | ) |
|
|
inline |
◆ setImpostorPixelErrorThreshold()
| void osg::CullSettings::setImpostorPixelErrorThreshold |
( |
float | numPixels | ) |
|
|
inline |
◆ setImpostorsActive()
| void osg::CullSettings::setImpostorsActive |
( |
bool | active | ) |
|
|
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.
◆ setInheritanceMask()
Set the inheritance mask used in inheritCullSettings to control which variables get overwritten by the passed in CullSettings object.
References _inheritanceMask.
◆ setInheritanceMaskActionOnAttributeSetting()
◆ setLODScale()
| void osg::CullSettings::setLODScale |
( |
float | scale | ) |
|
|
inline |
◆ setNearFarRatio()
| void osg::CullSettings::setNearFarRatio |
( |
double | ratio | ) |
|
|
inline |
◆ setNumberOfFrameToKeepImpostorSprites()
| void osg::CullSettings::setNumberOfFrameToKeepImpostorSprites |
( |
int | numFrames | ) |
|
|
inline |
◆ setSmallFeatureCullingPixelSize()
| void osg::CullSettings::setSmallFeatureCullingPixelSize |
( |
float | value | ) |
|
|
inline |
◆ write()
| void osg::CullSettings::write |
( |
std::ostream & | out | ) |
|
◆ _clampProjectionMatrixCallback
◆ _computeNearFar
◆ _cullingMode
◆ _cullMask
◆ _cullMaskLeft
◆ _cullMaskRight
◆ _depthSortImpostorSprites
| bool osg::CullSettings::_depthSortImpostorSprites |
|
protected |
◆ _impostorActive
| bool osg::CullSettings::_impostorActive |
|
protected |
◆ _impostorPixelErrorThreshold
| float osg::CullSettings::_impostorPixelErrorThreshold |
|
protected |
◆ _inheritanceMask
◆ _inheritanceMaskActionOnAttributeSetting
◆ _LODScale
| float osg::CullSettings::_LODScale |
|
protected |
◆ _nearFarRatio
| double osg::CullSettings::_nearFarRatio |
|
protected |
◆ _numFramesToKeepImpostorSprites
| int osg::CullSettings::_numFramesToKeepImpostorSprites |
|
protected |
◆ _smallFeatureCullingPixelSize
| float osg::CullSettings::_smallFeatureCullingPixelSize |
|
protected |
The documentation for this class was generated from the following file: