-
Notifications
You must be signed in to change notification settings - Fork 7
/
askTransformDialog.h
67 lines (52 loc) · 1.49 KB
/
askTransformDialog.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
/* OpenBRF -- by marco tarini. Provided under GNU General Public License */
#ifndef ASKTRANSFORMDIALOG_H
#define ASKTRANSFORMDIALOG_H
#include <QDialog>
namespace Ui {
class AskTransformDialog;
}
class QAbstractButton;
class AskTransformDialog : public QDialog {
Q_OBJECT
public:
AskTransformDialog(QWidget *parent = 0);
~AskTransformDialog();
float* matrix;
bool* applyToAll;
bool* applyToAllFrames;
void setApplyToAllLoc(bool *loc);
void setSensitivityOne(double sens); // sets sensibility of transform when moving a single object
void setSensitivityAll(double sens); // ... or when moving multiple objects
void setOneFrameOnly(bool );
void setMultiObj(bool);
void applyAlignments();
void setBoundingBox(float* minv, float * maxv);
protected:
void changeEvent(QEvent *e);
float bb_min[3], bb_max[3];
public slots:
int exec();
void reset();
private:
Ui::AskTransformDialog *ui;
double sensitivityOne, sensitivityAll;
private slots:
void update();
void updateSensitivity();
void onAlignmentLX(bool);
void onAlignmentLY(bool);
void onAlignmentLZ(bool);
void onAlignmentMX(bool);
void onAlignmentMY(bool);
void onAlignmentMZ(bool);
void onAlignmentRX(bool);
void onAlignmentRY(bool);
void onAlignmentRZ(bool);
void disableAlignX();
void disableAlignY();
void disableAlignZ();
void onButton(QAbstractButton*);
signals:
void changed();
};
#endif // ASKTRANSFORMDIALOG_H