Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
VideoSource_Controller_PMD.hh
1 #ifndef __VideoSource_Controller_PMD_HH__
2 #define __VideoSource_Controller_PMD_HH__
3 
4 #include <bias_config.h>
5 
6 #include <VideoSource/VideoSource_Base.hh>
7 
8 #ifdef BIAS_HAVE_PMD_PMDTec
9 #include <VideoSource/VideoSource_PMD.hh>
10 #endif
11 
12 #include <Base/Image/ImageIO.hh>
13 #include <Base/Image/ImageConvert.hh>
14 
15 #include <Image/Camera.hh>
16 
17 #include <Gui/VideoSource_Controller_Base.hh>
18 
19 namespace BIAS {
20 
22 public:
23 
24  VideoSource_Controller_PMD(VideoSource *cam, wxWindow *parent, const std::string &title);
25 
27 
28  void Initialize();
29 
30  void SetVideoSource(BIAS::VideoSource *cam);
31  void SetDistanceOffsetRange(unsigned int min,unsigned int max);
32  void SetIntegrationTimeRange(unsigned int min,unsigned int max);
33  void Update(); // trigger an update, useful for auto-mode
34 
35  wxBoxSizer *vBox;
36 
37  enum {
44  ID_TEXT
45  };
46 
47 private:
48 
49  void OnEscape(wxCommandEvent& event);
50  void OnHide(wxCommandEvent& event);
51  void OnClose(wxCloseEvent& event);
52  void OnDistance(wxScrollEvent& event) ;
53  void OnIntegration(wxScrollEvent& event) ;
54  void OnUpdate(wxCommandEvent& event) ;
55  void OnCheckShowDepth(wxCommandEvent& event);
56  void OnModFreq(wxCommandEvent& event);
57 protected:
58 
60 
61  wxSlider *SliderAmplitude;
62  wxSlider *SliderSaturation;
63  wxSlider *SliderIntegration;
65  wxSlider *SliderModCoeff;
66  wxBoxSizer *sliderBox_ShGa;
68  wxComboBox *comboBoxModFreq;
70  wxCheckBox *checkBoxShowDepth;
71  wxButton *showButton;
72  wxButton *update_Button;
73 
74  unsigned int min_integrationTime_, max_integrationTime_;
75  unsigned int min_distanceOffset_, max_distanceOffset_;
76 
77  DECLARE_EVENT_TABLE()
78 
79 private:
80  };
81 
82 }
83 #endif
Defines a common interface to different devices.
Support for CamCube usb cam.