NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
QmitkStereoImageAndCameraSelectionWidget.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 QmitkStereoImageAndCameraSelectionWidget_h
16 #define QmitkStereoImageAndCameraSelectionWidget_h
17 
18 #include "niftkIGIGuiExports.h"
19 #include "ui_QmitkStereoImageAndCameraSelectionWidget.h"
20 #include <QWidget>
21 #include <mitkImage.h>
23 #include <mitkDataStorage.h>
24 
29 class NIFTKIGIGUI_EXPORT QmitkStereoImageAndCameraSelectionWidget : public QWidget, public Ui_QmitkStereoImageAndCameraSelectionWidget
30 {
31  Q_OBJECT
32 
33 public:
34 
35  QmitkStereoImageAndCameraSelectionWidget(QWidget *parent = 0);
37 
38  mitk::Image* GetLeftImage() const;
39  mitk::DataNode* GetLeftNode() const;
40  mitk::Image* GetRightImage() const;
41  mitk::DataNode* GetRightNode() const;
42  niftk::CoordinateAxesData* GetCameraTransform() const;
43  mitk::DataNode* GetCameraNode() const;
44  void SetCameraNode(mitk::DataNode* node);
45 
46  void SetDataStorage(const mitk::DataStorage* dataStorage);
47  void UpdateNodeNameComboBox();
48 
49  void SetRightChannelEnabled(const bool& isEnabled);
50  void SetLeftChannelEnabled(const bool& isEnabled);
51 
52 private slots:
53  void OnComboBoxIndexChanged(int index);
54 
55 private:
56  mitk::DataStorage::Pointer m_DataStorage;
57 };
58 
59 #endif // QmitkStereoImageAndCameraSelectionWidget_h
Class to enable the data to represent coordinate axes to be added as a mitk::BaseData to the mitk::Da...
Definition: niftkCoordinateAxesData.h:33
GLuint index
Definition: glew.h:1798
Used to group widgets to select a left and right image and a camera to world transformation.
Definition: QmitkStereoImageAndCameraSelectionWidget.h:29