00001 #ifndef GESTUREFINDER_H 00002 #define GESTUREFINDER_H 00003 00004 #include "ProcessModule.h" 00005 #include "../framedata/IFrameData.h" 00006 #include "../util/Vector.h" 00007 #include "../util/ConfigSection.h" 00008 #include <list> 00009 00011 00018 class GestureFinder : public ProcessModule 00019 { 00020 public: 00026 GestureFinder(size_t maxFramesDropped, double threshold, AbstractModule *successor); 00027 00032 GestureFinder(ConfigSection *config, AbstractModule *successor); 00033 00035 virtual ~GestureFinder() {} 00043 virtual void processFrameData(IFrameData *data); 00044 00046 const size_t getMaxFramesDropped() const { return m_maxFramesDropped; } 00047 00049 const double getThreshold() const { return m_threshold; } 00050 00052 void setMaxFramesDropped(const size_t mfd) { m_maxFramesDropped = mfd; } 00053 00055 void setThreshold(const double threshold) { m_threshold = threshold; } 00056 00057 private: 00058 size_t m_droppedVectors; 00059 size_t m_maxFramesDropped; 00060 double m_threshold; 00061 }; 00062 00063 #endif