cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsNDISerialControllerQtComponent.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): Ali Uneri
7  Created on: 2009-10-29
8 
9  (C) Copyright 2009-2012 Johns Hopkins University (JHU), All Rights Reserved.
10 
11 --- begin cisst license - do not edit ---
12 
13 This software is provided "as is" under an open source license, with
14 no warranty. The complete license can be found in license.txt and
15 http://www.cisst.org/cisst/license.txt.
16 
17 --- end cisst license ---
18 */
19 
20 #ifndef _mtsNDISerialControllerQtComponent_h
21 #define _mtsNDISerialControllerQtComponent_h
22 
23 #include <QTimer>
24 #include <QWidget>
25 
30 #include <sawNDITracker/sawNDITrackerExportQt.h> // always include last
31 
32 namespace Ui {
33  class mtsNDISerialControllerQtWidget;
34 }
35 
37 {
38  Q_OBJECT;
40 
41  public:
42  mtsNDISerialControllerQtComponent(const std::string & taskName);
44 
45  void Configure(const std::string & CMN_UNUSED(filename) = "") {};
46 
47  void AddTool(QObject * toolQtComponent, QWidget * toolQtWidget);
48 
49  QWidget * GetWidget(void) {
50  return &CentralWidget;
51  }
52 
53  protected:
54  Ui::mtsNDISerialControllerQtWidget * ControllerWidget;
55  QWidget CentralWidget;
56  QTimer * Timer;
57 
58  struct {
66  } NDI;
67 
68  struct {
71  } Collector;
72 
73  public slots:
74  void NDIBeepQSlot(void);
75  void NDIInitializeQSlot(void);
76  void NDICalibratePivotQSlot(void);
77  void NDITrackQSlot(bool toggled);
78  void NDIReportStrayMarkersQSlot(void);
79  void RecordQSlot(bool toggled);
80 };
81 
83 
84 #endif // _mtsNDISerialControllerQtComponent_h
Defines the command interfaces.
Defines a function object to use a void command (mtsCommandVoid)
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
Defines the command interfaces.
Definition: mtsNDISerialControllerQtComponent.h:36
#define CMN_UNUSED(argument)
Definition: cmnPortability.h:479
Ui::mtsNDISerialControllerQtWidget * ControllerWidget
Definition: mtsNDISerialControllerQtComponent.h:54
QTimer * Timer
Definition: mtsNDISerialControllerQtComponent.h:56
mtsFunctionVoid Enable
Definition: mtsNDISerialControllerQtComponent.h:62
mtsFunctionVoid Query
Definition: mtsNDISerialControllerQtComponent.h:61
mtsFunctionVoid Initialize
Definition: mtsNDISerialControllerQtComponent.h:60
Definition: mtsFunctionVoid.h:36
CMN_DECLARE_SERVICES_INSTANTIATION(mtsNDISerialControllerQtComponent)
Declaration of mtsComponent.
mtsFunctionVoid ReportStrayMarkers
Definition: mtsNDISerialControllerQtComponent.h:65
mtsFunctionVoid Start
Definition: mtsNDISerialControllerQtComponent.h:69
Definition: mtsComponent.h:150
~mtsNDISerialControllerQtComponent(void)
Definition: mtsNDISerialControllerQtComponent.h:43
mtsFunctionWrite CalibratePivot
Definition: mtsNDISerialControllerQtComponent.h:63
void Configure(const std::string &CMN_UNUSED(filename)="")
Definition: mtsNDISerialControllerQtComponent.h:45
QWidget * GetWidget(void)
Definition: mtsNDISerialControllerQtComponent.h:49
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
mtsFunctionVoid Stop
Definition: mtsNDISerialControllerQtComponent.h:70
mtsFunctionWrite Beep
Definition: mtsNDISerialControllerQtComponent.h:59
Definition: mtsFunctionWrite.h:37
mtsFunctionWrite Track
Definition: mtsNDISerialControllerQtComponent.h:64
const int CMN_NO_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:328
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76
QWidget CentralWidget
Definition: mtsNDISerialControllerQtComponent.h:55