Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
The 'QmitkAbstractMultiWidget' is a 'QWidget' that can be subclassed to display multiple render windows at once. Render windows can dynamically be added and removed to change the layout of the multi widget. A subclass of this multi widget can be used inside a 'QmitkAbstractMultiWidgetEditor'. More...
#include <QmitkAbstractMultiWidget.h>
Public Types | |
using | RenderWindowWidgetPointer = std::shared_ptr< QmitkRenderWindowWidget > |
using | RenderWindowWidgetMap = std::map< QString, std::shared_ptr< QmitkRenderWindowWidget > > |
using | RenderWindowHash = QHash< QString, QmitkRenderWindow * > |
Signals | |
void | ActiveRenderWindowChanged () |
Protected Member Functions | |
virtual void | AddRenderWindowWidget (const QString &widgetName, RenderWindowWidgetPointer renderWindowWidget) |
virtual void | RemoveRenderWindowWidget () |
The 'QmitkAbstractMultiWidget' is a 'QWidget' that can be subclassed to display multiple render windows at once. Render windows can dynamically be added and removed to change the layout of the multi widget. A subclass of this multi widget can be used inside a 'QmitkAbstractMultiWidgetEditor'.
The class uses the 'DisplayActionEventBroadcast' and 'DisplayActionEventHandler' classes to load a state machine and set an event configuration.
Using the 'Synchronize' function the user can enable or disable the synchronization of display action events. See 'DisplayActionEventFunctions'-class for the different synchronized and non-synchronized functions used.
Definition at line 53 of file QmitkAbstractMultiWidget.h.
using QmitkAbstractMultiWidget::RenderWindowHash = QHash<QString, QmitkRenderWindow*> |
Definition at line 61 of file QmitkAbstractMultiWidget.h.
using QmitkAbstractMultiWidget::RenderWindowWidgetMap = std::map<QString, std::shared_ptr<QmitkRenderWindowWidget> > |
Definition at line 60 of file QmitkAbstractMultiWidget.h.
using QmitkAbstractMultiWidget::RenderWindowWidgetPointer = std::shared_ptr<QmitkRenderWindowWidget> |
Definition at line 59 of file QmitkAbstractMultiWidget.h.
QmitkAbstractMultiWidget::QmitkAbstractMultiWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 , |
||
const QString & | multiWidgetName = "multiwidget" |
||
) |
|
virtual |
|
virtual |
|
signal |
|
protectedvirtual |
void QmitkAbstractMultiWidget::ForceImmediateUpdate | ( | const QString & | widgetName | ) |
void QmitkAbstractMultiWidget::ForceImmediateUpdateAll | ( | ) |
RenderWindowWidgetMap QmitkAbstractMultiWidget::Get2DRenderWindowWidgets | ( | ) | const |
RenderWindowWidgetMap QmitkAbstractMultiWidget::Get3DRenderWindowWidgets | ( | ) | const |
RenderWindowWidgetPointer QmitkAbstractMultiWidget::GetActiveRenderWindowWidget | ( | ) | const |
int QmitkAbstractMultiWidget::GetColumnCount | ( | ) | const |
|
pure virtual |
Implemented in QmitkMxNMultiWidget, and QmitkStdMultiWidget.
mitk::DataStorage* QmitkAbstractMultiWidget::GetDataStorage | ( | ) | const |
mitk::DisplayActionEventHandler* QmitkAbstractMultiWidget::GetDisplayActionEventHandler | ( | ) |
RenderWindowWidgetPointer QmitkAbstractMultiWidget::GetFirstRenderWindowWidget | ( | ) | const |
mitk::InteractionEventHandler* QmitkAbstractMultiWidget::GetInteractionEventHandler | ( | ) |
RenderWindowWidgetPointer QmitkAbstractMultiWidget::GetLastRenderWindowWidget | ( | ) | const |
QmitkMultiWidgetLayoutManager* QmitkAbstractMultiWidget::GetMultiWidgetLayoutManager | ( | ) | const |
|
virtual |
|
virtual |
unsigned int QmitkAbstractMultiWidget::GetNumberOfRenderWindowWidgets | ( | ) | const |
|
pure virtual |
Implemented in QmitkMxNMultiWidget, and QmitkStdMultiWidget.
|
virtual |
Reimplemented in QmitkMxNMultiWidget, and QmitkStdMultiWidget.
QmitkRenderWindow* QmitkAbstractMultiWidget::GetRenderWindow | ( | int | row, |
int | column | ||
) | const |
RenderWindowHash QmitkAbstractMultiWidget::GetRenderWindows | ( | ) | const |
RenderWindowWidgetPointer QmitkAbstractMultiWidget::GetRenderWindowWidget | ( | const QmitkRenderWindow * | renderWindow | ) | const |
RenderWindowWidgetPointer QmitkAbstractMultiWidget::GetRenderWindowWidget | ( | const QString & | widgetName | ) | const |
RenderWindowWidgetPointer QmitkAbstractMultiWidget::GetRenderWindowWidget | ( | int | row, |
int | column | ||
) | const |
RenderWindowWidgetMap QmitkAbstractMultiWidget::GetRenderWindowWidgets | ( | ) | const |
int QmitkAbstractMultiWidget::GetRowCount | ( | ) | const |
|
pure virtual |
Implemented in QmitkMxNMultiWidget, and QmitkStdMultiWidget.
|
pure virtual |
Returns true if the render windows are coupled; false if not.
Render windows are coupled if the slice navigation controller of the render windows are connected which means that always the same geometry is used for the render windows.
Implemented in QmitkMxNMultiWidget, and QmitkStdMultiWidget.
|
pure virtual |
Implemented in QmitkMxNMultiWidget, and QmitkStdMultiWidget.
|
pure virtual |
Initialize the render windows of the concrete multi widget to the given geometry.
The concrete implementation is subclass-specific, no default implementation is provided here.
geometry | The geometry to be used to initialize / update the render window's time and slice navigation controller. |
resetCamera | If true, the camera and crosshair will be reset to the default view (centered, no zoom). If false, the current crosshair position and the camera zoom will be stored and reset after the reference geometry has been updated. |
Implemented in QmitkMxNMultiWidget, and QmitkStdMultiWidget.
|
virtual |
|
inlinevirtual |
Definition at line 71 of file QmitkAbstractMultiWidget.h.
|
inlinevirtual |
Definition at line 70 of file QmitkAbstractMultiWidget.h.
|
protectedvirtual |
void QmitkAbstractMultiWidget::RequestUpdate | ( | const QString & | widgetName | ) |
void QmitkAbstractMultiWidget::RequestUpdateAll | ( | ) |
|
pure virtual |
Implemented in QmitkMxNMultiWidget, and QmitkStdMultiWidget.
|
virtual |
Reimplemented in QmitkMxNMultiWidget.
|
pure virtual |
Implemented in QmitkMxNMultiWidget, and QmitkStdMultiWidget.
|
pure virtual |
Implemented in QmitkStdMultiWidget, and QmitkMxNMultiWidget.
|
virtual |
void QmitkAbstractMultiWidget::SetDisplayActionEventHandler | ( | std::unique_ptr< mitk::DisplayActionEventHandler > | displayActionEventHandler | ) |
|
pure virtual |
Define the reference geometry for interaction withing a render window.
The concrete implementation is subclass-specific, no default implementation is provided here.
referenceGeometry | The interaction reference geometry for the base renderer of the concrete multi widget. For more details, see 'BaseRenderer::SetInteractionReferenceGeometry'. |
Implemented in QmitkMxNMultiWidget, and QmitkStdMultiWidget.
|
virtual |
|
virtual |
|
pure virtual |
Implemented in QmitkMxNMultiWidget, and QmitkStdMultiWidget.
|
pure virtual |
Implemented in QmitkMxNMultiWidget, and QmitkStdMultiWidget.
|
inlinevirtual |
Reimplemented in QmitkMxNMultiWidget.
Definition at line 80 of file QmitkAbstractMultiWidget.h.