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 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 |
![]() | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
![]() | |
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 | ( | ) |
|
inline |
|
inline |
|
virtual |
|
inline |
|
inline |
Compute the pixel of a bounding sphere. fabs()ed to always be positive.
|
inline |
Compute the pixel of an object at position v, with specified radius. fabs()ed to always be positive.
|
static |
void osg::CullingSet::disableAndPushOccludersCurrentMask | ( | NodePath & | nodePath | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Compute the pixel of a bounding sphere.
|
inline |
Compute the pixel of an object at position v, with specified radius.
|
inline |
void osg::CullingSet::popOccludersCurrentMask | ( | NodePath & | nodePath | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Threshold at which small features are culled.
value | Bounding volume size in screen space. Default is 2.0. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |