Mod: Use override etc 2

This commit is contained in:
berniev
2022-08-09 11:53:46 +10:00
committed by wwmayer
parent 75fa455c5d
commit 71dc5ead2f
697 changed files with 4956 additions and 4956 deletions

View File

@@ -147,7 +147,7 @@ public:
initialize("This module is the ReverseEngineering module."); // register with Python
}
virtual ~Module() {}
~Module() override {}
private:
Py::Object approxSurface(const Py::Tuple& args, const Py::Dict& kwds)

View File

@@ -190,7 +190,7 @@ public:
* @param fParam Parameter value
* @return ValueT
*/
virtual ValueT LocalSupport(int iIndex, double fParam);
ValueT LocalSupport(int iIndex, double fParam) override;
/**
* Calculates the function value Nik(t) at the point fParam
@@ -199,7 +199,7 @@ public:
* @param fParam Parameter value
* @return Function value Nik(t)
*/
virtual double BasisFunction(int iIndex, double fParam);
double BasisFunction(int iIndex, double fParam) override;
/**
* Calculates the function values of the first iMaxDer derivatives at the point fParam
@@ -211,13 +211,13 @@ public:
* The list must be sufficiently long for iMaxDer+1 elements.
* @return List of function values
*/
virtual void DerivativesOfBasisFunction(int iIndex, int iMaxDer, double fParam,
TColStd_Array1OfReal& Derivat);
void DerivativesOfBasisFunction(int iIndex, int iMaxDer, double fParam,
TColStd_Array1OfReal& Derivat) override;
/**
* Calculates the kth derivative at the point fParam
*/
virtual double DerivativeOfBasisFunction(int iIndex, int k, double fParam);
double DerivativeOfBasisFunction(int iIndex, int k, double fParam) override;
/**
* Calculates the integral of the product of two B-splines or their derivatives.
@@ -229,7 +229,7 @@ public:
/**
* Destructor
*/
virtual~ BSplineBasis();
~ BSplineBasis() override;
protected:
@@ -375,7 +375,7 @@ public:
unsigned usUCtrlpoints=6, //Qty. of the control points in u-direction
unsigned usVCtrlpoints=6); //Qty. of the control points in v-direction
virtual ~BSplineParameterCorrection(){}
~BSplineParameterCorrection() override{}
protected:
/**
@@ -386,18 +386,18 @@ protected:
/**
* Carries out a parameter correction.
*/
virtual void DoParameterCorrection(int iIter);
void DoParameterCorrection(int iIter) override;
/**
* Solve an overdetermined LGS with the help of the Householder-Tansformation
*/
virtual bool SolveWithoutSmoothing();
bool SolveWithoutSmoothing() override;
/**
* Solve a regular system of equations by LU decomposition. Depending on the weighting,
* smoothing terms are included
*/
virtual bool SolveWithSmoothing(double fWeight);
bool SolveWithSmoothing(double fWeight) override;
public:
/**
@@ -443,7 +443,7 @@ public:
/**
* Use smoothing-terms
*/
virtual void EnableSmoothing(bool bSmooth=true, double fSmoothInfl=1.0f);
void EnableSmoothing(bool bSmooth=true, double fSmoothInfl=1.0f) override;
/**
* Use smoothing-terms

View File

@@ -52,7 +52,7 @@ public:
initialize("This module is the ReverseEngineeringGui module."); // register with Python
}
virtual ~Module() {}
~Module() override {}
private:
};

View File

@@ -36,14 +36,14 @@ class FitBSplineSurfaceWidget : public QWidget
public:
FitBSplineSurfaceWidget(const App::DocumentObjectT&, QWidget* parent = nullptr);
~FitBSplineSurfaceWidget();
~FitBSplineSurfaceWidget() override;
bool accept();
private:
void restoreSettings();
void saveSettings();
void changeEvent(QEvent *e);
void changeEvent(QEvent *e) override;
private Q_SLOTS:
void on_makePlacement_clicked();
@@ -59,13 +59,13 @@ class TaskFitBSplineSurface : public Gui::TaskView::TaskDialog
public:
TaskFitBSplineSurface(const App::DocumentObjectT&);
~TaskFitBSplineSurface();
~TaskFitBSplineSurface() override;
public:
void open();
bool accept();
void open() override;
bool accept() override;
QDialogButtonBox::StandardButtons getStandardButtons() const
QDialogButtonBox::StandardButtons getStandardButtons() const override
{ return QDialogButtonBox::Ok|QDialogButtonBox::Cancel; }
private:

View File

@@ -36,12 +36,12 @@ class PoissonWidget : public QWidget
public:
PoissonWidget(const App::DocumentObjectT&, QWidget* parent = nullptr);
~PoissonWidget();
~PoissonWidget() override;
bool accept();
private:
void changeEvent(QEvent *e);
void changeEvent(QEvent *e) override;
private:
class Private;
@@ -54,13 +54,13 @@ class TaskPoisson : public Gui::TaskView::TaskDialog
public:
TaskPoisson(const App::DocumentObjectT&);
~TaskPoisson();
~TaskPoisson() override;
public:
void open();
bool accept();
void open() override;
bool accept() override;
QDialogButtonBox::StandardButtons getStandardButtons() const
QDialogButtonBox::StandardButtons getStandardButtons() const override
{ return QDialogButtonBox::Ok|QDialogButtonBox::Cancel; }
private:

View File

@@ -42,11 +42,11 @@ class Segmentation : public QWidget
public:
Segmentation(Mesh::Feature* mesh, QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
~Segmentation();
~Segmentation() override;
void accept();
protected:
void changeEvent(QEvent *e);
void changeEvent(QEvent *e) override;
private:
std::unique_ptr<Ui_Segmentation> ui;
@@ -60,12 +60,12 @@ class TaskSegmentation : public Gui::TaskView::TaskDialog
{
public:
TaskSegmentation(Mesh::Feature* mesh);
~TaskSegmentation();
~TaskSegmentation() override;
public:
bool accept();
bool accept() override;
virtual QDialogButtonBox::StandardButtons getStandardButtons() const
QDialogButtonBox::StandardButtons getStandardButtons() const override
{ return QDialogButtonBox::Ok | QDialogButtonBox::Cancel; }
private:

View File

@@ -44,7 +44,7 @@ class SegmentationManual : public QWidget
public:
SegmentationManual(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
~SegmentationManual();
~SegmentationManual() override;
void reject();
void createSegment();
@@ -62,7 +62,7 @@ public Q_SLOTS:
void on_sphereDetect_clicked();
protected:
void changeEvent(QEvent *e);
void changeEvent(QEvent *e) override;
private:
class Private;
@@ -81,17 +81,17 @@ class TaskSegmentationManual : public Gui::TaskView::TaskDialog
public:
TaskSegmentationManual();
~TaskSegmentationManual();
~TaskSegmentationManual() override;
public:
bool accept();
void clicked(int);
bool accept() override;
void clicked(int) override;
virtual QDialogButtonBox::StandardButtons getStandardButtons() const
QDialogButtonBox::StandardButtons getStandardButtons() const override
{ return QDialogButtonBox::Ok | QDialogButtonBox::Close; }
virtual bool isAllowedAlterDocument(void) const
bool isAllowedAlterDocument(void) const override
{ return true; }
virtual void modifyStandardButtons(QDialogButtonBox*);
void modifyStandardButtons(QDialogButtonBox*) override;
private:
SegmentationManual* widget;

View File

@@ -37,12 +37,12 @@ class Workbench : public Gui::StdWorkbench
public:
Workbench();
virtual ~Workbench();
~Workbench() override;
protected:
Gui::MenuItem* setupMenuBar() const;
Gui::ToolBarItem* setupToolBars() const;
Gui::ToolBarItem* setupCommandBars() const;
Gui::MenuItem* setupMenuBar() const override;
Gui::ToolBarItem* setupToolBars() const override;
Gui::ToolBarItem* setupCommandBars() const override;
};
} // namespace ReverseEngineeringGui