source: projectionDesigner/trunk/projdesigner/include/gui/QProjectionMatrixWidget.h @ 190

Last change on this file since 190 was 4, checked in by Torben Dannhauer, 15 years ago
File size: 1015 bytes
RevLine 
[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
10namespace projection
11{
12
13class QProjectionMatrixWidget : public QWidget
14{
15    Q_OBJECT
16
17public:
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
27signals:
28
29    void matrixChanged(const ProjectionMatrix& matrix);
30
31private 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
41private:
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.