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