00001
00002
00003
00005
00006
00011
00016
00021
00023
00024 #ifndef ENTERFUNCTION_H
00025 #define ENTERFUNCTION_H
00026
00027 #include "X3DActiveFunction.h"
00028 #include "X3DTypes.h"
00029
00030 namespace X3DTK {
00031
00033
00034 class EnterFunction : public X3DActiveFunction
00035 {
00036 public:
00038 EnterFunction(const ptrToEnterFunction enter, const X3DComponentVisitor *component);
00040 ~EnterFunction();
00041
00043 inline void enter(SFAbstractNode N) const {(component_->*ptr2enter_)(N);};
00044
00045 private:
00046 const ptrToEnterFunction ptr2enter_;
00047 const X3DComponentVisitor *component_;
00048 };
00049
00050 }
00051
00052 #endif