src/widgets/matrixeditor.h

changeset 1403
7a2d84112983
parent 1391
5fa4bf1fc781
child 1406
37fffb682d2f
equal deleted inserted replaced
1402:8bbf2af8c3f5 1403:7a2d84112983
8 class MatrixEditor : public QWidget 8 class MatrixEditor : public QWidget
9 { 9 {
10 Q_OBJECT 10 Q_OBJECT
11 11
12 public: 12 public:
13 MatrixEditor( 13 MatrixEditor(const QMatrix4x4& matrix = {}, QWidget* parent = nullptr);
14 const Matrix& matrix = Matrix::identity,
15 const Vertex& position = {0, 0, 0},
16 QWidget* parent = nullptr
17 );
18 MatrixEditor(QWidget* parent); 14 MatrixEditor(QWidget* parent);
19 ~MatrixEditor(); 15 ~MatrixEditor();
20 16
21 Vertex position() const; 17 QMatrix4x4 matrix() const;
22 Matrix matrix() const; 18 void setMatrix(const QMatrix4x4& matrix);
23 void setPosition(const Vertex& position);
24 void setMatrix(const Matrix& matrix);
25 19
26 private slots: 20 private slots:
27 void scalingChanged(); 21 void scalingChanged();
28 void matrixChanged(); 22 void matrixChanged();
29 23

mercurial