cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsIntuitiveDaVinciArmQtWidget.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  Author(s): Anton Deguet
6  Created on: 2013-08-24
7 
8  (C) Copyright 2013 Johns Hopkins University (JHU), All Rights Reserved.
9 
10 --- begin cisst license - do not edit ---
11 
12 This software is provided "as is" under an open source license, with
13 no warranty. The complete license can be found in license.txt and
14 http://www.cisst.org/cisst/license.txt.
15 
16 --- end cisst license ---
17 */
18 
19 
20 #ifndef _mtsIntuitiveDaVinciArmQtWidget_h
21 #define _mtsIntuitiveDaVinciArmQtWidget_h
22 
24 
29 
33 
34 
35 
36 #include <QtCore>
37 #include <QtGui>
38 
39 
40 class mtsIntuitiveDaVinciArmQtWidget: public QWidget, public mtsComponent
41 {
42  Q_OBJECT;
44 
45 public:
46  mtsIntuitiveDaVinciArmQtWidget(const std::string & componentName, double periodInSeconds = 50.0 * cmn_ms);
48 
49  void Configure(const std::string & filename = "");
50  void Startup(void);
51  void Cleanup(void);
52 
53 protected:
54  virtual void closeEvent(QCloseEvent * event);
55 
56 signals:
57  void SignalAppendMessage(QString);
58  void SignalSetColor(QColor);
59 
60 private slots:
61  void timerEvent(QTimerEvent * event);
62  void SlotTextChanged(void);
63 
64 private:
66  void setupUi(void);
67  int TimerPeriodInMilliseconds;
68 
69 protected:
70  struct ArmStruct {
76  } Arm;
77 
78 private:
79  prmPositionCartesianGet PositionCartesian;
80  prmVelocityCartesianGet VelocityCartesian;
81  prmPositionJointGet PositionJoint;
82  prmVelocityJointGet VelocityJoint;
83 
84  vctQtWidgetFrameDoubleRead * QFRPositionCartesianWidget;
85  vctQtWidgetDynamicVectorDoubleRead * QVPositionJointWidget;
86  vctQtWidgetDynamicVectorDoubleRead * QVVelocityJointWidget;
87 
88  // Timing
89  mtsIntervalStatistics IntervalStatistics;
90  mtsQtWidgetIntervalStatistics * QMIntervalStatistics;
91 
92  // Messages
93  void ErrorMessageEventHandler(const std::string & message);
94  void StatusMessageEventHandler(const std::string & message);
95  QTextEdit * QTEMessages;
96 };
97 
99 
100 #endif // _mtsIntuitiveDaVinciArmQtWidget_h
Definition: prmPositionJointGet.h:35
Definition: prmVelocityJointGet.h:39
Definition: mtsFunctionRead.h:37
mtsFunctionRead GetPositionJoint
Definition: mtsIntuitiveDaVinciArmQtWidget.h:73
virtual void closeEvent(QCloseEvent *event)
CMN_DECLARE_SERVICES_INSTANTIATION(mtsIntuitiveDaVinciArmQtWidget)
const int CMN_DYNAMIC_CREATION_ONEARG
Definition: cmnClassRegisterMacros.h:333
Definition: vctQtForwardDeclarations.h:25
mtsFunctionRead GetPeriodStatistics
Definition: mtsIntuitiveDaVinciArmQtWidget.h:75
Declaration of mtsComponent.
Definition: mtsIntervalStatistics.h:45
mtsFunctionRead GetPositionCartesian
Definition: mtsIntuitiveDaVinciArmQtWidget.h:71
Definition: mtsQtWidgetIntervalStatistics.h:32
Cartesian Velocity move parameters.
Definition: vctQtWidgetFrame.h:43
~mtsIntuitiveDaVinciArmQtWidget()
Definition: mtsIntuitiveDaVinciArmQtWidget.h:47
mtsFunctionRead GetVelocityJoint
Definition: mtsIntuitiveDaVinciArmQtWidget.h:74
Definition: prmVelocityCartesianGet.h:38
Definition: mtsComponent.h:150
void Configure(const std::string &filename="")
struct mtsIntuitiveDaVinciArmQtWidget::ArmStruct Arm
Joint velocity query parameters.
const double cmn_ms
Definition: cmnUnits.h:190
mtsFunctionRead GetVelocityCartesian
Definition: mtsIntuitiveDaVinciArmQtWidget.h:72
mtsIntuitiveDaVinciArmQtWidget(const std::string &componentName, double periodInSeconds=50.0 *cmn_ms)
Definition: mtsIntuitiveDaVinciArmQtWidget.h:40
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76
Definition: mtsIntuitiveDaVinciArmQtWidget.h:70
Definition: prmPositionCartesianGet.h:37