Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkStandardViews.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 QmitkStandardViews_h
14 #define QmitkStandardViews_h
15 
17 #include <mitkCameraController.h>
18 #include <mitkCommon.h>
19 
20 #include <QWidget>
21 
22 class QClickableLabel;
23 class vtkRenderWindow;
24 
35 {
36  Q_OBJECT
37 
38 public:
44  QmitkStandardViews(QWidget *parent = nullptr, Qt::WindowFlags f = {});
45 
47  ~QmitkStandardViews() override;
48 
54 
59  void SetCameraControllerFromRenderWindow(vtkRenderWindow *window);
60 
61 signals:
67 
68 protected slots:
69 
70  void hotspotClicked(const QString &s);
71 
72 protected:
74 
75  mitk::CameraController::Pointer m_CameraController;
76 };
77 
78 #endif
#define MITKQTWIDGETSEXT_EXPORT
A QLabel with named rectangular hotspots that emit signals when clicked.
Widget displaying a clickable image for selecting standard anatomical view directions.
void SetCameraControllerFromRenderWindow(vtkRenderWindow *window)
Set the camera controller by looking it up from a render window.
mitk::CameraController::Pointer m_CameraController
QClickableLabel * m_ClickablePicture
void hotspotClicked(const QString &s)
QmitkStandardViews(QWidget *parent=nullptr, Qt::WindowFlags f={})
Construct the standard views widget.
void StandardViewDefined(mitk::CameraController::StandardView view)
Emitted when a standard view hotspot is clicked.
~QmitkStandardViews() override
Destructor.
void SetCameraController(mitk::CameraController *controller)
Set the camera controller to apply standard views to.
Controls the camera used by the associated BaseRenderer.
StandardView
Enumeration of standard anatomical viewing directions.