Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

WalkOnFunction.h

Go to the documentation of this file.
00001 
00002 //                            WalkOnFunction.h                                //
00004 
00005 #ifndef WALKONFUNCTION_H
00006 #define WALKONFUNCTION_H
00007 
00008 #include "X3DActiveFunction.h"
00009 #include "X3DTypes.h"
00010 
00011 namespace X3DTK {
00012 
00013 class X3DComponentVisitor;
00015 typedef bool (X3DComponentVisitor::* ptrToWalkOnFunction)(SFAbstractNode, SFAbstractNode) const;
00016 
00018 
00019 class WalkOnFunction : public X3DActiveFunction
00020 {
00021 public:
00023   WalkOnFunction(const ptrToWalkOnFunction walkon, const X3DComponentVisitor *component);
00025   ~WalkOnFunction();
00026   
00028   inline bool walkOn(SFAbstractNode N, SFAbstractNode child) const {return (component_->*ptr2walkon_)(N, child);};
00029   
00030 private:
00031   const ptrToWalkOnFunction ptr2walkon_;
00032   const X3DComponentVisitor *component_;
00033 };
00034 
00035 }
00036 
00037 #endif

Generated on Mon Jan 19 10:32:05 2004 for X3DToolKit by doxygen1.2.18