00001 #ifndef _DIRECTIONFILTERGUI_H 00002 #define _DIRECTIONFILTERGUI_H 00003 00004 #include "AbstractGtkmmModuleGUI.h" 00005 #include "../modules/DirectionFilter.h" 00006 #include "../util/Vector.h" 00007 #include "GraphWidget.h" 00008 #include <gtkmm/box.h> 00009 #include <gtkmm/label.h> 00010 #include <gtkmm/adjustment.h> 00011 #include <gtkmm/spinbutton.h> 00012 00015 class DirectionFilterGUI : public AbstractGtkmmModuleGUI 00016 { 00017 public: 00021 DirectionFilterGUI(DirectionFilter *module); 00022 00026 virtual void init(); 00030 virtual void destroy(); 00031 00037 void addData(const Vector3d &v); 00038 00039 private: 00040 void setThreshold(); 00041 00042 GraphWidget m_graph; 00043 00044 Gtk::HBox m_spinnerBox; 00045 Gtk::VBox m_box; 00046 Gtk::Label m_lblThreshold; 00047 Gtk::Adjustment m_adjThreshold; 00048 Gtk::SpinButton m_spbThreshold; 00049 00050 }; 00051 00052 #endif