13 #ifndef QmitkRenderWindow_h
14 #define QmitkRenderWindow_h
21 #include <vtkGenericOpenGLRenderWindow.h>
22 #include <QVTKOpenGLNativeWidget.h>
29 class QDragEnterEvent;
44 QWidget *parent =
nullptr,
45 const QString &name =
"unnamed renderwindow",
166 void DeferredHideMenu();
177 std::string GetKeyLetter(QKeyEvent *ke)
const;
178 int GetDelta(QWheelEvent *we)
const;
182 bool m_ResendQtEvents;
186 bool m_MenuWidgetActivated;
MITK implementation of the QVTKWidget.
void ShowOverlayMessage(bool show)
Shows or hides the geometry violation warning overlay.
~QmitkRenderWindow() override
void showEvent(QShowEvent *event) override
void dropEvent(QDropEvent *event) override
If the dropped type is application/x-mitk-datanodes we process the request by converting to mitk::Dat...
void Crosshair3DVisibilityChanged(bool)
QmitkRenderWindow(QWidget *parent=nullptr, const QString &name="unnamed renderwindow", mitk::VtkPropRenderer *renderer=nullptr)
vtkRenderWindowInteractor * GetVtkRenderWindowInteractor() override
Returns nullptr since no interactor is used.
void CrosshairVisibilityChanged(bool)
void enterEvent(QEnterEvent *) override
void UpdateCrosshairVisibility(bool visible)
Updates the crosshair visibility state in the menu widget.
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.
void UpdateCrosshairRotationMode(int mode)
Updates the crosshair rotation mode in the menu widget.
void moveEvent(QMoveEvent *event) override
void UpdateCrosshair3DVisibility(bool visible)
Updates the 3D-only crosshair visibility state in the menu widget.
void resizeGL(int w, int h) override
void leaveEvent(QEvent *) override
void UpdateLayoutDesignList(QmitkRenderWindowMenu::LayoutDesign layoutDesign)
Updates the layout design list in the menu widget when the layout has changed.
bool event(QEvent *e) override
virtual void SetResendQtEvents(bool resend)
Whether Qt events should be passed to parent (default: true)
QmitkRenderWindowMenu::LayoutIndex GetLayoutIndex()
Returns the current layout index.
bool GetActivateMenuWidgetFlag()
Returns whether the menu widget is activated.
vtkRenderWindow * GetVtkRenderWindow() override
Returns the underlying VTK render window.
void dragEnterEvent(QDragEnterEvent *event) override
Simply says we accept the event type.
void SetLayoutIndex(QmitkRenderWindowMenu::LayoutIndex layoutIndex)
Sets the layout index to define the layout type.
void LayoutDesignChanged(QmitkRenderWindowMenu::LayoutDesign)
void ActivateMenuWidget(bool state)
Activates or deactivates the render window menu widget.
void CrosshairRotationModeChanged(int)
ModifierKeys
Enumeration of keyboard modifier keys.
MouseButtons
Enumeration of mouse button states.
Base class of MITK RenderWindows.
Organizes the MITK rendering process within the VTK rendering pipeline.
AnatomicalPlane
Enumeration of standard anatomical image planes.