00001 #include "RootVisitor.h" 00002 00003 #include <iostream> 00004 00005 using namespace X3DTK; 00006 using namespace std; 00007 00008 RootVisitor::RootVisitor() 00009 : X3DComponentVisitor() 00010 { 00011 defineComponentName("Root"); 00012 defineNewEnterFunction<RootVisitor, X3DAbstractNode>(&RootVisitor::enterX3DAbstractNode); 00013 defineNewWalkOnFunction<RootVisitor, X3DAbstractNode>(&RootVisitor::walkOnX3DAbstractNode); 00014 defineNewLeaveFunction<RootVisitor, X3DAbstractNode>(&RootVisitor::leaveX3DAbstractNode); 00015 } 00016 00017 RootVisitor::~RootVisitor() 00018 { 00019 } 00020 00021 void RootVisitor::enterX3DAbstractNode(X3DAbstractNode *N) const 00022 { 00023 } 00024 00025 bool RootVisitor::walkOnX3DAbstractNode(X3DAbstractNode *N, SFNode child) const 00026 { 00027 return true; 00028 } 00029 00030 void RootVisitor::leaveX3DAbstractNode(X3DAbstractNode *N) const 00031 { 00032 }