class SG_EXPORT osg::CullingSet

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

Inheritance:


Public Methods

[more] CullingSet()
[more] CullingSet(const CullingSet& cs)
[more] CullingSet(const CullingSet& cs, const Matrix& matrix, const Vec4& pixelSizeVector)
[more]CullingSet& operator = (const CullingSet& cs)
[more]inline void set(const CullingSet& cs)
[more]inline void set(const CullingSet& cs, const Matrix& matrix, const Vec4& pixelSizeVector)
[more]void setCullingMask(Mask mask)
[more]void setFrustum(Polytope& cv)
[more]Polytope& getFrustum()
[more]const Polytope& getFrustum() const
[more]void addOccluder(ShadowVolumeOccluder& cv)
[more]void setPixelSizeVector(const Vec4& v)
[more]Vec4& getPixelSizeVector()
[more]const Vec4& getPixelSizeVector() const
[more]void setSmallFeatureCullingPixelSize(float value)
[more]float& getSmallFeatureCullingPixelSize()
[more]float getSmallFeatureCullingPixelSize() const
[more]float pixelSize(const Vec3& v, float radius) const
Compute the pixel of an object at position v, with specified radius
[more]float pixelSize(const BoundingSphere& bs) const
Compute the pixel of an bounding sphere
[more]inline bool isCulled(const std::vector<Vec3>& vertices)
[more]inline bool isCulled(const BoundingBox& bb)
[more]inline bool isCulled(const BoundingSphere& bs)
[more]inline void pushCurrentMask()
[more]inline void popCurrentMask()
[more]void disableAndPushOccludersCurrentMask(NodePath& nodePath)
[more]void popOccludersCurrentMask(NodePath& nodePath)
[more]virtual ~CullingSet()

Public Members

[more]typedef std::vector<ShadowVolumeOccluder> OccluderList
[more]typedef unsigned int Mask
[more]enum MaskValues

Protected Fields

[more]Mask _mask
[more]Polytope _frustum
[more]OccluderList _occluderList
[more]Vec4 _pixelSizeVector
[more]float _smallFeatureCullingPixelSize


Inherited from Referenced:

Public Methods

ostatic void setDeleteHandler(DeleteHandler* handler)
ostatic DeleteHandler* getDeleteHandler()
oinline void ref() const
oinline void unref_nodelete() const
oinline int referenceCount() const
oinline void unref() const

Protected Fields

omutable int _refCount


Documentation

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

o CullingSet(const CullingSet& cs)

o CullingSet(const CullingSet& cs, const Matrix& matrix, const Vec4& pixelSizeVector)

oCullingSet& operator = (const CullingSet& cs)

oinline void set(const CullingSet& cs)

oinline void set(const CullingSet& cs, const Matrix& matrix, const Vec4& pixelSizeVector)

otypedef std::vector<ShadowVolumeOccluder> OccluderList

otypedef unsigned int Mask

oenum MaskValues

o NO_CULLING

o VIEW_FRUSTUM_SIDES_CULLING

o NEAR_PLANE_CULLING

o FAR_PLANE_CULLING

o VIEW_FRUSTUM_CULLING

o SMALL_FEATURE_CULLING

o SHADOW_OCCLUSION_CULLING

o DEFAULT_CULLING

o ENABLE_ALL_CULLING

ovoid setCullingMask(Mask mask)

ovoid setFrustum(Polytope& cv)

oPolytope& getFrustum()

oconst Polytope& getFrustum() const

ovoid addOccluder(ShadowVolumeOccluder& cv)

ovoid setPixelSizeVector(const Vec4& v)

oVec4& getPixelSizeVector()

oconst Vec4& getPixelSizeVector() const

ovoid setSmallFeatureCullingPixelSize(float value)

ofloat& getSmallFeatureCullingPixelSize()

ofloat getSmallFeatureCullingPixelSize() const

ofloat pixelSize(const Vec3& v, float radius) const
Compute the pixel of an object at position v, with specified radius

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

oinline bool isCulled(const std::vector<Vec3>& vertices)

oinline bool isCulled(const BoundingBox& bb)

oinline bool isCulled(const BoundingSphere& bs)

oinline void pushCurrentMask()

oinline void popCurrentMask()

ovoid disableAndPushOccludersCurrentMask(NodePath& nodePath)

ovoid popOccludersCurrentMask(NodePath& nodePath)

ovirtual ~CullingSet()

oMask _mask

oPolytope _frustum

oOccluderList _occluderList

oVec4 _pixelSizeVector

ofloat _smallFeatureCullingPixelSize


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.