NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
QmitkMatrixWidget.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef QmitkMatrixWidget_h
16 #define QmitkMatrixWidget_h
17 
18 #include "niftkIGIGuiExports.h"
19 #include "ui_QmitkMatrixWidget.h"
20 #include <QWidget>
21 #include <vtkSmartPointer.h>
22 #include <vtkMatrix4x4.h>
23 
28 class NIFTKIGIGUI_EXPORT QmitkMatrixWidget : public QWidget, public Ui_QmitkMatrixWidget
29 {
30  Q_OBJECT
31 
32 public:
33 
34  QmitkMatrixWidget(QWidget *parent = 0);
35  virtual ~QmitkMatrixWidget();
36 
37  void SynchroniseWidgetWithMatrix();
38 
39  void SetClearButtonVisible(const bool& isVisible);
40  void SetLoadButtonVisible(const bool& isVisible);
41 
42  void SetMatrix(const vtkMatrix4x4& matrix);
43 
47  vtkSmartPointer<vtkMatrix4x4> CloneMatrix() const;
48 
49 signals:
50  void MatrixChanged();
51 
52 private slots:
53  void OnClearButtonPressed();
54  void OnLoadButtonPressed();
55 
56 private:
57  vtkSmartPointer<vtkMatrix4x4> m_Matrix;
58 };
59 
60 #endif // QmitkMatrixWidget_h
GLuint GLenum matrix
Definition: glew.h:12775
Widget to provide a matrix that can be cleared, and re-loaded from file.
Definition: QmitkMatrixWidget.h:28