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 
00003 
00005 
00006 
00011 
00016 
00021 //                            WalkOnFunction.h                                //
00023 
00024 #ifndef WALKONFUNCTION_H
00025 #define WALKONFUNCTION_H
00026 
00027 #include "X3DActiveFunction.h"
00028 #include "X3DTypes.h"
00029 
00030 namespace X3DTK {
00031 
00033 
00034 class WalkOnFunction : public X3DActiveFunction
00035 {
00036 public:
00038   WalkOnFunction(const ptrToWalkOnFunction walkon, const X3DComponentVisitor *component);
00040   ~WalkOnFunction();
00041   
00043   inline bool walkOn(SFAbstractNode N, SFAbstractNode child) const {return (component_->*ptr2walkon_)(N, child);};
00044   
00045 private:
00046   const ptrToWalkOnFunction ptr2walkon_;
00047   const X3DComponentVisitor *component_;
00048 };
00049 
00050 }
00051 
00052 #endif

Generated on Wed Sep 10 11:25:14 2003 for X3DToolKit by doxygen1.3