Rev | Line | |
---|
[4] | 1 | #ifndef _QPROJECTIONMATRIXWIDGET_H_ |
---|
| 2 | #define _QPROJECTIONMATRIXWIDGET_H_ |
---|
| 3 | |
---|
| 4 | #include <QtGui> |
---|
| 5 | |
---|
| 6 | #include "math/ProjectionMatrix.h" |
---|
| 7 | |
---|
| 8 | #include "ui_qprojectionmatrixwidget.h" |
---|
| 9 | |
---|
| 10 | namespace projection |
---|
| 11 | { |
---|
| 12 | |
---|
| 13 | class QProjectionMatrixWidget : public QWidget |
---|
| 14 | { |
---|
| 15 | Q_OBJECT |
---|
| 16 | |
---|
| 17 | public: |
---|
| 18 | |
---|
| 19 | QProjectionMatrixWidget(QWidget* pParent=0, Qt::WFlags flag=0); |
---|
| 20 | ~QProjectionMatrixWidget(); |
---|
| 21 | |
---|
| 22 | void setMatrix(const ProjectionMatrix& matrix); |
---|
| 23 | ProjectionMatrix getMatrix() const; |
---|
| 24 | |
---|
| 25 | void clear(); |
---|
| 26 | |
---|
| 27 | signals: |
---|
| 28 | |
---|
| 29 | void matrixChanged(const ProjectionMatrix& matrix); |
---|
| 30 | |
---|
| 31 | private slots: |
---|
| 32 | |
---|
| 33 | void on_fovEdit_editingFinished(); |
---|
| 34 | void on_aspectRatioEdit_editingFinished(); |
---|
| 35 | void on_nearEdit_editingFinished(); |
---|
| 36 | void on_farEdit_editingFinished(); |
---|
| 37 | void on_offaxisXEdit_editingFinished(); |
---|
| 38 | void on_offaxisYEdit_editingFinished(); |
---|
| 39 | void checkValueChanged(); |
---|
| 40 | |
---|
| 41 | private: |
---|
| 42 | |
---|
| 43 | Ui::QProjectionMatrixWidget ui; |
---|
| 44 | |
---|
| 45 | ProjectionMatrix m_matrix; |
---|
| 46 | bool m_bStopSlot; //?? |
---|
| 47 | }; |
---|
| 48 | |
---|
| 49 | }; // projection |
---|
| 50 | |
---|
| 51 | #endif // _QPROJECTIONMATRIXWIDGET_H_ |
---|
Note: See
TracBrowser
for help on using the repository browser.