Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
VideoSource_Controller_PMDZess.hh
1 #ifndef __VideoSource_Controller_USBPMD_HH__
2 #define __VideoSource_Controller_USBPMD_HH__
3 
4 #include <bias_config.h>
5 
6 #include <Base/Common/W32Compat.hh>
7 #include <VideoSource/VideoSource_Base.hh>
8 
9 #ifdef BIAS_HAVE_PMD_PMDZess
10 #include <VideoSource/VideoSource_PMDZess.hh>
11 #endif
12 
13 #include <Base/Image/ImageIO.hh>
14 #include <Base/Image/ImageConvert.hh>
15 
16 #include <Image/Camera.hh>
17 #include <Image/StereoRedGreen.hh>
18 
19 #include <Gui/VideoSource_Controller_Base.hh>
20 
21 namespace BIAS {
22 
24 public:
25 
26  VideoSource_Controller_PMDZess(VideoSource *cam, wxFrame *paren, const std::string& title="Controller Multicam");
27 
29 
30  void Initialize();
31 
32  void SetVideoSource(BIAS::VideoSource *cam);
33  void SetShutter3DRange(unsigned int min=1000.0,unsigned int max=8000.0);
34  void SetShutter2DRange(unsigned int min=1000.02,unsigned int max=8000.2);
35  void SetGain2DRange(unsigned int min=0.0,unsigned int max=3000.0);
36  void Update(); // trigger an update, useful for auto-mode
37 
38 
39  wxBoxSizer *vBox;
40 
41  enum {
49  ID_TEXT
50  };
51 
52 private:
53 
54  void OnEscape(wxCommandEvent& event);
55  void OnHide(wxCommandEvent& event);
56  void OnClose(wxCloseEvent& event);
57  void OnShutter3D(wxScrollEvent& event);
58  void OnShutter2D(wxScrollEvent& event);
59  void OnGain2D(wxScrollEvent& event);
60  void OnUpdate(wxCommandEvent& event) ;
61  void OnModFreq(wxCommandEvent& event) ;
62 
63 protected:
64 
66 
67  wxSlider *SliderGain2D;
68  wxSlider *SliderShutter2D;
69  wxSlider *SliderShutter3D;
70  wxBoxSizer *sliderBox_ShGa;
72 
74 
75  wxButton *showButton;
76  wxButton *setModFreqButton;
77  wxButton *update_Button;
78  wxTextCtrl *modulationFreqText;
79  double minShutter2D_, maxShutter2D_,minShutter3D_, maxShutter3D_, minGain2D_,maxGain2D_;
80 
81  DECLARE_EVENT_TABLE()
82 
83 private:
84  };
85 
86 }
87 #endif
represents Zess PMD camera driver interface TODO: include support for normal images (2DImg_)...
Defines a common interface to different devices.