14#ifndef OSG_COLLECTOCCLUDERSVISITOR
15#define OSG_COLLECTOCCLUDERSVISITOR 1
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
Vec3f Vec3
Definition Vec3:21
float getMinimumShadowOccluderVolume() const
Definition CollectOccludersVisitor:57
void handle_cull_callbacks_and_traverse(osg::Node &node)
Definition CollectOccludersVisitor:85
void setCollectedOccluderSet(const ShadowVolumeOccluderSet &svol)
Definition CollectOccludersVisitor:67
virtual float getDistanceFromEyePoint(const Vec3 &pos, bool withLODScale) const
Get the distance of a point from the eye point, distance value in the eye coordinate system.
virtual void apply(osg::OccluderNode &node)
const ShadowVolumeOccluderSet & getCollectedOccluderSet() const
Definition CollectOccludersVisitor:69
virtual void apply(osg::Transform &node)
virtual ~CollectOccludersVisitor()
virtual void apply(osg::Projection &node)
ShadowVolumeOccluderSet & getCollectedOccluderSet()
Definition CollectOccludersVisitor:68
void setCreateDrawablesOnOccludeNodes(bool flag)
Definition CollectOccludersVisitor:64
virtual void apply(osg::LOD &node)
unsigned int getMaximumNumberOfActiveOccluders() const
Definition CollectOccludersVisitor:62
META_NodeVisitor(osg, CollectOccludersVisitor) virtual Object *cloneType() const
Definition CollectOccludersVisitor:34
float _minimumShadowOccluderVolume
Definition CollectOccludersVisitor:99
ShadowVolumeOccluderSet _occluderSet
Definition CollectOccludersVisitor:102
void setMinimumShadowOccluderVolume(float vol)
Sets the minimum shadow occluder volume that an active occluder must have.
Definition CollectOccludersVisitor:56
void removeOccludedOccluders()
Removes occluded occluders for the collected occluders list, then discards all but MaximumNumberOfAct...
virtual void apply(osg::Switch &node)
void setMaximumNumberOfActiveOccluders(unsigned int num)
Sets the maximum number of occluders to have active for culling purposes.
Definition CollectOccludersVisitor:61
CollectOccludersVisitor()
std::set< ShadowVolumeOccluder > ShadowVolumeOccluderSet
Definition CollectOccludersVisitor:29
virtual void reset()
Method to call to reset visitor.
virtual float getDistanceToViewPoint(const Vec3 &pos, bool withLODScale) const
Get the distance from a point to the view point, distance value in local coordinate system.
void handle_cull_callbacks_and_accept(osg::Node &node, osg::Node *acceptNode)
Definition CollectOccludersVisitor:92
unsigned _maximumNumberOfActiveOccluders
Definition CollectOccludersVisitor:100
bool _createDrawables
Definition CollectOccludersVisitor:101
bool getCreateDrawablesOnOccludeNodes() const
Definition CollectOccludersVisitor:65
virtual void apply(osg::Node &)
virtual float getDistanceToEyePoint(const Vec3 &pos, bool withLODScale) const
Get the distance from a point to the eye point, distance value in local coordinate system.
A CullStack class which accumulates the current project, modelview matrices and the CullingSet.
Definition CullStack:28
LOD - Level Of Detail group node which allows switching between children depending on distance from e...
Definition LOD:36
Base class for all internal nodes in the scene graph.
Definition Node:72
unsigned int getNumChildrenWithOccluderNodes() const
Get the number of Children of this node which are or have OccluderNode's.
Definition Node:340
virtual void accept(NodeVisitor &nv)
Visitor Pattern : calls the apply method of a NodeVisitor with this node's type.
Visitor for type safe operations on osg::Nodes.
Definition NodeVisitor:82
void traverse(Node &node)
Method for handling traversal of a nodes.
Definition NodeVisitor:274
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
virtual Object * cloneType() const =0
Clone the type of an object, with Object* return type.
OccluderNode is a Group node which provides hooks for adding ConvexPlanarOccluders to the scene.
Definition OccluderNode:27
Projection nodes set up the frustum/orthographic projection used when rendering the scene.
Definition Projection:25
Switch is a Group node that allows switching between children.
Definition Switch:27
A Transform is a group node for which all children are transformed by a 4x4 matrix.
Definition Transform:75
#define OSG_EXPORT
Definition Export:39