Rev | Line | |
---|
[4] | 1 | #ifndef _QTRANSFORMMATRIXWIDGET_H_ |
---|
| 2 | #define _QTRANSFORMMATRIXWIDGET_H_ |
---|
| 3 | |
---|
| 4 | #include <QtGui> |
---|
| 5 | |
---|
| 6 | #include "math/TransformMatrix.h" |
---|
| 7 | |
---|
| 8 | #include "ui_qtransformmatrixwidget.h" |
---|
| 9 | |
---|
| 10 | namespace projection |
---|
| 11 | { |
---|
| 12 | |
---|
| 13 | class QTransformMatrixWidget : public QWidget |
---|
| 14 | { |
---|
| 15 | Q_OBJECT |
---|
| 16 | |
---|
| 17 | public: |
---|
| 18 | |
---|
| 19 | QTransformMatrixWidget(QWidget* pParent=0, Qt::WFlags flag=0); |
---|
| 20 | ~QTransformMatrixWidget(); |
---|
| 21 | |
---|
| 22 | void setMatrix(const TransformMatrix& matrix); |
---|
| 23 | TransformMatrix getMatrix() const; |
---|
| 24 | |
---|
| 25 | void setUseScale(bool bUseScale); |
---|
| 26 | |
---|
| 27 | void clear(); |
---|
| 28 | |
---|
| 29 | signals: |
---|
| 30 | |
---|
| 31 | void matrixChanged(const TransformMatrix& matrix); |
---|
| 32 | |
---|
| 33 | private slots: |
---|
| 34 | |
---|
| 35 | void on_posXEdit_editingFinished(); |
---|
| 36 | void on_posYEdit_editingFinished(); |
---|
| 37 | void on_posZEdit_editingFinished(); |
---|
| 38 | void on_rotHEdit_editingFinished(); |
---|
| 39 | void on_rotPEdit_editingFinished(); |
---|
| 40 | void on_rotREdit_editingFinished(); |
---|
| 41 | void on_scaleXEdit_editingFinished(); |
---|
| 42 | void on_scaleYEdit_editingFinished(); |
---|
| 43 | void on_scaleZEdit_editingFinished(); |
---|
| 44 | |
---|
| 45 | void checkValueChanged(); |
---|
| 46 | |
---|
| 47 | private: |
---|
| 48 | |
---|
| 49 | Ui::QTransformMatrixWidget ui; |
---|
| 50 | |
---|
| 51 | TransformMatrix m_matrix; |
---|
| 52 | bool m_bStopSlot; //?? |
---|
| 53 | }; |
---|
| 54 | |
---|
| 55 | }; // projection |
---|
| 56 | |
---|
| 57 | #endif // _QTRANSFORMMATRIXWIDGET_H_ |
---|
Note: See
TracBrowser
for help on using the repository browser.