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

WalkingFunction.h

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

Generated on Thu Oct 9 13:50:55 2003 for X3DToolKit by doxygen1.2.18