@@ -40,35 +40,35 @@ class VIEWER_EXPORT Viewer : public CGAL::Three::Viewer_interface {
40
40
void updateIds (CGAL::Three::Scene_item *)Q_DECL_OVERRIDE;
41
41
// ! overload several QGLViewer virtual functions
42
42
// ! Draws the scene.
43
- void draw ();
43
+ void draw ()Q_DECL_OVERRIDE ;
44
44
// !This step happens after draw(). It is here that all the useful information is displayed, like the axis system or the informative text.
45
- void drawVisualHints ();
45
+ void drawVisualHints ()Q_DECL_OVERRIDE ;
46
46
// ! Deprecated. Does the same as draw().
47
- void fastDraw ();
48
- bool isExtensionFound ();
47
+ void fastDraw ()Q_DECL_OVERRIDE ;
48
+ bool isExtensionFound ()Q_DECL_OVERRIDE ;
49
49
// ! Initializes the OpenGL functions and sets the backGround color.
50
- void initializeGL ();
50
+ void initializeGL ()Q_DECL_OVERRIDE ;
51
51
// ! Draws the scene "with names" to allow picking.
52
- void drawWithNames ();
52
+ void drawWithNames ()Q_DECL_OVERRIDE ;
53
53
/* ! Uses the parameter pixel's coordinates to get the corresponding point
54
54
* in the World frame. If this point is found, emits selectedPoint, selected,
55
55
* and selectionRay signals.
56
56
*/
57
- void postSelection (const QPoint&);
57
+ void postSelection (const QPoint&)Q_DECL_OVERRIDE ;
58
58
// ! Sets the picking matrix to allow the picking.
59
- void beginSelection (const QPoint &point);
59
+ void beginSelection (const QPoint &point)Q_DECL_OVERRIDE ;
60
60
// ! Sets the pick matrix to Identity once the picking is done.
61
- void endSelection (const QPoint &point);
61
+ void endSelection (const QPoint &point)Q_DECL_OVERRIDE ;
62
62
// ! Sets the scene for the viewer.
63
- void setScene (CGAL::Three::Scene_draw_interface* scene);
63
+ void setScene (CGAL::Three::Scene_draw_interface* scene)Q_DECL_OVERRIDE ;
64
64
// ! @returns the antialiasing state.
65
- bool antiAliasing () const ;
65
+ bool antiAliasing () const Q_DECL_OVERRIDE ;
66
66
// ! @returns the fastDrawing state.
67
- bool inFastDrawing () const ;
67
+ bool inFastDrawing () const Q_DECL_OVERRIDE ;
68
68
// ! Implementation of `Viewer_interface::inDrawWithNames()`
69
- bool inDrawWithNames () const ;
69
+ bool inDrawWithNames () const Q_DECL_OVERRIDE ;
70
70
// ! Implementation of `Viewer_interface::attribBuffers()`
71
- void attribBuffers (int program_name) const ;
71
+ void attribBuffers (int program_name) const Q_DECL_OVERRIDE ;
72
72
// ! Implementation of `Viewer_interface::getShaderProgram()`
73
73
QOpenGLShaderProgram* getShaderProgram (int name) const Q_DECL_OVERRIDE;
74
74
// !Declares a program names `name`, using `v_shader` as vertex shader and `f_shader` as fragment shader.
@@ -126,22 +126,22 @@ public Q_SLOTS:
126
126
}
127
127
128
128
protected:
129
- void postDraw ();
130
- void paintEvent (QPaintEvent *);
131
- void paintGL ();
129
+ void postDraw ()Q_DECL_OVERRIDE ;
130
+ void paintEvent (QPaintEvent *)Q_DECL_OVERRIDE ;
131
+ void paintGL ()Q_DECL_OVERRIDE ;
132
132
133
133
// !Defines the behaviour for the mouse press events
134
- void mousePressEvent (QMouseEvent*);
135
- void wheelEvent (QWheelEvent *);
134
+ void mousePressEvent (QMouseEvent*)Q_DECL_OVERRIDE ;
135
+ void wheelEvent (QWheelEvent *)Q_DECL_OVERRIDE ;
136
136
// !Defines the behaviour for the key press events
137
- void keyPressEvent (QKeyEvent*);
137
+ void keyPressEvent (QKeyEvent*)Q_DECL_OVERRIDE ;
138
138
// !Deal with context menu events
139
- void contextMenuEvent (QContextMenuEvent*);
139
+ void contextMenuEvent (QContextMenuEvent*)Q_DECL_OVERRIDE ;
140
140
// !Defines the behaviour for the key release events
141
- void keyReleaseEvent (QKeyEvent *);
141
+ void keyReleaseEvent (QKeyEvent *)Q_DECL_OVERRIDE ;
142
142
143
143
144
- void resizeGL (int w, int h);
144
+ void resizeGL (int w, int h)Q_DECL_OVERRIDE ;
145
145
146
146
protected:
147
147
friend class Viewer_impl ;
0 commit comments