cisst-saw
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp
cisst-saw
cisst
cisstVector
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
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
#ifndef _vctForceTorque2DQtWidget_h
20
#define _vctForceTorque2DQtWidget_h
21
22
#include <
cisstVector/vctForwardDeclarationsQt.h
>
23
#include <
cisstVector/vctPlot2DBase.h
>
24
#include <
cisstVector/vctFixedSizeVectorTypes.h
>
25
26
#include <QWidget>
27
28
class
QLabel;
29
class
QSignalMapper;
30
class
QCheckBox;
31
32
// Always include last
33
#include <
cisstVector/vctExportQt.h
>
34
35
class
CISST_EXPORT
vctForceTorque2DQtWidget
:
public
QWidget
36
{
37
Q_OBJECT;
38
39
public
:
40
vctForceTorque2DQtWidget
(
void
);
41
~vctForceTorque2DQtWidget
(){}
42
43
void
SetValue
(
const
double
& time,
const
vct3
& force,
const
vct3
& torque);
44
45
protected
:
46
virtual
void
closeEvent
(QCloseEvent * event);
47
48
private
:
49
void
setupUi(
void
);
50
51
vctPlot2DOpenGLQtWidget
* QFTPlot;
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
64
private
slots:
65
void
SlotScaleIndex(
int
newAxis);
66
void
SlotVisibleSignal(
int
);
67
};
68
69
CMN_DECLARE_SERVICES_INSTANTIATION
(
vctForceTorque2DQtWidget
);
70
71
#endif
// _vctForceTorque2DQtWidget_h
vctForceTorque2DQtWidget
Definition
vctForceTorque2DQtWidget.h:36
vctForceTorque2DQtWidget::SetValue
void SetValue(const double &time, const vct3 &force, const vct3 &torque)
vctForceTorque2DQtWidget::~vctForceTorque2DQtWidget
~vctForceTorque2DQtWidget()
Definition
vctForceTorque2DQtWidget.h:41
vctForceTorque2DQtWidget::vctForceTorque2DQtWidget
vctForceTorque2DQtWidget(void)
vctForceTorque2DQtWidget::closeEvent
virtual void closeEvent(QCloseEvent *event)
vctPlot2DBase::Scale
Definition
vctPlot2DBase.h:184
vctPlot2DBase::Signal
Definition
vctPlot2DBase.h:55
vctPlot2DOpenGLQtWidget
Definition
vctPlot2DOpenGLQtWidget.h:29
CMN_DECLARE_SERVICES_INSTANTIATION
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition
cmnClassRegisterMacros.h:199
CISST_EXPORT
#define CISST_EXPORT
Definition
cmnExportMacros.h:50
vctExportQt.h
Macros to export the symbols of cisstVectorQt (in a Dll).
vctFixedSizeVectorTypes.h
Typedef for fixed size vectors.
vct3
vctFixedSizeVector< double, 3 > vct3
Definition
vctFixedSizeVectorTypes.h:46
vctForwardDeclarationsQt.h
vctPlot2DBase.h
Generated by
1.18.0