Widget for displaying a single 2D slice of image data with a slice navigation slider.
More...
#include <QmitkSliceWidget.h>
Widget for displaying a single 2D slice of image data with a slice navigation slider.
Combines a QmitkRenderWindow with a QmitkSliceNavigationWidget and an optional level window widget. Supports axial, coronal, and sagittal views with a right-click popup menu for switching. The widget uses a standalone data storage.
- See also
- QmitkRenderWindow, QmitkSliceNavigationWidget, mitk::SliceNavigationController
Definition at line 41 of file QmitkSliceWidget.h.
◆ QmitkSliceWidget()
| QmitkSliceWidget::QmitkSliceWidget |
( |
QWidget * |
parent = nullptr, |
|
|
const char * |
name = nullptr, |
|
|
Qt::WindowFlags |
f = {} |
|
) |
| |
Construct the slice widget.
- Parameters
-
| [in] | parent | The parent widget. |
| [in] | name | The object name. |
| [in] | f | Window flags. |
◆ ~QmitkSliceWidget()
| QmitkSliceWidget::~QmitkSliceWidget |
( |
| ) |
|
|
override |
◆ ChangeView
| void QmitkSliceWidget::ChangeView |
( |
QAction * |
val | ) |
|
|
slot |
Change the view direction from the popup menu.
- Parameters
-
| [in] | val | The menu action ("Axial", "Coronal", or "Sagittal"). |
◆ GetCameraRotationController()
◆ GetController()
◆ GetDataStorage()
Get the current data storage.
- Returns
- Pointer to the StandaloneDataStorage.
◆ GetRenderer()
Get the VTK prop renderer used for rendering.
- Returns
- Pointer to the VtkPropRenderer.
◆ GetRenderWindow()
◆ GetSelectionFrame()
| QFrame* QmitkSliceWidget::GetSelectionFrame |
( |
| ) |
|
Get the selection frame widget.
- Returns
- Pointer to the QFrame.
◆ GetSliceNavigationController()
◆ GetSliceNavigationWidget()
◆ InitWidget
Initialize the widget with the given view direction.
- Parameters
-
| [in] | viewDirection | The anatomical plane to display. |
◆ IsLevelWindowEnabled()
| bool QmitkSliceWidget::IsLevelWindowEnabled |
( |
| ) |
|
Check whether the level window widget is enabled.
- Returns
- True if the level window is enabled.
◆ mousePressEvent()
| void QmitkSliceWidget::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
override |
Handle right-click to show the view direction popup menu.
- Parameters
-
◆ SetData [1/4]
| void QmitkSliceWidget::SetData |
( |
mitk::DataNode::Pointer |
node | ) |
|
|
slot |
Set the data node to display using the current view direction.
- Parameters
-
| [in] | node | The data node containing image data. |
◆ SetData [2/4]
Set the data node to display with a specified view direction.
- Parameters
-
| [in] | node | The data node containing image data. |
| [in] | view | The anatomical plane. |
◆ SetData [3/4]
| void QmitkSliceWidget::SetData |
( |
mitk::DataStorage::SetOfObjects::ConstIterator |
it | ) |
|
|
slot |
Set the data node to display using the current view direction.
- Parameters
-
| [in] | it | Iterator pointing to a data node in the data storage. |
◆ SetData [4/4]
| void QmitkSliceWidget::SetData |
( |
mitk::DataStorage::SetOfObjects::ConstIterator |
it, |
|
|
mitk::AnatomicalPlane |
view |
|
) |
| |
|
slot |
Set the data node to display with a specified view direction.
- Parameters
-
| [in] | it | Iterator pointing to a data node in the data storage. |
| [in] | view | The anatomical plane (Axial, Coronal, Sagittal). |
◆ SetDataStorage()
| void QmitkSliceWidget::SetDataStorage |
( |
mitk::StandaloneDataStorage::Pointer |
storage | ) |
|
Set the data storage for this widget.
- Parameters
-
| [in] | storage | The standalone data storage. |
◆ SetLevelWindowEnabled
| void QmitkSliceWidget::SetLevelWindowEnabled |
( |
bool |
enable | ) |
|
|
slot |
Enable or disable the level window widget.
- Parameters
-
| [in] | enable | True to enable. |
◆ setPopUpEnabled()
| void QmitkSliceWidget::setPopUpEnabled |
( |
bool |
b | ) |
|
Enable or disable the right-click view direction popup menu.
- Parameters
-
| [in] | b | True to enable the popup. |
◆ UpdateGL()
| void QmitkSliceWidget::UpdateGL |
( |
| ) |
|
Force a camera fit and render update.
◆ wheelEvent
| void QmitkSliceWidget::wheelEvent |
( |
QWheelEvent * |
e | ) |
|
|
overrideslot |
Handle mouse wheel to navigate slices.
- Parameters
-
◆ m_RenderWindow
◆ m_View
The documentation for this class was generated from the following file: