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

WalkFunction.h

Go to the documentation of this file.
00001 #ifndef X3DTK_WALKFUNCTION_H
00002 #define X3DTK_WALKFUNCTION_H
00003 
00004 #include "X3DFunction.h"
00005 #include "X3DTypes.h"
00006 
00007 namespace X3DTK {
00008 
00009 class X3DComponentWalker;
00010 
00012 typedef void (* ptrToWalkFunction)(SFAbstractNode);
00013 
00019 class WalkFunction : public X3DFunction
00020 {
00021 public:
00023   WalkFunction(const ptrToWalkFunction f);
00024   
00026   inline void walk(const SFAbstractNode N) const {(*_ptr2function)(N);};
00027 
00028 private:
00029   const ptrToWalkFunction _ptr2function;
00030 };
00031 
00032 }
00033 
00034 #endif

Generated on Mon Apr 5 16:43:52 2004 for X3DToolKit by doxygen 1.3.3