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",
65 virtual void SetResendQtEvents(
bool resend);
76 void UpdateCrosshairVisibility(
bool);
78 void UpdateCrosshairRotationMode(
int);
81 void ActivateMenuWidget(
bool state);
85 void ShowOverlayMessage(
bool show);
95 bool event(QEvent *e)
override;
97 void moveEvent(QMoveEvent *event)
override;
99 void showEvent(QShowEvent *event)
override;
101 void enterEvent(QEvent *)
override;
103 void leaveEvent(QEvent *)
override;
107 void resizeGL(
int w,
int h)
override;
110 void dragEnterEvent(QDragEnterEvent *event)
override;
114 void dropEvent(QDropEvent *event)
override;
122 void ResetGeometry();
124 void CrosshairRotationModeChanged(
int);
126 void CrosshairVisibilityChanged(
bool);
131 void NodesDropped(
QmitkRenderWindow *thisWindow, std::vector<mitk::DataNode *> nodes);
135 void DeferredHideMenu();
146 std::string GetKeyLetter(QKeyEvent *ke)
const;
147 int GetDelta(QWheelEvent *we)
const;
151 bool m_ResendQtEvents;
155 bool m_MenuWidgetActivated;
159 vtkSmartPointer<vtkGenericOpenGLRenderWindow> m_InternalRenderWindow;