annotate Samples/Qt/QStoneOpenGlWidget.cpp @ 1236:358461330978 broker

global function GetWebGLViewportsRegistry()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Dec 2019 20:45:47 +0100
parents a911f5bb48da
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
849
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
1 #include "../../Framework/OpenGL/OpenGLIncludes.h"
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
2 #include "QStoneOpenGlWidget.h"
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
3
879
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
4 #include <QMouseEvent>
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
5
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
6 using namespace OrthancStone;
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
7
849
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
8 void QStoneOpenGlWidget::initializeGL()
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
9 {
863
23701fbf228e first rendering of a 2DScene in Qt widget
Alain Mazy <alain@mazy.be>
parents: 849
diff changeset
10 glewInit();
23701fbf228e first rendering of a 2DScene in Qt widget
Alain Mazy <alain@mazy.be>
parents: 849
diff changeset
11 }
23701fbf228e first rendering of a 2DScene in Qt widget
Alain Mazy <alain@mazy.be>
parents: 849
diff changeset
12
23701fbf228e first rendering of a 2DScene in Qt widget
Alain Mazy <alain@mazy.be>
parents: 849
diff changeset
13 void QStoneOpenGlWidget::MakeCurrent()
23701fbf228e first rendering of a 2DScene in Qt widget
Alain Mazy <alain@mazy.be>
parents: 849
diff changeset
14 {
23701fbf228e first rendering of a 2DScene in Qt widget
Alain Mazy <alain@mazy.be>
parents: 849
diff changeset
15 this->makeCurrent();
849
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
16 }
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
17
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
18 void QStoneOpenGlWidget::resizeGL(int w, int h)
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
19 {
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
20
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
21 }
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
22
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
23 void QStoneOpenGlWidget::paintGL()
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
24 {
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
25 if (compositor_)
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
26 {
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
27 compositor_->Refresh();
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
28 }
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
29 doneCurrent();
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
30 }
8a8cf2991538 Qt sample (work in progress)
Alain Mazy <alain@mazy.be>
parents:
diff changeset
31
879
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
32 void ConvertFromPlatform(
881
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
33 OrthancStone::GuiAdapterMouseEvent& guiEvent,
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
34 PointerEvent& pointerEvent,
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
35 const QMouseEvent& qtEvent,
897
Alain Mazy <alain@mazy.be>
parents: 884
diff changeset
36 const IViewport& viewport)
879
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
37 {
881
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
38 guiEvent.targetX = qtEvent.x();
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
39 guiEvent.targetY = qtEvent.y();
897
Alain Mazy <alain@mazy.be>
parents: 884
diff changeset
40 pointerEvent.AddPosition(viewport.GetPixelCenterCoordinates(guiEvent.targetX, guiEvent.targetY));
879
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
41
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
42 switch (qtEvent.button())
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
43 {
881
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
44 case Qt::LeftButton: guiEvent.button = OrthancStone::GUIADAPTER_MOUSEBUTTON_LEFT; break;
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
45 case Qt::MiddleButton: guiEvent.button = OrthancStone::GUIADAPTER_MOUSEBUTTON_MIDDLE; break;
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
46 case Qt::RightButton: guiEvent.button = OrthancStone::GUIADAPTER_MOUSEBUTTON_RIGHT; break;
879
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
47 default:
881
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
48 guiEvent.button = OrthancStone::GUIADAPTER_MOUSEBUTTON_LEFT;
879
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
49 }
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
50
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
51 if (qtEvent.modifiers().testFlag(Qt::ShiftModifier))
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
52 {
881
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
53 guiEvent.shiftKey = true;
879
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
54 }
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
55 if (qtEvent.modifiers().testFlag(Qt::ControlModifier))
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
56 {
881
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
57 guiEvent.ctrlKey = true;
879
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
58 }
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
59 if (qtEvent.modifiers().testFlag(Qt::AltModifier))
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
60 {
881
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
61 guiEvent.altKey = true;
879
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
62 }
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
63 }
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
64
881
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
65 void QStoneOpenGlWidget::mouseEvent(QMouseEvent* qtEvent, OrthancStone::GuiAdapterHidEventType guiEventType)
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
66 {
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
67 OrthancStone::GuiAdapterMouseEvent guiEvent;
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
68 PointerEvent pointerEvent;
916
a911f5bb48da MultiPlatform Basic Scene sample (so far: SDL + Qt)
Alain Mazy <alain@mazy.be>
parents: 897
diff changeset
69 ConvertFromPlatform(guiEvent, pointerEvent, *qtEvent, *this);
881
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
70 guiEvent.type = guiEventType;
879
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
71
881
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
72 if (sceneInteractor_.get() != NULL && compositor_.get() != NULL)
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
73 {
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
74 sceneInteractor_->OnMouseEvent(guiEvent, pointerEvent);
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
75 }
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
76
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
77 // force redraw of the OpenGL widget
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
78 update();
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
79 }
879
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
80
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
81 void QStoneOpenGlWidget::mousePressEvent(QMouseEvent* qtEvent)
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
82 {
881
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
83 mouseEvent(qtEvent, GUIADAPTER_EVENT_MOUSEDOWN);
879
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
84 }
12b591d5d63c some Qt integration (wip)
Alain Mazy <alain@mazy.be>
parents: 863
diff changeset
85
881
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
86 void QStoneOpenGlWidget::mouseMoveEvent(QMouseEvent* qtEvent)
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
87 {
883
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
88 mouseEvent(qtEvent, GUIADAPTER_EVENT_MOUSEMOVE);
881
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
89 }
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
90
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
91 void QStoneOpenGlWidget::mouseReleaseEvent(QMouseEvent* qtEvent)
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
92 {
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
93 mouseEvent(qtEvent, GUIADAPTER_EVENT_MOUSEUP);
Alain Mazy <alain@mazy.be>
parents: 879
diff changeset
94 }
883
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
95
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
96 void ConvertFromPlatform(
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
97 OrthancStone::GuiAdapterKeyboardEvent& guiEvent,
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
98 const QKeyEvent& qtEvent)
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
99 {
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
100 if (qtEvent.text().length() > 0)
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
101 {
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
102 guiEvent.sym[0] = qtEvent.text()[0].cell();
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
103 }
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
104 else
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
105 {
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
106 guiEvent.sym[0] = 0;
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
107 }
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
108 guiEvent.sym[1] = 0;
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
109
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
110 if (qtEvent.modifiers().testFlag(Qt::ShiftModifier))
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
111 {
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
112 guiEvent.shiftKey = true;
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
113 }
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
114 if (qtEvent.modifiers().testFlag(Qt::ControlModifier))
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
115 {
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
116 guiEvent.ctrlKey = true;
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
117 }
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
118 if (qtEvent.modifiers().testFlag(Qt::AltModifier))
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
119 {
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
120 guiEvent.altKey = true;
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
121 }
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
122
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
123 }
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
124
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
125
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
126 bool QStoneOpenGlWidget::keyEvent(QKeyEvent* qtEvent, OrthancStone::GuiAdapterHidEventType guiEventType)
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
127 {
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
128 bool handled = false;
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
129 OrthancStone::GuiAdapterKeyboardEvent guiEvent;
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
130 ConvertFromPlatform(guiEvent, *qtEvent);
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
131 guiEvent.type = guiEventType;
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
132
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
133 if (sceneInteractor_.get() != NULL && compositor_.get() != NULL)
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
134 {
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
135 handled = sceneInteractor_->OnKeyboardEvent(guiEvent);
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
136
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
137 if (handled)
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
138 {
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
139 // force redraw of the OpenGL widget
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
140 update();
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
141 }
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
142 }
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
143 return handled;
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
144 }
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
145
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
146 void QStoneOpenGlWidget::keyPressEvent(QKeyEvent *qtEvent)
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
147 {
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
148 bool handled = keyEvent(qtEvent, GUIADAPTER_EVENT_KEYDOWN);
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
149 if (!handled)
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
150 {
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
151 QOpenGLWidget::keyPressEvent(qtEvent);
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
152 }
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
153 }
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
154
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
155 void QStoneOpenGlWidget::keyReleaseEvent(QKeyEvent *qtEvent)
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
156 {
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
157 bool handled = keyEvent(qtEvent, GUIADAPTER_EVENT_KEYUP);
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
158 if (!handled)
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
159 {
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
160 QOpenGLWidget::keyPressEvent(qtEvent);
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
161 }
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
162 }
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
163
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
164 void QStoneOpenGlWidget::wheelEvent(QWheelEvent *qtEvent)
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
165 {
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
166 OrthancStone::GuiAdapterWheelEvent guiEvent;
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
167 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented);
884
aad5ccf1be10 cleanup
Alain Mazy <alain@mazy.be>
parents: 883
diff changeset
168
aad5ccf1be10 cleanup
Alain Mazy <alain@mazy.be>
parents: 883
diff changeset
169 // force redraw of the OpenGL widget
aad5ccf1be10 cleanup
Alain Mazy <alain@mazy.be>
parents: 883
diff changeset
170 update();
883
30268a0cafca basic scene Qt sample working
Alain Mazy <alain@mazy.be>
parents: 881
diff changeset
171 }