OpenSceneGraph 3.6.5
|
A CullStack class which accumulates the current project, modelview matrices and the CullingSet. More...
#include <CullStack>
Public Member Functions | |
CullStack () | |
CullStack (const CullStack &cs) | |
~CullStack () | |
void | reset () |
void | pushCullingSet () |
void | popCullingSet () |
void | setOccluderList (const ShadowVolumeOccluderList &svol) |
ShadowVolumeOccluderList & | getOccluderList () |
const ShadowVolumeOccluderList & | getOccluderList () const |
void | pushViewport (osg::Viewport *viewport) |
void | popViewport () |
void | pushProjectionMatrix (osg::RefMatrix *matrix) |
void | popProjectionMatrix () |
void | pushModelViewMatrix (osg::RefMatrix *matrix, Transform::ReferenceFrame referenceFrame) |
void | popModelViewMatrix () |
float | getFrustumVolume () |
float | pixelSize (const Vec3 &v, float radius) const |
Compute the pixel size of an object at position v, with specified radius. | |
float | pixelSize (const BoundingSphere &bs) const |
Compute the pixel size of the bounding sphere. | |
float | clampedPixelSize (const Vec3 &v, float radius) const |
Compute the pixel size of an object at position v, with specified radius. | |
float | clampedPixelSize (const BoundingSphere &bs) const |
Compute the pixel size of the bounding sphere. | |
void | disableAndPushOccludersCurrentMask (NodePath &nodePath) |
void | popOccludersCurrentMask (NodePath &nodePath) |
bool | isCulled (const std::vector< Vec3 > &vertices) |
bool | isCulled (const BoundingBox &bb) |
bool | isCulled (const BoundingSphere &bs) |
bool | isCulled (const osg::Node &node) |
void | pushCurrentMask () |
void | popCurrentMask () |
CullingStack & | getClipSpaceCullingStack () |
CullingStack & | getProjectionCullingStack () |
CullingStack & | getModelViewCullingStack () |
CullingSet & | getCurrentCullingSet () |
const CullingSet & | getCurrentCullingSet () const |
osg::Viewport * | getViewport () |
const osg::Viewport * | getViewport () const |
osg::RefMatrix * | getModelViewMatrix () |
const osg::RefMatrix * | getModelViewMatrix () const |
osg::RefMatrix * | getProjectionMatrix () |
const osg::RefMatrix * | getProjectionMatrix () const |
osg::Matrix | getWindowMatrix () const |
const osg::RefMatrix * | getMVPW () |
const osg::Vec3 & | getReferenceViewPoint () const |
void | pushReferenceViewPoint (const osg::Vec3 &viewPoint) |
void | popReferenceViewPoint () |
const osg::Vec3 & | getEyeLocal () const |
const osg::Vec3 & | getViewPointLocal () const |
const osg::Vec3 | getUpLocal () const |
const osg::Vec3 | getLookVectorLocal () const |
MatrixStack & | getProjectionStack () |
const MatrixStack & | getProjectionStack () const |
MatrixStack & | getModelViewStack () |
const MatrixStack & | getModelViewStack () const |
MatrixStack & | getMVPWStack () |
const MatrixStack & | getMVPWStack () const |
Public Member Functions inherited from osg::CullSettings | |
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. |
Protected Types | |
typedef fast_back_stack< ref_ptr< Viewport > > | ViewportStack |
typedef fast_back_stack< Vec3 > | EyePointStack |
typedef std::vector< osg::ref_ptr< osg::RefMatrix > > | MatrixList |
Protected Member Functions | |
void | computeFrustumVolume () |
osg::RefMatrix * | createOrReuseMatrix (const osg::Matrix &value) |
A CullStack class which accumulates the current project, modelview matrices and the CullingSet.
typedef std::vector< CullingSet > osg::CullStack::CullingStack |
|
protected |
|
protected |
typedef fast_back_stack< ref_ptr<RefMatrix> > osg::CullStack::MatrixStack |
typedef std::vector<ShadowVolumeOccluder> osg::CullStack::OccluderList |
|
protected |
osg::CullStack::CullStack | ( | ) |
Referenced by CullStack().
osg::CullStack::CullStack | ( | const CullStack & | cs | ) |
References CullStack().
osg::CullStack::~CullStack | ( | ) |
|
inline |
Compute the pixel size of the bounding sphere.
fabs()ed to always be positive.
References osg::BoundingSphereImpl< VT >::center(), clampedPixelSize(), and osg::BoundingSphereImpl< VT >::radius().
|
inline |
Compute the pixel size of an object at position v, with specified radius.
fabs()ed to always be positive.
References getCurrentCullingSet().
Referenced by clampedPixelSize().
|
protected |
Referenced by getFrustumVolume().
|
inlineprotected |
References _currentReuseMatrixIndex, _reuseMatrixList, and osg::Matrixd::set().
Referenced by getMVPW().
|
inline |
References getCurrentCullingSet().
|
inline |
References _clipspaceCullingStack.
|
inline |
References _back_modelviewCullingStack.
Referenced by clampedPixelSize(), disableAndPushOccludersCurrentMask(), isCulled(), isCulled(), isCulled(), isCulled(), pixelSize(), popCurrentMask(), popOccludersCurrentMask(), and pushCurrentMask().
|
inline |
References _back_modelviewCullingStack.
|
inline |
References _eyePointStack.
Referenced by osgUtil::CullVisitor::getEyePoint().
|
inline |
References _frustumVolume, and computeFrustumVolume().
|
inline |
References _modelviewStack.
|
inline |
References _modelviewCullingStack.
|
inline |
References _identity, and _modelviewStack.
Referenced by getMVPW().
|
inline |
References _identity, and _modelviewStack.
|
inline |
References _modelviewStack.
|
inline |
References _modelviewStack.
|
inline |
References _identity, _MVPW_Stack, createOrReuseMatrix(), getModelViewMatrix(), getProjectionMatrix(), and getWindowMatrix().
|
inline |
References _MVPW_Stack.
|
inline |
References _MVPW_Stack.
|
inline |
References _occluderList.
|
inline |
References _occluderList.
|
inline |
References _projectionCullingStack.
|
inline |
References _identity, and _projectionStack.
Referenced by getMVPW().
|
inline |
References _identity, and _projectionStack.
|
inline |
References _projectionStack.
|
inline |
References _projectionStack.
|
inline |
References _referenceViewPoints.
|
inline |
References _modelviewStack.
|
inline |
References _viewPointStack.
Referenced by osgUtil::CullVisitor::getViewPoint().
|
inline |
References _viewportStack.
|
inline |
References _viewportStack.
|
inline |
References _identity, _viewportStack, and osg::Viewport::computeWindowMatrix().
Referenced by getMVPW().
|
inline |
References getCurrentCullingSet(), and osg::BoundingBoxImpl< VT >::valid().
|
inline |
References getCurrentCullingSet().
|
inline |
References osg::Node::getBound(), getCurrentCullingSet(), and osg::Node::isCullingActive().
|
inline |
References getCurrentCullingSet().
|
inline |
Compute the pixel size of the bounding sphere.
References osg::BoundingSphereImpl< VT >::center(), pixelSize(), and osg::BoundingSphereImpl< VT >::radius().
|
inline |
Compute the pixel size of an object at position v, with specified radius.
References getCurrentCullingSet().
Referenced by pixelSize().
void osg::CullStack::popCullingSet | ( | ) |
|
inline |
References getCurrentCullingSet().
void osg::CullStack::popModelViewMatrix | ( | ) |
|
inline |
References getCurrentCullingSet().
void osg::CullStack::popProjectionMatrix | ( | ) |
|
inline |
References _referenceViewPoints.
void osg::CullStack::popViewport | ( | ) |
void osg::CullStack::pushCullingSet | ( | ) |
|
inline |
References getCurrentCullingSet().
void osg::CullStack::pushModelViewMatrix | ( | osg::RefMatrix * | matrix, |
Transform::ReferenceFrame | referenceFrame ) |
void osg::CullStack::pushProjectionMatrix | ( | osg::RefMatrix * | matrix | ) |
|
inline |
References _referenceViewPoints.
void osg::CullStack::pushViewport | ( | osg::Viewport * | viewport | ) |
void osg::CullStack::reset | ( | ) |
|
inline |
References _occluderList.
|
protected |
Referenced by getCurrentCullingSet(), and getCurrentCullingSet().
|
protected |
|
protected |
|
protected |
Referenced by getClipSpaceCullingStack().
|
protected |
Referenced by createOrReuseMatrix().
|
protected |
Referenced by getEyeLocal().
|
protected |
Referenced by getFrustumVolume().
|
protected |
Referenced by getModelViewMatrix(), getModelViewMatrix(), getMVPW(), getProjectionMatrix(), getProjectionMatrix(), and getWindowMatrix().
|
protected |
|
protected |
Referenced by getModelViewCullingStack().
|
protected |
Referenced by getLookVectorLocal(), getModelViewMatrix(), getModelViewMatrix(), getModelViewStack(), getModelViewStack(), and getUpLocal().
|
protected |
Referenced by getMVPW(), getMVPWStack(), and getMVPWStack().
|
protected |
Referenced by getOccluderList(), getOccluderList(), and setOccluderList().
|
protected |
Referenced by getProjectionCullingStack().
|
protected |
|
protected |
Referenced by getReferenceViewPoint(), popReferenceViewPoint(), and pushReferenceViewPoint().
|
protected |
Referenced by createOrReuseMatrix().
|
protected |
Referenced by getViewPointLocal().
|
protected |
Referenced by getViewport(), getViewport(), and getWindowMatrix().
![]() | Generated at Sun Jul 27 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0. |