Public Member Functions | |
ComputeBoundsVisitor (TraversalMode traversalMode=TRAVERSE_ALL_CHILDREN) | |
virtual void | reset () |
Method to call to reset visitor. | |
osg::BoundingBox & | getBoundingBox () |
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 |
typedef std::vector<osg::Matrix> osg::ComputeBoundsVisitor::MatrixStack [protected] |
osg::ComputeBoundsVisitor::ComputeBoundsVisitor | ( | TraversalMode | traversalMode = TRAVERSE_ALL_CHILDREN |
) |
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 | ) |
MatrixStack osg::ComputeBoundsVisitor::_matrixStack [protected] |
osg::BoundingBox osg::ComputeBoundsVisitor::_bb [protected] |