From d63ebcfc581e4a80ddc7d30e09a1d9495731a6d7 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Sun, 29 Oct 2023 14:05:56 -0400 Subject: [PATCH] STYLE: Add missing override keyword to ctkVTK(Render|Slice)View classes --- Libs/Visualization/VTK/Widgets/ctkVTKRenderView.h | 2 +- Libs/Visualization/VTK/Widgets/ctkVTKRenderView_p.h | 4 ++-- Libs/Visualization/VTK/Widgets/ctkVTKSliceView.h | 6 +++--- Libs/Visualization/VTK/Widgets/ctkVTKSliceView_p.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Libs/Visualization/VTK/Widgets/ctkVTKRenderView.h b/Libs/Visualization/VTK/Widgets/ctkVTKRenderView.h index 2f2ce2c09e..c82458a930 100644 --- a/Libs/Visualization/VTK/Widgets/ctkVTKRenderView.h +++ b/Libs/Visualization/VTK/Widgets/ctkVTKRenderView.h @@ -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; diff --git a/Libs/Visualization/VTK/Widgets/ctkVTKRenderView_p.h b/Libs/Visualization/VTK/Widgets/ctkVTKRenderView_p.h index bc2695d63f..bda5088ab7 100644 --- a/Libs/Visualization/VTK/Widgets/ctkVTKRenderView_p.h +++ b/Libs/Visualization/VTK/Widgets/ctkVTKRenderView_p.h @@ -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); diff --git a/Libs/Visualization/VTK/Widgets/ctkVTKSliceView.h b/Libs/Visualization/VTK/Widgets/ctkVTKSliceView.h index 4d4d85a44f..dff19ce135 100644 --- a/Libs/Visualization/VTK/Widgets/ctkVTKSliceView.h +++ b/Libs/Visualization/VTK/Widgets/ctkVTKSliceView.h @@ -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(); @@ -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); diff --git a/Libs/Visualization/VTK/Widgets/ctkVTKSliceView_p.h b/Libs/Visualization/VTK/Widgets/ctkVTKSliceView_p.h index 8f9812b001..c3148e0031 100644 --- a/Libs/Visualization/VTK/Widgets/ctkVTKSliceView_p.h +++ b/Libs/Visualization/VTK/Widgets/ctkVTKSliceView_p.h @@ -48,8 +48,8 @@ class ctkVTKSliceViewPrivate : public ctkVTKAbstractViewPrivate ctkVTKSliceViewPrivate(ctkVTKSliceView&); /// Convenient setup methods - void setupCornerAnnotation(); - void setupRendering(); + void setupCornerAnnotation() override; + void setupRendering() override; vtkSmartPointer LightBoxRendererManager; bool RenderPending;