osg::ComputeBoundsVisitor Class Reference

Inheritance diagram for osg::ComputeBoundsVisitor:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 ComputeBoundsVisitor (TraversalMode traversalMode=TRAVERSE_ALL_CHILDREN)
virtual void reset ()
 Method to call to reset visitor.
osg::BoundingBoxgetBoundingBox ()
void getPolytope (osg::Polytope &polytope, float margin=0.1) const
void getBase (osg::Polytope &polytope, float margin=0.1) const
void apply (osg::Node &node)
void apply (osg::Transform &transform)
void apply (osg::Geode &geode)
void pushMatrix (osg::Matrix &matrix)
void popMatrix ()
void applyDrawable (osg::Drawable *drawable)

Protected Types

typedef std::vector
< osg::Matrix
MatrixStack

Protected Attributes

MatrixStack _matrixStack
osg::BoundingBox _bb


Member Typedef Documentation

typedef std::vector<osg::Matrix> osg::ComputeBoundsVisitor::MatrixStack [protected]


Constructor & Destructor Documentation

osg::ComputeBoundsVisitor::ComputeBoundsVisitor ( TraversalMode  traversalMode = TRAVERSE_ALL_CHILDREN  ) 


Member Function Documentation

virtual void osg::ComputeBoundsVisitor::reset (  )  [virtual]

Method to call to reset visitor.

Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal.

Reimplemented from osg::NodeVisitor.

osg::BoundingBox& osg::ComputeBoundsVisitor::getBoundingBox (  )  [inline]

void osg::ComputeBoundsVisitor::getPolytope ( osg::Polytope polytope,
float  margin = 0.1 
) const

void osg::ComputeBoundsVisitor::getBase ( osg::Polytope polytope,
float  margin = 0.1 
) const

void osg::ComputeBoundsVisitor::apply ( osg::Node node  )  [virtual]

Reimplemented from osg::NodeVisitor.

void osg::ComputeBoundsVisitor::apply ( osg::Transform transform  )  [virtual]

Reimplemented from osg::NodeVisitor.

void osg::ComputeBoundsVisitor::apply ( osg::Geode geode  )  [virtual]

Reimplemented from osg::NodeVisitor.

void osg::ComputeBoundsVisitor::pushMatrix ( osg::Matrix matrix  )  [inline]

void osg::ComputeBoundsVisitor::popMatrix (  )  [inline]

void osg::ComputeBoundsVisitor::applyDrawable ( osg::Drawable drawable  ) 


Member Data Documentation

MatrixStack osg::ComputeBoundsVisitor::_matrixStack [protected]

osg::BoundingBox osg::ComputeBoundsVisitor::_bb [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:07 2007 for the OpenSceneGraph by doxygen 1.5.3.