Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkStandardViews Class Reference

Widget displaying a clickable image for selecting standard anatomical view directions. More...

#include <QmitkStandardViews.h>

Inheritance diagram for QmitkStandardViews:
Collaboration diagram for QmitkStandardViews:

Signals

void StandardViewDefined (mitk::CameraController::StandardView view)
 Emitted when a standard view hotspot is clicked. More...
 

Public Member Functions

 QmitkStandardViews (QWidget *parent=nullptr, Qt::WindowFlags f={})
 Construct the standard views widget. More...
 
 ~QmitkStandardViews () override
 Destructor. More...
 
void SetCameraController (mitk::CameraController *controller)
 Set the camera controller to apply standard views to. More...
 
void SetCameraControllerFromRenderWindow (vtkRenderWindow *window)
 Set the camera controller by looking it up from a render window. More...
 

Protected Slots

void hotspotClicked (const QString &s)
 

Protected Attributes

QClickableLabel * m_ClickablePicture
 
mitk::CameraController::Pointer m_CameraController
 

Detailed Description

Widget displaying a clickable image for selecting standard anatomical view directions.

Shows a small picture with labeled hotspots (Left, Right, Top, Bottom, Front, Back). Clicking a hotspot sets the corresponding standard view on the assigned mitk::CameraController and emits the StandardViewDefined signal.

See also
mitk::CameraController, QClickableLabel

Definition at line 34 of file QmitkStandardViews.h.

Constructor & Destructor Documentation

◆ QmitkStandardViews()

QmitkStandardViews::QmitkStandardViews ( QWidget *  parent = nullptr,
Qt::WindowFlags  f = {} 
)

Construct the standard views widget.

Parameters
[in]parentThe parent widget.
[in]fWindow flags.

◆ ~QmitkStandardViews()

QmitkStandardViews::~QmitkStandardViews ( )
override

Destructor.

Member Function Documentation

◆ hotspotClicked

void QmitkStandardViews::hotspotClicked ( const QString &  s)
protectedslot

◆ SetCameraController()

void QmitkStandardViews::SetCameraController ( mitk::CameraController *  controller)

Set the camera controller to apply standard views to.

Parameters
[in]controllerThe mitk::CameraController instance.

◆ SetCameraControllerFromRenderWindow()

void QmitkStandardViews::SetCameraControllerFromRenderWindow ( vtkRenderWindow *  window)

Set the camera controller by looking it up from a render window.

Parameters
[in]windowThe vtkRenderWindow whose camera controller to use.

◆ StandardViewDefined

void QmitkStandardViews::StandardViewDefined ( mitk::CameraController::StandardView  view)
signal

Emitted when a standard view hotspot is clicked.

Parameters
[in]viewThe selected standard view direction.

Member Data Documentation

◆ m_CameraController

mitk::CameraController::Pointer QmitkStandardViews::m_CameraController
protected

Definition at line 75 of file QmitkStandardViews.h.

◆ m_ClickablePicture

QClickableLabel* QmitkStandardViews::m_ClickablePicture
protected

Definition at line 73 of file QmitkStandardViews.h.


The documentation for this class was generated from the following file: