cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
svlQtWidgetVidCapSrcImageProperties.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5 
6  Author(s): Balazs P. Vagvolgyi
7  Created on: 2011-06-03
8 
9  (C) Copyright 2011 Johns Hopkins University (JHU), All Rights
10  Reserved.
11 
12 --- begin cisst license - do not edit ---
13 
14 This software is provided "as is" under an open source license, with
15 no warranty. The complete license can be found in license.txt and
16 http://www.cisst.org/cisst/license.txt.
17 
18 --- end cisst license ---
19 
20 */
21 
22 #ifndef _svlQtWidgetVidCapSrcImageProperties_h
23 #define _svlQtWidgetVidCapSrcImageProperties_h
24 
27 
28 #include <QObject>
29 
30 // Always include last!
32 
33 // Forward declarations
34 class osaThread;
35 class QTimer;
36 class svlQtDialog;
37 class Ui_WidgetVidCapSrcImageProperties;
38 
39 
41 {
42 friend void* svlQtWidgetVidCapSrcImagePropertiesThreadProc(svlQtWidgetVidCapSrcImageProperties* obj);
43 
44  Q_OBJECT
46 
47 public:
51 
53  static svlQtWidgetVidCapSrcImageProperties* New(svlFilterSourceVideoCapture *filter, unsigned int videoch = SVL_LEFT);
54  void Delete();
55 
56  bool WaitForClose();
57 
58  bool Create(svlFilterSourceVideoCapture *filter, unsigned int videoch = SVL_LEFT);
59  bool Destroy();
60 
61  bool Connect(const std::string & component_name, unsigned int videoch = SVL_LEFT);
62  bool Connect(const std::string & process_name, const std::string & component_name, unsigned int videoch = SVL_LEFT);
63  bool Disconnect();
64 
65 protected:
66  bool StopThread;
68 
70  Ui_WidgetVidCapSrcImageProperties *UIWidget;
71 
72 protected slots:
73  void QSlotOnShutterSliderMove(int value);
74  void QSlotOnGainSliderMove(int value);
75  void QSlotOnColorUSliderMove(int value);
76  void QSlotOnColorVSliderMove(int value);
77  void QSlotOnBrightnessSliderMove(int value);
78  void QSlotOnGammaSliderMove(int value);
79  void QSlotOnSaturationSliderMove(int value);
80 
81  void QSlotOnShutterAutoCBStateChanged(int value);
82  void QSlotOnGainAutoCBStateChanged(int value);
83  void QSlotOnColorAutoCBStateChanged(int value);
84  void QSlotOnBrightnessAutoCBStateChanged(int value);
85  void QSlotOnGammaAutoCBStateChanged(int value);
86  void QSlotOnSaturationAutoCBStateChanged(int value);
87 
88  void QSlotCreate();
89  void QSlotDestroy();
90  void QSlotConnect();
91  void QSlotConnect2();
92  void QSlotDisconnect();
93 
94 public:
96 
97 private:
98  svlFilterSourceVideoCapture* argFilter;
99  unsigned int argVideoCh;
100  std::string argProcessName;
101  std::string argComponentName;
102 
103  bool retSuccess;
104 };
105 
107 
108 #endif // _svlQtWidgetVidCapSrcImageProperties_h
109 
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
virtual void Create(void)
svlQtDialog * Dialog
Definition: svlQtWidgetVidCapSrcImageProperties.h:69
Definition: svlFilterSourceVideoCapture.h:38
Define a thread object.
Definition: osaThread.h:164
Definition: svlQtDialog.h:32
Macros to export the symbols of cisstStereoVisionQt (in a Dll).
Definition: svlQtWidgetVidCapSrcImageProperties.h:40
Definition: mtsComponent.h:150
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
#define SVL_LEFT
Definition: svlDefinitions.h:121
osaThread * Thread
Definition: svlQtWidgetVidCapSrcImageProperties.h:67
bool StopThread
Definition: svlQtWidgetVidCapSrcImageProperties.h:66
Ui_WidgetVidCapSrcImageProperties * UIWidget
Definition: svlQtWidgetVidCapSrcImageProperties.h:70
IReqFilterSourceVideoCapture VideoCaptureSettings
Definition: svlQtWidgetVidCapSrcImageProperties.h:95
const int CMN_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:331
Definition: svlRequiredInterfaces.h:153
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition: cmnClassRegisterMacros.h:202
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76