-
Notifications
You must be signed in to change notification settings - Fork 1
/
restrictaxesdialog.h
74 lines (64 loc) · 1.71 KB
/
restrictaxesdialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*!
* \file restrictaxesdialog.h
* \author Simon Coakley
* \date 2012
* \copyright Copyright (c) 2012 University of Sheffield
* \brief Header file for restrict axes dialog
*/
#ifndef RESTRICTAXESDIALOG_H_
#define RESTRICTAXESDIALOG_H_
#include <QDialog>
#include "./dimension.h"
namespace Ui {
class RestrictAxesDialog;
}
class RestrictAxesDialog : public QDialog {
Q_OBJECT
public:
explicit RestrictAxesDialog(Dimension * rd, Dimension * ad,
Dimension * rad, double * r, QWidget *parent = 0);
~RestrictAxesDialog();
signals:
void updateRestrictDimensions(Dimension);
void closed();
public slots:
void updatedAgentDimensions();
private slots:
void updateXMin(double);
void updateXMax(double);
void updateYMin(double);
void updateYMax(double);
void updateZMin(double);
void updateZMax(double);
void updateXMinS(int);
void updateXMaxS(int);
void updateYMinS(int);
void updateYMaxS(int);
void updateZMinS(int);
void updateZMaxS(int);
protected:
void closeEvent(QCloseEvent *event);
private:
void enableXMin(bool);
void enableXMax(bool);
void enableYMin(bool);
void enableYMax(bool);
void enableZMin(bool);
void enableZMax(bool);
Ui::RestrictAxesDialog *ui;
Dimension * restrictDimension;
Dimension * restrictAgentDimension;
Dimension * agentDimension;
double * ratio;
double xStep, xStart, xEnd;
double yStep, yStart, yEnd;
double zStep, zStart, zEnd;
bool xminBlock, xmaxBlock;
bool yminBlock, ymaxBlock;
bool zminBlock, zmaxBlock;
double xStartK, xEndK;
double yStartK, yEndK;
double zStartK, zEndK;
bool firstDim;
};
#endif // RESTRICTAXESDIALOG_H_