forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
QVTKWidget2.sip
45 lines (35 loc) · 1.13 KB
/
QVTKWidget2.sip
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
%Import QtCore/QtCoremod.sip
%Import QtGui/QtGuimod.sip
%Import QtOpenGL/QtOpenGLmod.sip
%Import vtkRenderingPythonSIP.sip
%Include QVTKInteractor.sip
class QVTKWidget2 : QGLWidget
{
%TypeHeaderCode
#include "QVTKWidget2.h"
%End
public:
QVTKWidget2(QWidget* parent = NULL, const QGLWidget* shareWidget=0, Qt::WindowFlags f = 0);
QVTKWidget2(QGLContext* ctx, QWidget* parent = NULL, const QGLWidget* shareWidget=0, Qt::WindowFlags f = 0);
QVTKWidget2(const QGLFormat& fmt, QWidget* parent = NULL, const QGLWidget* shareWidget=0, Qt::WindowFlags f = 0);
~QVTKWidget2();
vtkGenericOpenGLRenderWindow* GetRenderWindow();
void SetRenderWindow(vtkGenericOpenGLRenderWindow*);
QVTKInteractor* GetInteractor();
protected:
void resizeGL(int, int);
void moveEvent(QMoveEvent*);
void paintGL();
void mousePressEvent(QMouseEvent*);
void mouseMoveEvent(QMouseEvent*);
void mouseReleaseEvent(QMouseEvent*);
void enterEvent(QEvent*);
void leaveEvent(QEvent*);
void keyPressEvent(QKeyEvent*);
void keyReleaseEvent(QKeyEvent*);
void wheelEvent(QWheelEvent*);
void MakeCurrent();
void Frame();
void Start();
void End();
};