Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
The 'QmitkMxNMultiWidget' is a 'QmitkAbstractMultiWidget' that is used to display multiple render windows at once. Render windows can dynamically be added and removed to change the layout of the multi widget. This is done by using the 'SetLayout'-function to define a layout. This will automatically add or remove the appropriate number of render window widgets. More...
#include <QmitkMxNMultiWidget.h>
Public Slots | |
void | wheelEvent (QWheelEvent *e) override |
void | mousePressEvent (QMouseEvent *e) override |
void | moveEvent (QMoveEvent *e) override |
void | LoadLayout (const nlohmann::json *jsonData) |
void | SaveLayout (std::ostream *outStream) |
Signals | |
void | WheelMoved (QWheelEvent *) |
void | Moved () |
void | UpdateUtilityWidgetViewPlanes () |
void | LayoutChanged () |
Signals inherited from QmitkAbstractMultiWidget | |
void | ActiveRenderWindowChanged () |
Public Member Functions | |
QmitkMxNMultiWidget (QWidget *parent=nullptr, Qt::WindowFlags f=0, const QString &multiWidgetName="mxn") | |
~QmitkMxNMultiWidget () | |
void | InitializeMultiWidget () override |
void | Synchronize (bool synchronized) override |
QmitkRenderWindow * | GetRenderWindow (const QString &widgetName) const override |
QmitkRenderWindow * | GetRenderWindow (const mitk::AnatomicalPlane &orientation) const override |
void | SetActiveRenderWindowWidget (RenderWindowWidgetPointer activeRenderWindowWidget) override |
void | InitializeViews (const mitk::TimeGeometry *geometry, bool resetCamera) override |
Initialize the active render windows of the MxNMultiWidget to the given geometry. More... | |
void | SetInteractionReferenceGeometry (const mitk::TimeGeometry *referenceGeometry) override |
Forward the given time geometry to all base renderers, so that they can store it as their interaction reference geometry. This will update the alignment status of the reference geometry for each base renderer. For more details, see 'BaseRenderer::SetInteractionReferenceGeometry'. Overridem from 'QmitkAbstractMultiWidget'. More... | |
bool | HasCoupledRenderWindows () const override |
Returns true if the render windows are coupled; false if not. More... | |
void | SetSelectedPosition (const mitk::Point3D &newPosition, const QString &widgetName) override |
const mitk::Point3D | GetSelectedPosition (const QString &widgetName) const override |
void | SetCrosshairVisibility (bool visible) override |
bool | GetCrosshairVisibility () const override |
void | SetCrosshairGap (unsigned int gapSize) override |
void | ResetCrosshair () override |
void | SetWidgetPlaneMode (int userMode) override |
mitk::SliceNavigationController * | GetTimeNavigationController () |
void | EnableCrosshair () |
void | DisableCrosshair () |
Public Member Functions inherited from QmitkAbstractMultiWidget | |
QmitkAbstractMultiWidget (QWidget *parent=0, Qt::WindowFlags f=0, const QString &multiWidgetName="multiwidget") | |
virtual | ~QmitkAbstractMultiWidget () |
virtual void | MultiWidgetOpened () |
virtual void | MultiWidgetClosed () |
virtual void | SetDataStorage (mitk::DataStorage *dataStorage) |
mitk::DataStorage * | GetDataStorage () const |
int | GetRowCount () const |
int | GetColumnCount () const |
virtual void | SetLayout (int row, int column) |
virtual void | SetInteractionScheme (mitk::InteractionSchemeSwitcher::InteractionScheme scheme) |
mitk::InteractionEventHandler * | GetInteractionEventHandler () |
void | SetDisplayActionEventHandler (std::unique_ptr< mitk::DisplayActionEventHandler > displayActionEventHandler) |
mitk::DisplayActionEventHandler * | GetDisplayActionEventHandler () |
RenderWindowWidgetMap | GetRenderWindowWidgets () const |
RenderWindowWidgetMap | Get2DRenderWindowWidgets () const |
RenderWindowWidgetMap | Get3DRenderWindowWidgets () const |
RenderWindowWidgetPointer | GetRenderWindowWidget (int row, int column) const |
RenderWindowWidgetPointer | GetRenderWindowWidget (const QString &widgetName) const |
RenderWindowWidgetPointer | GetRenderWindowWidget (const QmitkRenderWindow *renderWindow) const |
RenderWindowHash | GetRenderWindows () const |
QmitkRenderWindow * | GetRenderWindow (int row, int column) const |
RenderWindowWidgetPointer | GetActiveRenderWindowWidget () const |
RenderWindowWidgetPointer | GetFirstRenderWindowWidget () const |
RenderWindowWidgetPointer | GetLastRenderWindowWidget () const |
virtual QString | GetNameFromIndex (int row, int column) const |
virtual QString | GetNameFromIndex (size_t index) const |
unsigned int | GetNumberOfRenderWindowWidgets () const |
void | RequestUpdate (const QString &widgetName) |
void | RequestUpdateAll () |
void | ForceImmediateUpdate (const QString &widgetName) |
void | ForceImmediateUpdateAll () |
virtual void | ActivateMenuWidget (bool state) |
virtual bool | IsMenuWidgetEnabled () const |
QmitkMultiWidgetLayoutManager * | GetMultiWidgetLayoutManager () const |
Additional Inherited Members | |
Public Types inherited from QmitkAbstractMultiWidget | |
using | RenderWindowWidgetPointer = std::shared_ptr< QmitkRenderWindowWidget > |
using | RenderWindowWidgetMap = std::map< QString, std::shared_ptr< QmitkRenderWindowWidget > > |
using | RenderWindowHash = QHash< QString, QmitkRenderWindow * > |
Protected Member Functions inherited from QmitkAbstractMultiWidget | |
virtual void | AddRenderWindowWidget (const QString &widgetName, RenderWindowWidgetPointer renderWindowWidget) |
virtual void | RemoveRenderWindowWidget () |
The 'QmitkMxNMultiWidget' is a 'QmitkAbstractMultiWidget' that is used to display multiple render windows at once. Render windows can dynamically be added and removed to change the layout of the multi widget. This is done by using the 'SetLayout'-function to define a layout. This will automatically add or remove the appropriate number of render window widgets.
Definition at line 33 of file QmitkMxNMultiWidget.h.
QmitkMxNMultiWidget::QmitkMxNMultiWidget | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | f = 0 , |
||
const QString & | multiWidgetName = "mxn" |
||
) |
QmitkMxNMultiWidget::~QmitkMxNMultiWidget | ( | ) |
void QmitkMxNMultiWidget::DisableCrosshair | ( | ) |
void QmitkMxNMultiWidget::EnableCrosshair | ( | ) |
|
overridevirtual |
Implements QmitkAbstractMultiWidget.
|
overridevirtual |
Implements QmitkAbstractMultiWidget.
|
overridevirtual |
Reimplemented from QmitkAbstractMultiWidget.
|
overridevirtual |
Implements QmitkAbstractMultiWidget.
mitk::SliceNavigationController* QmitkMxNMultiWidget::GetTimeNavigationController | ( | ) |
|
overridevirtual |
Returns true if the render windows are coupled; false if not.
For the MxNMultiWidget the render windows are typically decoupled.
Implements QmitkAbstractMultiWidget.
|
overridevirtual |
Implements QmitkAbstractMultiWidget.
|
overridevirtual |
Initialize the active render windows of the MxNMultiWidget to the given geometry.
geometry | The geometry to be used to initialize / update the active 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. |
Implements QmitkAbstractMultiWidget.
|
signal |
|
slot |
|
overrideslot |
|
signal |
|
overrideslot |
|
overridevirtual |
Implements QmitkAbstractMultiWidget.
|
slot |
|
overridevirtual |
Reimplemented from QmitkAbstractMultiWidget.
|
overridevirtual |
Implements QmitkAbstractMultiWidget.
|
overridevirtual |
Implements QmitkAbstractMultiWidget.
|
overridevirtual |
Forward the given time geometry to all base renderers, so that they can store it as their interaction reference geometry. This will update the alignment status of the reference geometry for each base renderer. For more details, see 'BaseRenderer::SetInteractionReferenceGeometry'. Overridem from 'QmitkAbstractMultiWidget'.
Implements QmitkAbstractMultiWidget.
|
overridevirtual |
Implements QmitkAbstractMultiWidget.
|
overridevirtual |
Implements QmitkAbstractMultiWidget.
|
overridevirtual |
Reimplemented from QmitkAbstractMultiWidget.
|
signal |
|
overrideslot |
|
signal |