Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
MITK implementation of the QVTKWidget. More...
#include <QmitkRenderWindow.h>
Signals | |
void | ResetView () |
void | ChangeCrosshairRotationMode (int) |
void | SignalLayoutDesignChanged (int layoutDesignIndex) |
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=0, QString name="unnamed renderwindow", mitk::VtkPropRenderer *renderer=NULL, mitk::RenderingManager *renderingManager=NULL, mitk::BaseRenderer::RenderingMode::Type renderingMode=mitk::BaseRenderer::RenderingMode::Standard) | |
virtual | ~QmitkRenderWindow () |
virtual void | SetResendQtEvents (bool resend) |
Whether Qt events should be passed to parent (default: true) More... | |
void | SetLayoutIndex (unsigned int layoutIndex) |
unsigned int | GetLayoutIndex () |
void | LayoutDesignListChanged (int layoutDesignIndex) |
void | HideRenderWindowMenu () |
void | ActivateMenuWidget (bool state, QmitkStdMultiWidget *stdMultiWidget=0) |
bool | GetActivateMenuWidgetFlag () |
virtual vtkRenderWindow * | GetVtkRenderWindow () override |
virtual vtkRenderWindowInteractor * | GetVtkRenderWindowInteractor () override |
void | FullScreenMode (bool state) |
Public Member Functions inherited from mitk::RenderWindowBase | |
virtual | ~RenderWindowBase () |
void | InitRenderer () |
virtual mitk::SliceNavigationController * | GetSliceNavigationController () |
virtual mitk::CameraRotationController * | GetCameraRotationController () |
virtual mitk::BaseController * | GetController () |
virtual mitk::VtkPropRenderer * | GetRenderer () |
virtual bool | HandleEvent (InteractionEvent *interactionEvent) |
Protected Slots | |
void | OnChangeLayoutDesign (int layoutDesignIndex) |
void | OnWidgetPlaneModeChanged (int) |
void | DeferredHideMenu () |
Protected Member Functions | |
virtual void | moveEvent (QMoveEvent *event) override |
void | showEvent (QShowEvent *event) override |
virtual void | paintEvent (QPaintEvent *event) override |
virtual void | mousePressEvent (QMouseEvent *event) override |
virtual void | mouseDoubleClickEvent (QMouseEvent *event) override |
virtual void | mouseMoveEvent (QMouseEvent *event) override |
virtual void | mouseReleaseEvent (QMouseEvent *event) override |
virtual void | keyPressEvent (QKeyEvent *event) override |
virtual void | enterEvent (QEvent *) override |
virtual void | leaveEvent (QEvent *) override |
virtual void | dragEnterEvent (QDragEnterEvent *event) override |
Simply says we accept the event type. More... | |
virtual 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... | |
virtual void | wheelEvent (QWheelEvent *) override |
void | AdjustRenderWindowMenuVisibility (const QPoint &pos) |
Protected Member Functions inherited from mitk::RenderWindowBase | |
RenderWindowBase () | |
void | Initialize (mitk::RenderingManager *renderingManager=NULL, const char *name="unnamed renderer", mitk::BaseRenderer::RenderingMode::Type renderingMode=mitk::BaseRenderer::RenderingMode::Standard) |
void | Destroy () |
Additional Inherited Members | |
Protected Attributes inherited from mitk::RenderWindowBase | |
mitk::VtkPropRenderer::Pointer | m_Renderer |
vtkMitkRenderProp * | m_RenderProp |
bool | m_InResize |
MITK implementation of the QVTKWidget.
Definition at line 39 of file QmitkRenderWindow.h.
QmitkRenderWindow::QmitkRenderWindow | ( | QWidget * | parent = 0 , |
QString | name = "unnamed renderwindow" , |
||
mitk::VtkPropRenderer * | renderer = NULL , |
||
mitk::RenderingManager * | renderingManager = NULL , |
||
mitk::BaseRenderer::RenderingMode::Type | renderingMode = mitk::BaseRenderer::RenderingMode::Standard |
||
) |
Definition at line 40 of file QmitkRenderWindow.cpp.
References mitk::BaseRenderer::RenderingMode::DepthPeeling, mitk::RenderWindowBase::Initialize(), mitk::BaseRenderer::RenderingMode::MultiSampling, and mitk::BaseRenderer::RenderingMode::Standard.
|
virtual |
Definition at line 77 of file QmitkRenderWindow.cpp.
References mitk::RenderWindowBase::Destroy().
void QmitkRenderWindow::ActivateMenuWidget | ( | bool | state, |
QmitkStdMultiWidget * | stdMultiWidget = 0 |
||
) |
Definition at line 249 of file QmitkRenderWindow.cpp.
References ChangeCrosshairRotationMode(), mitk::RenderWindowBase::m_Renderer, OnChangeLayoutDesign(), ResetView(), and QmitkRenderWindowMenu::SetLayoutIndex().
Referenced by QmitkStdMultiWidget::ActivateMenuWidget().
|
protected |
Definition at line 276 of file QmitkRenderWindow.cpp.
References QmitkRenderWindowMenu::MoveWidgetToCorrectPos(), and QmitkRenderWindowMenu::ShowMenu().
Referenced by mouseMoveEvent().
|
signal |
Referenced by ActivateMenuWidget().
|
protectedslot |
Definition at line 206 of file QmitkRenderWindow.cpp.
References QmitkRenderWindowMenu::HideMenu(), and MITK_DEBUG.
|
overrideprotectedvirtual |
Simply says we accept the event type.
Definition at line 307 of file QmitkRenderWindow.cpp.
|
overrideprotectedvirtual |
If the dropped type is application/x-mitk-datanodes we process the request by converting to mitk::DataNode pointers and emitting the NodesDropped signal.
Definition at line 315 of file QmitkRenderWindow.cpp.
References NodesDropped(), and QmitkMimeTypes::ToDataNodePtrList().
|
overrideprotectedvirtual |
Definition at line 200 of file QmitkRenderWindow.cpp.
void QmitkRenderWindow::FullScreenMode | ( | bool | state | ) |
Definition at line 301 of file QmitkRenderWindow.cpp.
References QmitkRenderWindowMenu::ChangeFullScreenMode().
|
inline |
Definition at line 84 of file QmitkRenderWindow.h.
Referenced by QmitkStdMultiWidget::IsMenuWidgetEnabled().
unsigned int QmitkRenderWindow::GetLayoutIndex | ( | ) |
Definition at line 94 of file QmitkRenderWindow.cpp.
References QmitkRenderWindowMenu::GetLayoutIndex().
|
inlineoverridevirtual |
Implements mitk::RenderWindowBase.
Definition at line 86 of file QmitkRenderWindow.h.
Referenced by QmitkStdMultiWidget::changeLayoutToBig3D(), QmitkStdMultiWidget::changeLayoutToWidget1(), QmitkStdMultiWidget::changeLayoutToWidget2(), QmitkStdMultiWidget::changeLayoutToWidget3(), QmitkODFRenderWidget::GenerateODF(), main(), QmitkOpenCVVideoControls::Play(), and QmitkOpenCVVideoControls::Stop().
|
inlineoverridevirtual |
Implements mitk::RenderWindowBase.
Definition at line 87 of file QmitkRenderWindow.h.
void QmitkRenderWindow::HideRenderWindowMenu | ( | ) |
Definition at line 285 of file QmitkRenderWindow.cpp.
Referenced by QmitkStdMultiWidget::HideAllWidgetToolbars().
|
overrideprotectedvirtual |
Definition at line 185 of file QmitkRenderWindow.cpp.
References mitk::RenderWindowBase::HandleEvent(), mitk::RenderWindowBase::m_Renderer, and mitk::InteractionKeyEvent::New().
void QmitkRenderWindow::LayoutDesignListChanged | ( | int | layoutDesignIndex | ) |
Definition at line 102 of file QmitkRenderWindow.cpp.
References QmitkRenderWindowMenu::UpdateLayoutDesignList().
Referenced by QmitkStdMultiWidget::changeLayoutTo2DImagesLeft(), QmitkStdMultiWidget::changeLayoutTo2DImagesUp(), QmitkStdMultiWidget::changeLayoutTo2DUpAnd3DDown(), QmitkStdMultiWidget::changeLayoutTo2x2Dand3DWidget(), QmitkStdMultiWidget::changeLayoutToBig3D(), QmitkStdMultiWidget::changeLayoutToColumnWidget3And4(), QmitkStdMultiWidget::changeLayoutToDefault(), QmitkStdMultiWidget::changeLayoutToLeft2Dand3DRight2D(), QmitkStdMultiWidget::changeLayoutToRowWidget3And4(), QmitkStdMultiWidget::changeLayoutToSmallUpperWidget2Big3and4(), QmitkStdMultiWidget::changeLayoutToWidget1(), QmitkStdMultiWidget::changeLayoutToWidget2(), and QmitkStdMultiWidget::changeLayoutToWidget3().
|
overrideprotectedvirtual |
Definition at line 214 of file QmitkRenderWindow.cpp.
References mitk::RenderWindowBase::HandleEvent(), mitk::RenderWindowBase::m_Renderer, mitk::InternalEvent::New(), and QmitkRenderWindowMenu::smoothHide().
|
overrideprotectedvirtual |
Definition at line 125 of file QmitkRenderWindow.cpp.
References mitk::RenderWindowBase::HandleEvent(), mitk::RenderWindowBase::m_Renderer, and mitk::MouseDoubleClickEvent::New().
|
overrideprotectedvirtual |
Definition at line 155 of file QmitkRenderWindow.cpp.
References AdjustRenderWindowMenuVisibility(), mitk::RenderWindowBase::HandleEvent(), mitk::RenderWindowBase::m_Renderer, and mitk::MouseMoveEvent::New().
|
overrideprotectedvirtual |
Definition at line 108 of file QmitkRenderWindow.cpp.
References mitk::RenderWindowBase::HandleEvent(), mitk::RenderWindowBase::m_Renderer, and mitk::MousePressEvent::New().
|
overrideprotectedvirtual |
Definition at line 140 of file QmitkRenderWindow.cpp.
References mitk::RenderWindowBase::HandleEvent(), mitk::RenderWindowBase::m_Renderer, and mitk::MouseReleaseEvent::New().
|
signal |
Referenced by moveEvent(), and showEvent().
|
overrideprotectedvirtual |
Definition at line 232 of file QmitkRenderWindow.cpp.
References moved().
|
signal |
Emits a signal to say that this window has had the following nodes dropped on it.
Referenced by dropEvent().
|
protectedslot |
Definition at line 290 of file QmitkRenderWindow.cpp.
References SignalLayoutDesignChanged().
Referenced by ActivateMenuWidget().
|
protectedslot |
Definition at line 295 of file QmitkRenderWindow.cpp.
References QmitkRenderWindowMenu::NotifyNewWidgetPlanesMode().
|
overrideprotectedvirtual |
Definition at line 226 of file QmitkRenderWindow.cpp.
References mitk::RenderWindowBase::GetRenderer(), mitk::BaseRenderer::GetRenderingManager(), and mitk::RenderingManager::RequestUpdate().
|
signal |
Referenced by ActivateMenuWidget().
void QmitkRenderWindow::SetLayoutIndex | ( | unsigned int | layoutIndex | ) |
Definition at line 87 of file QmitkRenderWindow.cpp.
References QmitkRenderWindowMenu::SetLayoutIndex().
Referenced by QmitkStdMultiWidget::QmitkStdMultiWidget().
|
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. QmitkStdMultiWidget 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.
Definition at line 82 of file QmitkRenderWindow.cpp.
|
overrideprotected |
Definition at line 240 of file QmitkRenderWindow.cpp.
References moved().
|
signal |
Referenced by OnChangeLayoutDesign().
|
overrideprotectedvirtual |
Definition at line 170 of file QmitkRenderWindow.cpp.
References mitk::RenderWindowBase::HandleEvent(), mitk::RenderWindowBase::m_Renderer, and mitk::MouseWheelEvent::New().