00001 #ifndef DIRECTIONFILTER_H 00002 #define DIRECTIONFILTER_H 00003 00004 #include "ProcessModule.h" 00005 #include "../framedata/IFrameData.h" 00006 #include "../util/Vector.h" 00007 #include "../util/ConfigManager.h" 00008 00010 00016 class DirectionFilter : public ProcessModule 00017 { 00018 public: 00023 DirectionFilter(double threshold, AbstractModule *successor); 00024 00029 DirectionFilter(ConfigSection *config, AbstractModule *successor); 00030 00032 virtual ~DirectionFilter() {} 00033 00041 virtual void processFrameData(IFrameData *data); 00042 00044 const double getThreshold() const { return m_threshold; } 00045 00047 void setThreshold(double tr) { m_threshold = tr; } 00048 00049 private: 00050 double m_threshold; 00051 Vector3d m_lastDirection; 00052 }; 00053 00054 #endif