Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkRenderWindow Class Reference

MITK implementation of the QVTKWidget. More...

#include <QmitkRenderWindow.h>

Inheritance diagram for QmitkRenderWindow:
Collaboration diagram for QmitkRenderWindow:

Signals

void LayoutDesignChanged (QmitkRenderWindowMenu::LayoutDesign)
 
void ResetView ()
 
void ResetGeometry ()
 
void CrosshairRotationModeChanged (int)
 
void CrosshairVisibilityChanged (bool)
 
void moved ()
 
void NodesDropped (QmitkRenderWindow *thisWindow, std::vector< mitk::DataNode * > nodes)
 Emits a signal to say that this window has had the following nodes dropped on it. More...
 

Public Member Functions

 QmitkRenderWindow (QWidget *parent=nullptr, const QString &name="unnamed renderwindow", mitk::VtkPropRenderer *renderer=nullptr)
 
 ~QmitkRenderWindow () override
 
virtual void SetResendQtEvents (bool resend)
 Whether Qt events should be passed to parent (default: true) More...
 
void SetLayoutIndex (QmitkRenderWindowMenu::LayoutIndex layoutIndex)
 
QmitkRenderWindowMenu::LayoutIndex GetLayoutIndex ()
 
void UpdateLayoutDesignList (QmitkRenderWindowMenu::LayoutDesign layoutDesign)
 
void UpdateCrosshairVisibility (bool)
 
void UpdateCrosshairRotationMode (int)
 
void ActivateMenuWidget (bool state)
 
bool GetActivateMenuWidgetFlag ()
 
void ShowOverlayMessage (bool show)
 
vtkRenderWindow * GetVtkRenderWindow () override
 
vtkRenderWindowInteractor * GetVtkRenderWindowInteractor () override
 
- Public Member Functions inherited from mitk::RenderWindowBase
virtual ~RenderWindowBase ()
 
void InitRenderer ()
 
virtual mitk::SliceNavigationControllerGetSliceNavigationController ()
 
virtual mitk::CameraRotationControllerGetCameraRotationController ()
 
virtual mitk::BaseControllerGetController ()
 
virtual mitk::VtkPropRendererGetRenderer ()
 
virtual bool HandleEvent (InteractionEvent *interactionEvent)
 

Protected Member Functions

bool event (QEvent *e) override
 
void moveEvent (QMoveEvent *event) override
 
void showEvent (QShowEvent *event) override
 
void enterEvent (QEnterEvent *) override
 
void leaveEvent (QEvent *) override
 
void resizeGL (int w, int h) override
 
void dragEnterEvent (QDragEnterEvent *event) override
 Simply says we accept the event type. More...
 
void dropEvent (QDropEvent *event) override
 If the dropped type is application/x-mitk-datanodes we process the request by converting to mitk::DataNode pointers and emitting the NodesDropped signal. More...
 
- Protected Member Functions inherited from mitk::RenderWindowBase
 RenderWindowBase ()
 
void Initialize (const char *name="unnamed renderer")
 
void Destroy ()
 

Additional Inherited Members

- Protected Attributes inherited from mitk::RenderWindowBase
mitk::VtkPropRenderer::Pointer m_Renderer
 
vtkMitkRenderPropm_RenderProp
 
bool m_InResize
 

Detailed Description

MITK implementation of the QVTKWidget.

Definition at line 38 of file QmitkRenderWindow.h.

Constructor & Destructor Documentation

◆ QmitkRenderWindow()

QmitkRenderWindow::QmitkRenderWindow ( QWidget *  parent = nullptr,
const QString &  name = "unnamed renderwindow",
mitk::VtkPropRenderer renderer = nullptr 
)

◆ ~QmitkRenderWindow()

QmitkRenderWindow::~QmitkRenderWindow ( )
override

Member Function Documentation

◆ ActivateMenuWidget()

void QmitkRenderWindow::ActivateMenuWidget ( bool  state)

◆ CrosshairRotationModeChanged

void QmitkRenderWindow::CrosshairRotationModeChanged ( int  )
signal

◆ CrosshairVisibilityChanged

