NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkVLStandardDisplayWidget.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 niftkVLStandardDisplayWidget_h
16 #define niftkVLStandardDisplayWidget_h
17 
18 // Note:
19 // The None constant is defined by Xlib.h and it is also declared as an enum
20 // in qstyleoption.h. This causes a compile error with gcc. As a workaround,
21 // we undefine the symbol before including the Qt headers. This works only
22 // if cotire is switched off.
23 #ifdef None
24 #undef None
25 #endif
26 
27 #include "ui_niftkVLStandardDisplayWidget.h"
28 #include "niftkVLExports.h"
29 #include <QWidget>
30 #include <mitkDataStorage.h>
31 
32 class QHBoxLayout;
33 
34 namespace niftk
35 {
36 
37 class VLWidget;
38 
44 class NIFTKVL_EXPORT VLStandardDisplayWidget : public QWidget, public Ui_VLStandardDisplayWidget
45 {
46 
47  Q_OBJECT
48 
49 public:
50 
51  VLStandardDisplayWidget(QWidget *parent);
52  virtual ~VLStandardDisplayWidget();
53 
54  void SetBackgroundColour(unsigned int aabbggrr);
55  void SetDataStorage(mitk::DataStorage* storage);
56 
57 private slots:
58 
59 private:
60 
61  VLStandardDisplayWidget(const VLStandardDisplayWidget&); // Purposefully not implemented.
62  void operator=(const VLStandardDisplayWidget&); // Purposefully not implemented.
63 
67  void DeRegisterDataStorageListeners();
68 
72  void NodeChanged(const mitk::DataNode* node);
73 
74  mitk::DataStorage::Pointer m_DataStorage;
75 
76  VLWidget* m_AxialViewer;
77  VLWidget* m_SagittalViewer;
78  VLWidget* m_CoronalViewer;
79  VLWidget* m_3DViewer;
80 };
81 
82 } // end namespace
83 
84 #endif
Contains 4 coordinated VL views for radiological viewing purposes (e.g. EpiNav project).
Definition: niftkVLStandardDisplayWidget.h:44
A QGLWidget containing a niftk::VLSceneView.
Definition: niftkVLWidget.h:48
Definition: niftkExceptionObject.h:21