|
openscenegraph
|
#include <CullingSet>
Public Types | |
| enum | MaskValues { 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 , DEFAULT_CULLING , ENABLE_ALL_CULLING } |
| typedef std::pair< osg::ref_ptr< osg::StateSet >, osg::Polytope > | StateFrustumPair |
| typedef std::vector< StateFrustumPair > | StateFrustumList |
| typedef std::vector< ShadowVolumeOccluder > | OccluderList |
| typedef int | Mask |
Static Public Member Functions | |
| static osg::Vec4 | computePixelSizeVector (const Viewport &W, const Matrix &P, const Matrix &M) |
| Static Public Member Functions inherited from osg::Referenced | |
| static OpenThreads::Mutex * | getGlobalReferencedMutex () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| static DeleteHandler * | getDeleteHandler () |
Protected Attributes | |
| Mask | _mask |
| Polytope | _frustum |
| StateFrustumList | _stateFrustumList |
| OccluderList | _occluderList |
| Vec4 | _pixelSizeVector |
| float | _smallFeatureCullingPixelSize |
| Protected Attributes inherited from osg::Referenced | |
| OpenThreads::AtomicPtr | _observerSet |
| OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
| Protected Member Functions inherited from osg::Referenced | |
| virtual | ~Referenced () |
| void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
| void | deleteUsingDeleteHandler () const |
A CullingSet class which contains a frustum and a list of occluders.
| typedef int osg::CullingSet::Mask |
| typedef std::vector<ShadowVolumeOccluder> osg::CullingSet::OccluderList |
| typedef std::vector< StateFrustumPair > osg::CullingSet::StateFrustumList |
| typedef std::pair< osg::ref_ptr<osg::StateSet>, osg::Polytope > osg::CullingSet::StateFrustumPair |
| osg::CullingSet::CullingSet | ( | ) |
Referenced by CullingSet(), CullingSet(), operator=(), set(), and set().
|
inline |
|
inline |
References _frustum, _mask, _occluderList, _pixelSizeVector, _smallFeatureCullingPixelSize, _stateFrustumList, and CullingSet().
|
virtual |
|
inline |
References _occluderList.
References _stateFrustumList.
|
inline |
Compute the pixel of a bounding sphere. fabs()ed to always be positive.
References pixelSize().
|
inline |
Compute the pixel of an object at position v, with specified radius. fabs()ed to always be positive.
References pixelSize().
|
static |
| void osg::CullingSet::disableAndPushOccludersCurrentMask | ( | NodePath & | nodePath | ) |
|
inline |
References _pixelSizeVector.
|
inline |
References _pixelSizeVector.
|
inline |
References _smallFeatureCullingPixelSize.
|
inline |
References _smallFeatureCullingPixelSize.
|
inline |
References _stateFrustumList.
|
inline |
References _stateFrustumList.
|
inline |
References _frustum, _mask, _occluderList, SHADOW_OCCLUSION_CULLING, SMALL_FEATURE_CULLING, and VIEW_FRUSTUM_CULLING.
|
inline |
|
inline |
References _frustum, _mask, _occluderList, SHADOW_OCCLUSION_CULLING, SMALL_FEATURE_CULLING, and VIEW_FRUSTUM_CULLING.
|
inline |
References _frustum, _mask, _occluderList, _pixelSizeVector, _smallFeatureCullingPixelSize, _stateFrustumList, and CullingSet().
|
inline |
Compute the pixel of a bounding sphere.
References _pixelSizeVector, osg::BoundingSphereImpl< VT >::center(), and osg::BoundingSphereImpl< VT >::radius().
|
inline |
Compute the pixel of an object at position v, with specified radius.
References _pixelSizeVector.
Referenced by clampedPixelSize(), and clampedPixelSize().
|
inline |
References _frustum, _occluderList, and _stateFrustumList.
| void osg::CullingSet::popOccludersCurrentMask | ( | NodePath & | nodePath | ) |
|
inline |
References _frustum, _occluderList, and _stateFrustumList.
|
inline |
References _frustum.
|
inline |
References _frustum, _mask, _occluderList, _pixelSizeVector, _smallFeatureCullingPixelSize, _stateFrustumList, and CullingSet().
|
inline |
References _frustum, _mask, _occluderList, _pixelSizeVector, _smallFeatureCullingPixelSize, _stateFrustumList, and CullingSet().
|
inline |
References _pixelSizeVector.
|
inline |
Threshold at which small features are culled.
| value | Bounding volume size in screen space. Default is 2.0. |
References _smallFeatureCullingPixelSize.
|
protected |
Referenced by CullingSet(), CullingSet(), getFrustum(), getFrustum(), isCulled(), isCulled(), isCulled(), operator=(), popCurrentMask(), pushCurrentMask(), resetCullingMask(), set(), set(), and setFrustum().
|
protected |
Referenced by CullingSet(), CullingSet(), getCullingMask(), isCulled(), isCulled(), isCulled(), operator=(), set(), set(), and setCullingMask().
|
protected |
Referenced by addOccluder(), CullingSet(), CullingSet(), isCulled(), isCulled(), isCulled(), operator=(), popCurrentMask(), pushCurrentMask(), set(), and set().
|
protected |
Referenced by CullingSet(), CullingSet(), getPixelSizeVector(), getPixelSizeVector(), isCulled(), operator=(), pixelSize(), pixelSize(), set(), set(), and setPixelSizeVector().
|
protected |
|
protected |
Referenced by addStateFrustum(), CullingSet(), CullingSet(), getStateFrustumList(), getStateFrustumList(), operator=(), popCurrentMask(), pushCurrentMask(), set(), and set().