Medical Imaging Interaction Toolkit  2021.10.99-9c07a326
Medical Imaging Interaction Toolkit
QmitkMxNMultiWidget Class Reference

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>

Inheritance diagram for QmitkMxNMultiWidget:
Collaboration diagram for QmitkMxNMultiWidget:

Public Slots

void wheelEvent (QWheelEvent *e) override
 
void mousePressEvent (QMouseEvent *e) override
 
void moveEvent (QMoveEvent *e) override
 

Signals

void WheelMoved (QWheelEvent *)
 
void Moved ()
 
- Signals inherited from QmitkAbstractMultiWidget
void ActiveRenderWindowChanged ()
 

Public Member Functions

 QmitkMxNMultiWidget (QWidget *parent=nullptr, Qt::WindowFlags f=0, const QString &multiWidgetName="mxnmulti")
 
 ~QmitkMxNMultiWidget ()
 
void InitializeMultiWidget () override
 
void MultiWidgetOpened () override
 
void MultiWidgetClosed () override
 
void Synchronize (bool synchronized) override
 
QmitkRenderWindowGetRenderWindow (const QString &widgetName) const override
 
QmitkRenderWindowGetRenderWindow (const mitk::BaseRenderer::ViewDirection &viewDirection) const override
 
void SetActiveRenderWindowWidget (RenderWindowWidgetPointer activeRenderWindowWidget) override
 
void SetSelectedPosition (const mitk::Point3D &newPosition, const QString &widgetName) override
 
const mitk::Point3D GetSelectedPosition (const QString &widgetName) const override
 
void SetCrosshairVisibility (bool activate) override
 
bool GetCrosshairVisibility () const override
 
void ResetCrosshair () override
 
void SetWidgetPlaneMode (int userMode) override
 
mitk::SliceNavigationControllerGetTimeNavigationController ()
 
- Public Member Functions inherited from QmitkAbstractMultiWidget
 QmitkAbstractMultiWidget (QWidget *parent=0, Qt::WindowFlags f=0, const QString &multiWidgetName="multiwidget")
 
virtual ~QmitkAbstractMultiWidget ()
 
virtual void SetDataStorage (mitk::DataStorage *dataStorage)
 
mitk::DataStorageGetDataStorage () const
 
int GetRowCount () const
 
int GetColumnCount () const
 
virtual void SetLayout (int row, int column)
 
virtual void SetInteractionScheme (mitk::InteractionSchemeSwitcher::InteractionScheme scheme)
 
mitk::InteractionEventHandlerGetInteractionEventHandler ()
 
void SetDisplayActionEventHandler (std::unique_ptr< mitk::DisplayActionEventHandler > displayActionEventHandler)
 
mitk::DisplayActionEventHandlerGetDisplayActionEventHandler ()
 
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
 
QmitkRenderWindowGetRenderWindow (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 (vcl_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
 
QmitkMultiWidgetLayoutManagerGetMultiWidgetLayoutManager () 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 * >
 
using ViewDirection = mitk::BaseRenderer::ViewDirection
 
- Protected Member Functions inherited from QmitkAbstractMultiWidget
virtual void AddRenderWindowWidget (const QString &widgetName, RenderWindowWidgetPointer renderWindowWidget)
 
virtual void RemoveRenderWindowWidget ()
 

Detailed Description

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 26 of file QmitkMxNMultiWidget.h.

Constructor & Destructor Documentation

◆ QmitkMxNMultiWidget()

QmitkMxNMultiWidget::QmitkMxNMultiWidget ( QWidget *  parent = nullptr,
Qt::WindowFlags  f = 0,
const QString &  multiWidgetName = "mxnmulti" 
)

◆ ~QmitkMxNMultiWidget()

QmitkMxNMultiWidget::~QmitkMxNMultiWidget ( )

Member Function Documentation

◆ GetCrosshairVisibility()

bool QmitkMxNMultiWidget::GetCrosshairVisibility ( ) const
inlineoverridevirtual

◆ GetRenderWindow() [1/2]

QmitkRenderWindow* QmitkMxNMultiWidget::GetRenderWindow ( const QString &  widgetName) const
overridevirtual

Reimplemented from QmitkAbstractMultiWidget.

◆ GetRenderWindow() [2/2]

QmitkRenderWindow* QmitkMxNMultiWidget::GetRenderWindow ( const mitk::BaseRenderer::ViewDirection viewDirection) const
overridevirtual

◆ GetSelectedPosition()

const mitk::Point3D QmitkMxNMultiWidget::GetSelectedPosition ( const QString &  widgetName) const
overridevirtual

◆ GetTimeNavigationController()

mitk::SliceNavigationController* QmitkMxNMultiWidget::GetTimeNavigationController ( )

◆ InitializeMultiWidget()

void QmitkMxNMultiWidget::InitializeMultiWidget ( )
overridevirtual

◆ mousePressEvent

void QmitkMxNMultiWidget::mousePressEvent ( QMouseEvent *  e)
overrideslot

◆ Moved

void QmitkMxNMultiWidget::Moved ( )
signal

◆ moveEvent

void QmitkMxNMultiWidget::moveEvent ( QMoveEvent *  e)
overrideslot

◆ MultiWidgetClosed()

void QmitkMxNMultiWidget::MultiWidgetClosed ( )
overridevirtual

Reimplemented from QmitkAbstractMultiWidget.

◆ MultiWidgetOpened()

void QmitkMxNMultiWidget::MultiWidgetOpened ( )
overridevirtual

Reimplemented from QmitkAbstractMultiWidget.

◆ ResetCrosshair()

void QmitkMxNMultiWidget::ResetCrosshair ( )
overridevirtual

◆ SetActiveRenderWindowWidget()

void QmitkMxNMultiWidget::SetActiveRenderWindowWidget ( RenderWindowWidgetPointer  activeRenderWindowWidget)
overridevirtual

Reimplemented from QmitkAbstractMultiWidget.

◆ SetCrosshairVisibility()

void QmitkMxNMultiWidget::SetCrosshairVisibility ( bool  activate)
overridevirtual

◆ SetSelectedPosition()

void QmitkMxNMultiWidget::SetSelectedPosition ( const mitk::Point3D newPosition,
const QString &  widgetName 
)
overridevirtual

◆ SetWidgetPlaneMode()

void QmitkMxNMultiWidget::SetWidgetPlaneMode ( int  userMode)
overridevirtual

◆ Synchronize()

void QmitkMxNMultiWidget::Synchronize ( bool  synchronized)
overridevirtual

Reimplemented from QmitkAbstractMultiWidget.

◆ wheelEvent

void QmitkMxNMultiWidget::wheelEvent ( QWheelEvent *  e)
overrideslot

◆ WheelMoved

void QmitkMxNMultiWidget::WheelMoved ( QWheelEvent *  )
signal

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