OSG
3.4.0
|
#include <CullingSet.h>
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 | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
static bool | getThreadSafeReferenceCounting () |
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.
Definition at line 29 of file CullingSet.h.
typedef int osg::CullingSet::Mask |
Definition at line 123 of file CullingSet.h.
typedef std::vector<ShadowVolumeOccluder> osg::CullingSet::OccluderList |
Definition at line 121 of file CullingSet.h.
typedef std::vector< StateFrustumPair > osg::CullingSet::StateFrustumList |
Definition at line 35 of file CullingSet.h.
typedef std::pair< osg::ref_ptr<osg::StateSet>, osg::Polytope > osg::CullingSet::StateFrustumPair |
Definition at line 34 of file CullingSet.h.
Enumerator | |
---|---|
NO_CULLING | |
VIEW_FRUSTUM_SIDES_CULLING | |
NEAR_PLANE_CULLING | |
FAR_PLANE_CULLING | |
VIEW_FRUSTUM_CULLING | |
SMALL_FEATURE_CULLING | |
SHADOW_OCCLUSION_CULLING | |
DEFAULT_CULLING | |
ENABLE_ALL_CULLING |
Definition at line 125 of file CullingSet.h.
osg::CullingSet::CullingSet | ( | ) |
|
inline |
Definition at line 39 of file CullingSet.h.
|
inline |
Definition at line 50 of file CullingSet.h.
|
virtual |
|
inline |
Definition at line 157 of file CullingSet.h.
Definition at line 152 of file CullingSet.h.
|
inline |
Compute the pixel of an object at position v, with specified radius. fabs()ed to always be positive.
Definition at line 180 of file CullingSet.h.
|
inline |
Compute the pixel of a bounding sphere. fabs()ed to always be positive.
Definition at line 183 of file CullingSet.h.
|
static |
|
inline |
Definition at line 145 of file CullingSet.h.
|
inline |
Definition at line 149 of file CullingSet.h.
|
inline |
Definition at line 150 of file CullingSet.h.
|
inline |
Definition at line 161 of file CullingSet.h.
|
inline |
Definition at line 162 of file CullingSet.h.
|
inline |
Definition at line 168 of file CullingSet.h.
|
inline |
Definition at line 170 of file CullingSet.h.
|
inline |
Definition at line 154 of file CullingSet.h.
|
inline |
Definition at line 155 of file CullingSet.h.
|
inline |
Definition at line 186 of file CullingSet.h.
|
inline |
Definition at line 215 of file CullingSet.h.
|
inline |
|
inline |
Definition at line 67 of file CullingSet.h.
|
inline |
Compute the pixel of an object at position v, with specified radius.
Definition at line 174 of file CullingSet.h.
|
inline |
Compute the pixel of a bounding sphere.
Definition at line 177 of file CullingSet.h.
|
inline |
Definition at line 309 of file CullingSet.h.
|
inline |
Definition at line 281 of file CullingSet.h.
|
inline |
Definition at line 336 of file CullingSet.h.
|
inline |
Definition at line 82 of file CullingSet.h.
|
inline |
Definition at line 92 of file CullingSet.h.
Definition at line 144 of file CullingSet.h.
Definition at line 147 of file CullingSet.h.
Definition at line 159 of file CullingSet.h.
|
inline |
Threshold at which small features are culled.
value | Bounding volume size in screen space. Default is 2.0. |
Definition at line 166 of file CullingSet.h.
|
protected |
Definition at line 354 of file CullingSet.h.
|
protected |
Definition at line 353 of file CullingSet.h.
|
protected |
Definition at line 356 of file CullingSet.h.
|
protected |
Definition at line 357 of file CullingSet.h.
|
protected |
Definition at line 358 of file CullingSet.h.
|
protected |
Definition at line 355 of file CullingSet.h.