Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osg::CullingSet Class Reference

A CullingSet class which contains a frustum and a list of occluder. More...

Inheritance diagram for osg::CullingSet:

Inheritance graph
[legend]
List of all members.

Public Types

typedef std::vector< ShadowVolumeOccluderOccluderList
typedef unsigned int Mask
enum  MaskValues { VIEW_FRUSTUM_CULLING = 0x1, SMALL_FEATURE_CULLING = 0x2, SHADOW_OCCLUSION_CULLING = 0x4, ALL_CULLING = 0xffffffff }

Public Methods

 CullingSet ()
 CullingSet (const CullingSet &cs, const Matrix &matrix, const Vec4 &pixelSizeVector)
 ~CullingSet ()
void setCullingMask (Mask mask)
void setFrustum (Polytope &cv)
PolytopegetFrustum ()
const PolytopegetFrustum () const
void addOccluder (ShadowVolumeOccluder &cv)
void setPixelSizeVector (const Vec4 &v)
Vec4getPixelSizeVector ()
const Vec4getPixelSizeVector () const
void setSmallFeatureCullingPixelSize (float value)
float & getSmallFeatureCullingPixelSize ()
float getSmallFeatureCullingPixelSize () const
float pixelSize (const Vec3 &v, float radius) const
 Compute the pixel of an object at position v, with specified radius.

float pixelSize (const BoundingSphere &bs) const
 Compute the pixel of an bounding sphere.

bool isCulled (const std::vector< Vec3 > &vertices)
bool isCulled (const BoundingBox &bb)
bool isCulled (const BoundingSphere &bs)
void pushCurrentMask ()
void popCurrentMask ()
void disableAndPushOccludersCurrentMask (NodePath &nodePath)
void popOccludersCurrentMask (NodePath &nodePath)

Protected Attributes

Mask _mask
Polytope _frustum
OccluderList _occluderList
Vec4 _pixelSizeVector
float _smallFeatureCullingPixelSize

Detailed Description

A CullingSet class which contains a frustum and a list of occluder.


Member Typedef Documentation

typedef unsigned int osg::CullingSet::Mask
 

typedef std::vector<ShadowVolumeOccluder> osg::CullingSet::OccluderList
 


Member Enumeration Documentation

enum osg::CullingSet::MaskValues
 

Enumeration values:
VIEW_FRUSTUM_CULLING 
SMALL_FEATURE_CULLING 
SHADOW_OCCLUSION_CULLING 
ALL_CULLING 


Constructor & Destructor Documentation

osg::CullingSet::CullingSet  
 

osg::CullingSet::CullingSet const CullingSet &    cs,
const Matrix   matrix,
const Vec4   pixelSizeVector
[inline]
 

osg::CullingSet::~CullingSet  
 


Member Function Documentation

void osg::CullingSet::addOccluder ShadowVolumeOccluder   cv [inline]
 

void osg::CullingSet::disableAndPushOccludersCurrentMask NodePath   nodePath
 

const Polytope& osg::CullingSet::getFrustum   const [inline]
 

Polytope& osg::CullingSet::getFrustum   [inline]
 

const Vec4& osg::CullingSet::getPixelSizeVector   const [inline]
 

Vec4& osg::CullingSet::getPixelSizeVector   [inline]
 

float osg::CullingSet::getSmallFeatureCullingPixelSize   const [inline]
 

float& osg::CullingSet::getSmallFeatureCullingPixelSize   [inline]
 

bool osg::CullingSet::isCulled const BoundingSphere   bs [inline]
 

bool osg::CullingSet::isCulled const BoundingBox   bb [inline]
 

bool osg::CullingSet::isCulled const std::vector< Vec3 > &    vertices [inline]
 

float osg::CullingSet::pixelSize const BoundingSphere   bs const [inline]
 

Compute the pixel of an bounding sphere.

float osg::CullingSet::pixelSize const Vec3   v,
float    radius
const [inline]
 

Compute the pixel of an object at position v, with specified radius.

void osg::CullingSet::popCurrentMask   [inline]
 

void osg::CullingSet::popOccludersCurrentMask NodePath   nodePath
 

void osg::CullingSet::pushCurrentMask   [inline]
 

void osg::CullingSet::setCullingMask Mask    mask [inline]
 

void osg::CullingSet::setFrustum Polytope   cv [inline]
 

void osg::CullingSet::setPixelSizeVector const Vec4   v [inline]
 

void osg::CullingSet::setSmallFeatureCullingPixelSize float    value [inline]
 


Member Data Documentation

Polytope osg::CullingSet::_frustum [protected]
 

Mask osg::CullingSet::_mask [protected]
 

OccluderList osg::CullingSet::_occluderList [protected]
 

Vec4 osg::CullingSet::_pixelSizeVector [protected]
 

float osg::CullingSet::_smallFeatureCullingPixelSize [protected]
 


The documentation for this class was generated from the following file:
Generated at Wed Sep 18 13:55:27 2002 for the Open Scene Graph by doxygen 1.2.16.