Added NodeVisitor::INTERSECTION_VISITOR VisitorType
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14395 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
@@ -45,7 +45,7 @@ inline int EQUAL_F(float a, float b)
|
||||
|
||||
|
||||
CullVisitor::CullVisitor():
|
||||
NodeVisitor(CULL_VISITOR,TRAVERSE_ACTIVE_CHILDREN),
|
||||
osg::NodeVisitor(CULL_VISITOR,TRAVERSE_ACTIVE_CHILDREN),
|
||||
_currentStateGraph(NULL),
|
||||
_currentRenderBin(NULL),
|
||||
_traversalNumber(0),
|
||||
|
||||
@@ -179,7 +179,8 @@ void IntersectVisitor::IntersectState::addLineSegment(osg::LineSegment* seg)
|
||||
}
|
||||
|
||||
|
||||
IntersectVisitor::IntersectVisitor()
|
||||
IntersectVisitor::IntersectVisitor():
|
||||
osg::NodeVisitor(osg::NodeVisitor::INTERSECTION_VISITOR, osg::NodeVisitor::TRAVERSE_ACTIVE_CHILDREN)
|
||||
{
|
||||
|
||||
// override the default node visitor mode.
|
||||
|
||||
@@ -151,11 +151,9 @@ bool IntersectorGroup::containsIntersections()
|
||||
// IntersectionVisitor
|
||||
//
|
||||
|
||||
IntersectionVisitor::IntersectionVisitor(Intersector* intersector, ReadCallback* readCallback)
|
||||
IntersectionVisitor::IntersectionVisitor(Intersector* intersector, ReadCallback* readCallback):
|
||||
osg::NodeVisitor(osg::NodeVisitor::INTERSECTION_VISITOR, osg::NodeVisitor::TRAVERSE_ACTIVE_CHILDREN)
|
||||
{
|
||||
// override the default node visitor mode.
|
||||
setTraversalMode(osg::NodeVisitor::TRAVERSE_ACTIVE_CHILDREN);
|
||||
|
||||
_useKdTreesWhenAvailable = true;
|
||||
_dummyTraversal = false;
|
||||
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
using namespace osg;
|
||||
using namespace osgUtil;
|
||||
|
||||
UpdateVisitor::UpdateVisitor():NodeVisitor(UPDATE_VISITOR,TRAVERSE_ALL_CHILDREN)
|
||||
UpdateVisitor::UpdateVisitor():
|
||||
osg::NodeVisitor(osg::NodeVisitor::UPDATE_VISITOR, osg::NodeVisitor::TRAVERSE_ALL_CHILDREN)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user