cisst-saw
Loading...
Searching...
No Matches
prmForceCartesianGetQtWidget.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: 2017-12-12
7
8 (C) Copyright 2017-2023 Johns Hopkins University (JHU), All Rights Reserved.
9
10--- begin cisst license - do not edit ---
11
12This software is provided "as is" under an open source license, with
13no warranty. The complete license can be found in license.txt and
14http://www.cisst.org/cisst/license.txt.
15
16--- end cisst license ---
17*/
18
19#ifndef _prmForceCartesianGetQtWidget_h
20#define _prmForceCartesianGetQtWidget_h
21
26
27#include <QWidget>
28
29
30// Always include last
32
33class QLabel;
34
36{
37 Q_OBJECT;
38
39public:
42
43 inline void setupUi(void) {};
44
47 void SetValue(const prmForceCartesianGet & newValue);
48
49protected:
52 QLabel * QLTime; // time and valid using background color
53};
54
55// Widget with a component, can be used directly with cisstMultiTask component manager
57{
58 Q_OBJECT;
60
61public:
62 prmForceCartesianGetQtWidgetComponent(const std::string & componentName, double periodInSeconds = 50.0 * cmn_ms);
64
65 inline void Configure(const std::string & CMN_UNUSED(filename) = "") override {};
66 void Startup(void) override;
67 inline void Cleanup(void) override {};
68
69private slots:
70 void timerEvent(QTimerEvent * event) override;
71
72private:
73 int TimerPeriodInMilliseconds;
74 mtsFunctionRead measured_cf;
75 prmForceCartesianGet m_measured_cf;
76};
77
79
80#endif // _prmForceCartesianGetQtWidget_h
mtsComponent(void)
Definition mtsFunctionRead.h:37
Definition prmForceCartesianGet.h:35
Definition prmForceCartesianGetQtWidget.h:57
void Configure(const std::string &CMN_UNUSED(filename)="") override
Definition prmForceCartesianGetQtWidget.h:65
prmForceCartesianGetQtWidgetComponent(const std::string &componentName, double periodInSeconds=50.0 *cmn_ms)
void Cleanup(void) override
Definition prmForceCartesianGetQtWidget.h:67
~prmForceCartesianGetQtWidgetComponent()
Definition prmForceCartesianGetQtWidget.h:63
QLabel * QLReferenceFrame
Definition prmForceCartesianGetQtWidget.h:51
vctForceTorqueQtWidget * QForce
Definition prmForceCartesianGetQtWidget.h:50
void setupUi(void)
Definition prmForceCartesianGetQtWidget.h:43
void SetValue(const prmForceCartesianGet &newValue)
~prmForceCartesianGetQtWidget(void)
Definition prmForceCartesianGetQtWidget.h:41
QLabel * QLTime
Definition prmForceCartesianGetQtWidget.h:52
Definition vctForceTorqueQtWidget.h:41
const int CMN_DYNAMIC_CREATION_ONEARG
Definition cmnClassRegisterMacros.h:330
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition cmnClassRegisterMacros.h:199
#define CISST_EXPORT
Definition cmnExportMacros.h:50
#define CMN_LOG_ALLOW_DEFAULT
Definition cmnLogLoD.h:76
#define CMN_UNUSED(argument)
Definition cmnPortability.h:497
Declaration of units and unit conversion methods.
const double cmn_ms
Definition cmnUnits.h:190
Declaration of mtsComponent.
Cartesian force get parameters.