Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
|
The 'QmitkStdMultiWidget' is a 'QmitkAbstractMultiWidget' that is used to display multiple render windows at once. Render windows are predefined in a 2x2 design with 3 different 2D view planes and a 3D render window. More...
#include <QmitkStdMultiWidget.h>
Public Slots | |
virtual void | mousePressEvent (QMouseEvent *) override |
virtual void | moveEvent (QMoveEvent *e) override |
virtual void | wheelEvent (QWheelEvent *e) override |
void | Fit () |
void | AddDisplayPlaneSubTree () |
void | EnsureDisplayContainsPoint (mitk::BaseRenderer *renderer, const mitk::Point3D &p) |
void | SetWidgetPlaneVisibility (const char *widgetName, bool visible, mitk::BaseRenderer *renderer=nullptr) |
void | SetWidgetPlanesVisibility (bool visible, mitk::BaseRenderer *renderer=nullptr) |
Signals | |
void | NotifyCrosshairVisibilityChanged (bool visible) |
void | NotifyCrosshairRotationModeChanged (int mode) |
void | WheelMoved (QWheelEvent *) |
void | Moved () |
Signals inherited from QmitkAbstractMultiWidget | |
void | ActiveRenderWindowChanged () |
Public Member Functions | |
QmitkStdMultiWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr, const QString &name="stdmulti") | |
~QmitkStdMultiWidget () override | |
virtual void | InitializeMultiWidget () override |
virtual QmitkRenderWindow * | GetRenderWindow (const QString &widgetName) const override |
virtual QmitkRenderWindow * | GetRenderWindow (const mitk::AnatomicalPlane &orientation) const override |
void | InitializeViews (const mitk::TimeGeometry *geometry, bool resetCamera) override |
Initialize all render windows of the StdMultiWidget to the given geometry. Overridem from 'QmitkAbstractMultiWidget'. More... | |
void | SetInteractionReferenceGeometry (const mitk::TimeGeometry *referenceGeometry) override |
Not implemented in this class. Overridem from 'QmitkAbstractMultiWidget'. More... | |
bool | HasCoupledRenderWindows () const override |
Returns true if the render windows are coupled; false if not. More... | |
virtual void | SetSelectedPosition (const mitk::Point3D &newPosition, const QString &widgetName) override |
virtual const mitk::Point3D | GetSelectedPosition (const QString &widgetName) const override |
virtual void | SetCrosshairVisibility (bool) override |
virtual bool | GetCrosshairVisibility () const override |
void | SetCrosshairGap (unsigned int gapSize) override |
virtual void | ResetCrosshair () override |
virtual void | SetWidgetPlaneMode (int mode) override |
mitk::SliceNavigationController * | GetTimeNavigationController () |
void | AddPlanesToDataStorage () |
void | RemovePlanesFromDataStorage () |
QmitkRenderWindow * | GetRenderWindow (unsigned int number) const |
Convenience method to get a render window widget. More... | |
QmitkRenderWindow * | GetRenderWindow1 () const |
QmitkRenderWindow * | GetRenderWindow2 () const |
QmitkRenderWindow * | GetRenderWindow3 () const |
QmitkRenderWindow * | GetRenderWindow4 () const |
mitk::DataNode::Pointer | GetWidgetPlane (unsigned int number) const |
Convenience method to get a widget plane. More... | |
mitk::DataNode::Pointer | GetWidgetPlane1 () const |
mitk::DataNode::Pointer | GetWidgetPlane2 () const |
mitk::DataNode::Pointer | GetWidgetPlane3 () const |
void | SetDecorationColor (unsigned int widgetNumber, mitk::Color color) |
SetDecorationColor Set the color of the decoration of the 4 widgets. More... | |
mitk::Color | GetDecorationColor (unsigned int widgetNumber) |
GetDecorationColorForWidget Get the color for annotation, crosshair and rectangle. More... | |
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 | Synchronize (bool) |
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 |
virtual void | SetActiveRenderWindowWidget (RenderWindowWidgetPointer activeRenderWindowWidget) |
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 'QmitkStdMultiWidget' is a 'QmitkAbstractMultiWidget' that is used to display multiple render windows at once. Render windows are predefined in a 2x2 design with 3 different 2D view planes and a 3D render window.
Definition at line 24 of file QmitkStdMultiWidget.h.
QmitkStdMultiWidget::QmitkStdMultiWidget | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | f = nullptr , |
||
const QString & | name = "stdmulti" |
||
) |
|
override |
|
slot |
void QmitkStdMultiWidget::AddPlanesToDataStorage | ( | ) |
|
slot |
|
slot |
|
overridevirtual |
Implements QmitkAbstractMultiWidget.
mitk::Color QmitkStdMultiWidget::GetDecorationColor | ( | unsigned int | widgetNumber | ) |
GetDecorationColorForWidget Get the color for annotation, crosshair and rectangle.
widgetNumber | Number of the renderwindow (0-3). |
|
overridevirtual |
Implements QmitkAbstractMultiWidget.
|
overridevirtual |
Reimplemented from QmitkAbstractMultiWidget.
QmitkRenderWindow* QmitkStdMultiWidget::GetRenderWindow | ( | unsigned int | number | ) | const |
Convenience method to get a render window widget.
number | of the widget (0-3) |
QmitkRenderWindow* QmitkStdMultiWidget::GetRenderWindow1 | ( | ) | const |
QmitkRenderWindow* QmitkStdMultiWidget::GetRenderWindow2 | ( | ) | const |
QmitkRenderWindow* QmitkStdMultiWidget::GetRenderWindow3 | ( | ) | const |
QmitkRenderWindow* QmitkStdMultiWidget::GetRenderWindow4 | ( | ) | const |
|
overridevirtual |
Implements QmitkAbstractMultiWidget.
mitk::SliceNavigationController* QmitkStdMultiWidget::GetTimeNavigationController | ( | ) |
mitk::DataNode::Pointer QmitkStdMultiWidget::GetWidgetPlane | ( | unsigned int | number | ) | const |
Convenience method to get a widget plane.
number | of the widget plane (1-3) |
mitk::DataNode::Pointer QmitkStdMultiWidget::GetWidgetPlane1 | ( | ) | const |
mitk::DataNode::Pointer QmitkStdMultiWidget::GetWidgetPlane2 | ( | ) | const |
mitk::DataNode::Pointer QmitkStdMultiWidget::GetWidgetPlane3 | ( | ) | const |
|
overridevirtual |
Returns true if the render windows are coupled; false if not.
For the StdMultiWidget the render windows are typically coupled.
Implements QmitkAbstractMultiWidget.
|
overridevirtual |
Implements QmitkAbstractMultiWidget.
|
overridevirtual |
Initialize all render windows of the StdMultiWidget to the given geometry. Overridem from 'QmitkAbstractMultiWidget'.
geometry | The geometry to be used to initialize / update all 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.
|
overridevirtualslot |
|
signal |
|
overridevirtualslot |
|
signal |
|
signal |
void QmitkStdMultiWidget::RemovePlanesFromDataStorage | ( | ) |
|
overridevirtual |
Implements QmitkAbstractMultiWidget.
|
overridevirtual |
Implements QmitkAbstractMultiWidget.
|
overridevirtual |
Implements QmitkAbstractMultiWidget.
void QmitkStdMultiWidget::SetDecorationColor | ( | unsigned int | widgetNumber, |
mitk::Color | color | ||
) |
SetDecorationColor Set the color of the decoration of the 4 widgets.
This is used to color the frame of the renderwindow and the corner annatation. For the first 3 widgets, this color is a property of the helper object nodes which contain the respective plane geometry. For widget 4, this is a member, since there is no data node for this widget.
|
overridevirtual |
Not implemented in this class. Overridem from 'QmitkAbstractMultiWidget'.
Implements QmitkAbstractMultiWidget.
|
overridevirtual |
Implements QmitkAbstractMultiWidget.
|
overridevirtual |
Implements QmitkAbstractMultiWidget.
|
slot |
|
slot |
|
overridevirtualslot |
|
signal |