void QmitkRenderWindow::CrosshairVisibilityChanged ( bool  )
signal

◆ dragEnterEvent()

void QmitkRenderWindow::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotected

Simply says we accept the event type.

◆ dropEvent()

void QmitkRenderWindow::dropEvent ( QDropEvent *  event)
overrideprotected

If the dropped type is application/x-mitk-datanodes we process the request by converting to mitk::DataNode pointers and emitting the NodesDropped signal.

◆ enterEvent()

void QmitkRenderWindow::enterEvent ( QEnterEvent *  )
overrideprotected

◆ event()

bool QmitkRenderWindow::event ( QEvent *  e)
overrideprotected

◆ GetActivateMenuWidgetFlag()

bool QmitkRenderWindow::GetActivateMenuWidgetFlag ( )
inline

Definition at line 83 of file QmitkRenderWindow.h.

◆ GetLayoutIndex()

QmitkRenderWindowMenu::LayoutIndex QmitkRenderWindow::GetLayoutIndex ( )

◆ GetVtkRenderWindow()

vtkRenderWindow* QmitkRenderWindow::GetVtkRenderWindow ( )
inlineoverridevirtual

Implements mitk::RenderWindowBase.

Definition at line 88 of file QmitkRenderWindow.h.

◆ GetVtkRenderWindowInteractor()

vtkRenderWindowInteractor* QmitkRenderWindow::GetVtkRenderWindowInteractor ( )
inlineoverridevirtual

Implements mitk::RenderWindowBase.

Definition at line 90 of file QmitkRenderWindow.h.

◆ LayoutDesignChanged

void QmitkRenderWindow::LayoutDesignChanged ( QmitkRenderWindowMenu::LayoutDesign  )
signal

◆ leaveEvent()

void QmitkRenderWindow::leaveEvent ( QEvent *  )
overrideprotected

◆ moved

void QmitkRenderWindow::moved ( )
signal

◆ moveEvent()

void QmitkRenderWindow::moveEvent ( QMoveEvent *  event)
overrideprotected

◆ NodesDropped

void QmitkRenderWindow::NodesDropped ( QmitkRenderWindow thisWindow,
std::vector< mitk::DataNode * >  nodes 
)
signal

Emits a signal to say that this window has had the following nodes dropped on it.

◆ ResetGeometry

void QmitkRenderWindow::ResetGeometry ( )
signal

◆ ResetView

void QmitkRenderWindow::ResetView ( )
signal

◆ resizeGL()

void QmitkRenderWindow::resizeGL ( int  w,
int  h 
)
overrideprotected

◆ SetLayoutIndex()

void QmitkRenderWindow::SetLayoutIndex ( QmitkRenderWindowMenu::LayoutIndex  layoutIndex)

◆ SetResendQtEvents()

virtual void QmitkRenderWindow::SetResendQtEvents ( bool  resend)
virtual

Whether Qt events should be passed to parent (default: true)

With introduction of the QVTKWidget the behaviour regarding Qt events changed. QVTKWidget "accepts" Qt events like mouse clicks (i.e. set an "accepted" flag). When this flag is set, Qt fininshed handling of this event – otherwise it is reached through to the widget's parent.

This reaching through to the parent was implicitly required by QmitkMaterialWidget / QmitkMaterialShowCase.

The default behaviour of QmitkRenderWindow is now to clear the "accepted" flag of Qt events after they were handled by QVTKWidget. This way parents can also handle events.

If you don't want this behaviour, call SetResendQtEvents(true) on your render window.

◆ showEvent()

void QmitkRenderWindow::showEvent ( QShowEvent *  event)
overrideprotected

◆ ShowOverlayMessage()

void QmitkRenderWindow::ShowOverlayMessage ( bool  show)

◆ UpdateCrosshairRotationMode()

void QmitkRenderWindow::UpdateCrosshairRotationMode ( int  )

◆ UpdateCrosshairVisibility()

void QmitkRenderWindow::UpdateCrosshairVisibility ( bool  )

◆ UpdateLayoutDesignList()

void QmitkRenderWindow::UpdateLayoutDesignList ( QmitkRenderWindowMenu::LayoutDesign  layoutDesign)

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