27 #ifndef SVTK_RenderWindowInteractor_h
28 #define SVTK_RenderWindowInteractor_h
33 #include <vtkSmartPointer.h>
45 class vtkCallbackCommand;
46 class vtkRenderWindow;
54 #pragma warning ( disable:4251 )
88 InvokeEvent(
unsigned long theEvent,
void* theCallData);
91 virtual QPaintEngine* paintEngine()
const;
98 virtual void polish();
101 virtual void resize(
int w,
int h);
104 virtual void paintEvent( QPaintEvent* );
105 virtual void resizeEvent( QResizeEvent* );
107 virtual void mouseMoveEvent( QMouseEvent* );
108 virtual void mousePressEvent( QMouseEvent* );
109 virtual void mouseReleaseEvent( QMouseEvent* );
110 virtual void mouseDoubleClickEvent( QMouseEvent* );
111 virtual void wheelEvent( QWheelEvent* );
112 virtual void keyPressEvent( QKeyEvent* );
113 virtual void keyReleaseEvent( QKeyEvent* );
114 virtual void enterEvent(
QEvent * );
115 virtual void leaveEvent(
QEvent * );
117 virtual void contextMenuEvent( QContextMenuEvent * e );
121 virtual void focusInEvent( QFocusEvent* );
122 virtual void focusOutEvent( QFocusEvent* );
126 #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
128 virtual bool winEvent( MSG*,
long* );
129 #elif !defined(__APPLE__)
130 virtual bool x11Event( XEvent *e );
133 virtual bool nativeEvent(
const QByteArray&,
void*,
long* );
136 vtkSmartPointer<vtkGenericRenderWindowInteractor>
myDevice;
155 const char* theName);
178 GetInteractorStyle();
186 PopInteractorStyle();
195 SelectionMode()
const;
204 onEmitSelectionChanged();
208 void MouseMove( QMouseEvent* );
209 void MouseButtonPressed( QMouseEvent* );
210 void MouseButtonReleased( QMouseEvent* );
211 void MouseDoubleClicked( QMouseEvent* );
212 void ButtonPressed(
const QMouseEvent *event);
213 void ButtonReleased(
const QMouseEvent *event);
214 void WheelMoved( QWheelEvent* );
215 void KeyPressed( QKeyEvent* );
216 void KeyReleased( QKeyEvent* );
217 void contextMenuRequested( QContextMenuEvent *e );
219 void selectionChanged();
244 unsigned long theEvent,
265 #pragma warning ( default:4251 )