Skip to content

Commit

Permalink
STYLE: Add missing override keyword to ctkVTK(Render|Slice)View classes
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed Oct 30, 2023
1 parent 4888deb commit d63ebcf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Libs/Visualization/VTK/Widgets/ctkVTKRenderView.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public Q_SLOTS:

/// Set window interactor
/// Reimplemented to propagate interaction to Orientation widget
virtual void setInteractor(vtkRenderWindowInteractor* interactor);
void setInteractor(vtkRenderWindowInteractor* interactor) override;

/// Return pitch, roll or yaw increment (in degree)
double pitchRollYawIncrement()const;
Expand Down
4 changes: 2 additions & 2 deletions Libs/Visualization/VTK/Widgets/ctkVTKRenderView_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ class ctkVTKRenderViewPrivate : public ctkVTKAbstractViewPrivate
ctkVTKRenderViewPrivate(ctkVTKRenderView& object);

/// Convenient setup methods
virtual void setupCornerAnnotation();
virtual void setupRendering();
void setupCornerAnnotation() override;
void setupRendering() override;

void zoom(double zoomFactor);

Expand Down
6 changes: 3 additions & 3 deletions Libs/Visualization/VTK/Widgets/ctkVTKSliceView.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ class CTK_VISUALIZATION_VTK_WIDGETS_EXPORT ctkVTKSliceView : public ctkVTKAbstra

/// Set background color
/// \sa vtkLightBoxRendererManager::SetBackgroundColor
virtual void setBackgroundColor(const QColor& newBackgroundColor);
void setBackgroundColor(const QColor& newBackgroundColor) override;

/// Get background color
/// \sa setBackgroundColor();
virtual QColor backgroundColor()const;
QColor backgroundColor()const override;

/// Get highlightedBox color
/// \sa setHighlightedBoxColor();
Expand Down Expand Up @@ -133,7 +133,7 @@ public Q_SLOTS:
void resized(const QSize& size);

protected:
virtual bool eventFilter(QObject *object, QEvent *event);
bool eventFilter(QObject *object, QEvent *event) override;

private:
Q_DECLARE_PRIVATE(ctkVTKSliceView);
Expand Down
4 changes: 2 additions & 2 deletions Libs/Visualization/VTK/Widgets/ctkVTKSliceView_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class ctkVTKSliceViewPrivate : public ctkVTKAbstractViewPrivate
ctkVTKSliceViewPrivate(ctkVTKSliceView&);

/// Convenient setup methods
void setupCornerAnnotation();
void setupRendering();
void setupCornerAnnotation() override;
void setupRendering() override;

vtkSmartPointer<vtkLightBoxRendererManager> LightBoxRendererManager;
bool RenderPending;
Expand Down

0 comments on commit d63ebcf

Please sign in to comment.