17 #ifndef QMITKRENDERWINDOW_H_HEADER_INCLUDED_C1C40D66
18 #define QMITKRENDERWINDOW_H_HEADER_INCLUDED_C1C40D66
22 #include "QVTKWidget.h"
25 #include <vtkGenericOpenGLRenderWindow.h>
31 class QDragEnterEvent;
46 QString name =
"unnamed renderwindow",
68 virtual void SetResendQtEvents(
bool resend);
71 void SetLayoutIndex(
unsigned int layoutIndex);
74 unsigned int GetLayoutIndex();
77 void LayoutDesignListChanged(
int layoutDesignIndex);
79 void HideRenderWindowMenu();
88 void FullScreenMode(
bool state);
92 virtual void moveEvent(QMoveEvent *event)
override;
94 void showEvent(QShowEvent *event)
override;
96 virtual void paintEvent(QPaintEvent *event)
override;
98 virtual void mousePressEvent(QMouseEvent *event)
override;
100 virtual void mouseDoubleClickEvent(QMouseEvent *event)
override;
102 virtual void mouseMoveEvent(QMouseEvent *event)
override;
104 virtual void mouseReleaseEvent(QMouseEvent *event)
override;
106 virtual void keyPressEvent(QKeyEvent *event)
override;
108 virtual void enterEvent(QEvent *)
override;
110 virtual void leaveEvent(QEvent *)
override;
113 virtual void dragEnterEvent(QDragEnterEvent *event)
override;
117 virtual void dropEvent(QDropEvent *event)
override;
119 #ifndef QT_NO_WHEELEVENT
121 virtual void wheelEvent(QWheelEvent *)
override;
124 void AdjustRenderWindowMenuVisibility(
const QPoint &pos);
130 void ChangeCrosshairRotationMode(
int);
132 void SignalLayoutDesignChanged(
int layoutDesignIndex);
137 void NodesDropped(
QmitkRenderWindow *thisWindow, std::vector<mitk::DataNode *> nodes);
141 void OnChangeLayoutDesign(
int layoutDesignIndex);
143 void OnWidgetPlaneModeChanged(
int);
145 void DeferredHideMenu();
156 std::string GetKeyLetter(QKeyEvent *ke)
const;
157 int GetDelta(QWheelEvent *we)
const;
158 bool m_ResendQtEvents;
162 bool m_MenuWidgetActivated;
164 unsigned int m_LayoutIndex;
Base class of MITK RenderWindows.
virtual vtkRenderWindowInteractor * GetVtkRenderWindowInteractor() override
virtual vtkRenderWindow * GetVtkRenderWindow() override
static std::string GetEventButton(mitk::InteractionEvent *event)
GetEventButton Return EventButton as String.
static std::string GetButtonState(mitk::InteractionEvent *event)
GetEventButton Return EventButton as String.
Manager for coordinating the rendering process.
bool GetActivateMenuWidgetFlag()
MITK implementation of the QVTKWidget.