Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkSliceWidget.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkSliceWidget_h
14 #define QmitkSliceWidget_h
15 
17 #include "ui_QmitkSliceWidget.h"
18 
19 #include "QmitkRenderWindow.h"
20 #include "mitkDataStorage.h"
23 #include "mitkSlicedGeometry3D.h"
25 #include <QWidget>
26 
27 class MITKQTWIDGETSEXT_EXPORT QmitkSliceWidget : public QWidget, public Ui::QmitkSliceWidgetUi
28 {
29  Q_OBJECT
30 
31 public:
32  QmitkSliceWidget(QWidget *parent = nullptr, const char *name = nullptr, Qt::WindowFlags f = nullptr);
33 
34  mitk::VtkPropRenderer *GetRenderer();
35 
36  QFrame *GetSelectionFrame();
37 
38  void UpdateGL();
39 
40  void mousePressEvent(QMouseEvent *e) override;
41 
42  void setPopUpEnabled(bool b);
43 
44  void SetDataStorage(mitk::StandaloneDataStorage::Pointer storage);
45 
46  mitk::StandaloneDataStorage *GetDataStorage();
47 
48  QmitkSliceNavigationWidget* GetSliceNavigationWidget();
49 
50  bool IsLevelWindowEnabled();
51 
52  QmitkRenderWindow *GetRenderWindow();
53 
54  mitk::SliceNavigationController *GetSliceNavigationController() const;
55 
56  mitk::CameraRotationController *GetCameraRotationController() const;
57 
58  mitk::BaseController *GetController() const;
59 
60 public slots:
61 
62  void SetData(mitk::DataStorage::SetOfObjects::ConstIterator it);
63 
64  void SetData(mitk::DataStorage::SetOfObjects::ConstIterator it, mitk::AnatomicalPlane view);
65 
66  void SetData(mitk::DataNode::Pointer node);
67 
68  void SetData(mitk::DataNode::Pointer node, mitk::AnatomicalPlane view);
69 
70  void InitWidget(mitk::AnatomicalPlane viewDirection);
71 
72  void wheelEvent(QWheelEvent *e) override;
73 
74  void ChangeView(QAction *val);
75 
76  void SetLevelWindowEnabled(bool enable);
77 
78 protected:
81 
82 private:
83  bool popUpEnabled;
85  mitk::SlicedGeometry3D::Pointer m_SlicedGeometry;
87 
88  QMenu *popUp;
89 };
90 
91 #endif
MITKQTWIDGETSEXT_EXPORT
#define MITKQTWIDGETSEXT_EXPORT
Definition: MitkQtWidgetsExtExports.h:15
mitk::StandaloneDataStorage
Data management class that handles 'was created by' relations.
Definition: mitkStandaloneDataStorage.h:37
QmitkSliceWidget
Definition: QmitkSliceWidget.h:27
mitkDataStorage.h
QmitkSliceNavigationWidget.h
itk::SmartPointer< Self >
QmitkRenderWindow
MITK implementation of the QVTKWidget.
Definition: QmitkRenderWindow.h:38
mitk::VtkPropRenderer
VtkPropRenderer.
Definition: mitkVtkPropRenderer.h:55
mitk::BaseController
Baseclass for renderer slice-/camera-/time-control.
Definition: mitkBaseController.h:35
mitk::SliceNavigationController
Controls the selection of the slice the associated BaseRenderer will display.
Definition: mitkSliceNavigationController.h:130
mitkStandaloneDataStorage.h
mitk::AnatomicalPlane
AnatomicalPlane
Definition: mitkAnatomicalPlanes.h:18
QmitkSliceWidget::m_RenderWindow
QmitkRenderWindow * m_RenderWindow
Definition: QmitkSliceWidget.h:79
QmitkSliceNavigationWidget
Definition: QmitkSliceNavigationWidget.h:24
mitkSlicedGeometry3D.h
mitk::CameraRotationController
Definition: mitkCameraRotationController.h:24
mitkSliceNavigationController.h
MitkQtWidgetsExtExports.h
QmitkSliceWidget::m_View
mitk::AnatomicalPlane m_View
Definition: QmitkSliceWidget.h:80
QmitkRenderWindow.h