cisst-saw
Loading...
Searching...
No Matches
vctForceTorque2DQtWidget.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, Dorothy Hu
6 Created on: 2017-01-20
7
8 (C) Copyright 2017-2021 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 _vctForceTorque2DQtWidget_h
20#define _vctForceTorque2DQtWidget_h
21
25
26#include <QWidget>
27
28class QLabel;
29class QSignalMapper;
30class QCheckBox;
31
32// Always include last
34
36{
37 Q_OBJECT;
38
39public:
42
43 void SetValue(const double & time, const vct3 & force, const vct3 & torque);
44
45protected:
46 virtual void closeEvent(QCloseEvent * event);
47
48private:
49 void setupUi(void);
50
52 // signals 0, 1, 2 are for x, y, z. 3 is for norm and 4 for zero
53 vctPlot2DBase::Signal * mSignals[2][5];
54 bool mVisibleSignals[2][5];
55
56 // scale 0 is for forces, 1 is for torques
57 vctPlot2DBase::Scale * mScales[2];
58
59 int mScaleIndex; // 0 for forces, 1 for torques
60
61 QSignalMapper * mSignalMapper;
62 QCheckBox * mCheckBoxes[5];
63
64private slots:
65 void SlotScaleIndex(int newAxis);
66 void SlotVisibleSignal(int);
67};
68
70
71#endif // _vctForceTorque2DQtWidget_h
Definition vctForceTorque2DQtWidget.h:36
void SetValue(const double &time, const vct3 &force, const vct3 &torque)
~vctForceTorque2DQtWidget()
Definition vctForceTorque2DQtWidget.h:41
virtual void closeEvent(QCloseEvent *event)
Definition vctPlot2DBase.h:184
Definition vctPlot2DBase.h:55
Definition vctPlot2DOpenGLQtWidget.h:29
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition cmnClassRegisterMacros.h:199
#define CISST_EXPORT
Definition cmnExportMacros.h:50
Macros to export the symbols of cisstVectorQt (in a Dll).
Typedef for fixed size vectors.
vctFixedSizeVector< double, 3 > vct3
Definition vctFixedSizeVectorTypes.h:46