on osgUtil by implementing a NodeVisitor::VisitorType enum, and associated g/setVisitorType. This allows callbacks to querry the visitor/traversal type without doing down cast's to specific visitor subclasses such as osgUtil::AppVisitor/CullVisitor.
19 lines
220 B
C++
19 lines
220 B
C++
#include <osgUtil/AppVisitor>
|
|
|
|
using namespace osg;
|
|
using namespace osgUtil;
|
|
|
|
AppVisitor::AppVisitor():NodeVisitor(APP_VISITOR,TRAVERSE_ACTIVE_CHILDREN)
|
|
{
|
|
}
|
|
|
|
|
|
AppVisitor::~AppVisitor()
|
|
{
|
|
}
|
|
|
|
|
|
void AppVisitor::reset()
|
|
{
|
|
}
|