Mod: Use override etc 2
This commit is contained in:
@@ -144,10 +144,10 @@ public:
|
||||
initialize("This module is the MeshPart module."); // register with Python
|
||||
}
|
||||
|
||||
virtual ~Module() {}
|
||||
~Module() override {}
|
||||
|
||||
private:
|
||||
virtual Py::Object invoke_method_varargs(void *method_def, const Py::Tuple &args)
|
||||
Py::Object invoke_method_varargs(void *method_def, const Py::Tuple &args) override
|
||||
{
|
||||
try {
|
||||
return Py::ExtensionModule<Module>::invoke_method_varargs(method_def, args);
|
||||
|
||||
@@ -91,7 +91,7 @@ class MeshPartExport CurveProjectorShape: public CurveProjector
|
||||
{
|
||||
public:
|
||||
CurveProjectorShape(const TopoDS_Shape &aShape, const MeshKernel &pMesh);
|
||||
virtual ~CurveProjectorShape() {}
|
||||
~CurveProjectorShape() override {}
|
||||
|
||||
void projectCurve(const TopoDS_Edge& aEdge,
|
||||
std::vector<FaceSplitEdge> &vSplitEdges);
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
|
||||
|
||||
protected:
|
||||
virtual void Do();
|
||||
void Do() override;
|
||||
};
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ class MeshPartExport CurveProjectorSimple: public CurveProjector
|
||||
{
|
||||
public:
|
||||
CurveProjectorSimple(const TopoDS_Shape &aShape, const MeshKernel &pMesh);
|
||||
virtual ~CurveProjectorSimple() {}
|
||||
~CurveProjectorSimple() override {}
|
||||
|
||||
/// helper to discredicice a Edge...
|
||||
void GetSampledCurves( const TopoDS_Edge& aEdge, std::vector<Base::Vector3f>& rclPoints, unsigned long ulNbOfPoints = 30);
|
||||
@@ -127,7 +127,7 @@ public:
|
||||
|
||||
|
||||
protected:
|
||||
virtual void Do();
|
||||
void Do() override;
|
||||
};
|
||||
|
||||
/** Project by projecting a sampled curve to the mesh
|
||||
@@ -141,7 +141,7 @@ public:
|
||||
};
|
||||
|
||||
CurveProjectorWithToolMesh(const TopoDS_Shape &aShape, const MeshKernel &pMesh,MeshKernel &rToolMesh);
|
||||
virtual ~CurveProjectorWithToolMesh() {}
|
||||
~CurveProjectorWithToolMesh() override {}
|
||||
|
||||
|
||||
void makeToolMesh(const TopoDS_Edge& aEdge,std::vector<MeshGeomFacet> &cVAry );
|
||||
@@ -150,7 +150,7 @@ public:
|
||||
MeshKernel &ToolMesh;
|
||||
|
||||
protected:
|
||||
virtual void Do();
|
||||
void Do() override;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -170,8 +170,8 @@ public:
|
||||
MeshingOutput();
|
||||
|
||||
protected:
|
||||
int overflow(int c = EOF);
|
||||
int sync();
|
||||
int overflow(int c = EOF) override;
|
||||
int sync() override;
|
||||
|
||||
private:
|
||||
std::string buffer;
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
initialize("This module is the MeshPartGui module."); // register with Python
|
||||
}
|
||||
|
||||
virtual ~Module() {}
|
||||
~Module() override {}
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
@@ -83,19 +83,19 @@ public:
|
||||
this->pcRoot->addChild(coords);
|
||||
this->pcRoot->addChild(planes);
|
||||
}
|
||||
~ViewProviderCrossSections()
|
||||
~ViewProviderCrossSections() override
|
||||
{
|
||||
coords->unref();
|
||||
planes->unref();
|
||||
}
|
||||
void updateData(const App::Property*)
|
||||
void updateData(const App::Property*) override
|
||||
{
|
||||
}
|
||||
const char* getDefaultDisplayMode() const
|
||||
const char* getDefaultDisplayMode() const override
|
||||
{
|
||||
return "";
|
||||
}
|
||||
std::vector<std::string> getDisplayModes(void) const
|
||||
std::vector<std::string> getDisplayModes(void) const override
|
||||
{
|
||||
return std::vector<std::string>();
|
||||
}
|
||||
|
||||
@@ -45,13 +45,13 @@ class CrossSections : public QDialog
|
||||
|
||||
public:
|
||||
CrossSections(const Base::BoundBox3d& bb, QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
~CrossSections();
|
||||
void accept();
|
||||
~CrossSections() override;
|
||||
void accept() override;
|
||||
void apply();
|
||||
|
||||
protected:
|
||||
void changeEvent(QEvent *e);
|
||||
void keyPressEvent(QKeyEvent*);
|
||||
void changeEvent(QEvent *e) override;
|
||||
void keyPressEvent(QKeyEvent*) override;
|
||||
|
||||
private Q_SLOTS:
|
||||
void on_xyPlane_clicked();
|
||||
@@ -83,13 +83,13 @@ class TaskCrossSections : public Gui::TaskView::TaskDialog
|
||||
|
||||
public:
|
||||
TaskCrossSections(const Base::BoundBox3d& bb);
|
||||
~TaskCrossSections();
|
||||
~TaskCrossSections() override;
|
||||
|
||||
public:
|
||||
bool accept();
|
||||
void clicked(int id);
|
||||
bool accept() override;
|
||||
void clicked(int id) override;
|
||||
|
||||
virtual QDialogButtonBox::StandardButtons getStandardButtons() const
|
||||
QDialogButtonBox::StandardButtons getStandardButtons() const override
|
||||
{ return QDialogButtonBox::Ok | QDialogButtonBox::Apply | QDialogButtonBox::Cancel; }
|
||||
|
||||
private:
|
||||
|
||||
@@ -49,12 +49,12 @@ class ViewProviderCurveOnMesh : public Gui::ViewProviderDocumentObject
|
||||
|
||||
public:
|
||||
ViewProviderCurveOnMesh();
|
||||
virtual ~ViewProviderCurveOnMesh();
|
||||
~ViewProviderCurveOnMesh() override;
|
||||
void addVertex(const SbVec3f&);
|
||||
void clearVertex();
|
||||
void setPoints(const std::vector<SbVec3f>&);
|
||||
void clearPoints();
|
||||
void setDisplayMode(const char* ModeName);
|
||||
void setDisplayMode(const char* ModeName) override;
|
||||
|
||||
private:
|
||||
SoCoordinate3 * pcCoords;
|
||||
@@ -69,7 +69,7 @@ class CurveOnMeshHandler : public QObject
|
||||
|
||||
public:
|
||||
CurveOnMeshHandler(QObject* parent = nullptr);
|
||||
~CurveOnMeshHandler();
|
||||
~CurveOnMeshHandler() override;
|
||||
void enableApproximation(bool);
|
||||
void setParameters(int maxDegree, GeomAbs_Shape cont, double tol3d, double angle);
|
||||
void enableCallback(Gui::View3DInventor* viewer);
|
||||
|
||||
@@ -43,12 +43,12 @@ class CurveOnMeshWidget : public QWidget
|
||||
|
||||
public:
|
||||
CurveOnMeshWidget(Gui::View3DInventor* view, QWidget* parent=nullptr);
|
||||
~CurveOnMeshWidget();
|
||||
~CurveOnMeshWidget() override;
|
||||
|
||||
void reject();
|
||||
|
||||
protected:
|
||||
void changeEvent(QEvent *e);
|
||||
void changeEvent(QEvent *e) override;
|
||||
void setup();
|
||||
|
||||
private Q_SLOTS:
|
||||
@@ -66,12 +66,12 @@ class TaskCurveOnMesh : public Gui::TaskView::TaskDialog
|
||||
|
||||
public:
|
||||
TaskCurveOnMesh(Gui::View3DInventor* view);
|
||||
~TaskCurveOnMesh();
|
||||
~TaskCurveOnMesh() override;
|
||||
|
||||
public:
|
||||
bool reject();
|
||||
bool reject() override;
|
||||
|
||||
virtual QDialogButtonBox::StandardButtons getStandardButtons() const
|
||||
QDialogButtonBox::StandardButtons getStandardButtons() const override
|
||||
{ return QDialogButtonBox::Close; }
|
||||
|
||||
private:
|
||||
|
||||
@@ -48,7 +48,7 @@ class Mesh2ShapeGmsh : public MeshGui::GmshWidget
|
||||
|
||||
public:
|
||||
Mesh2ShapeGmsh(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
~Mesh2ShapeGmsh();
|
||||
~Mesh2ShapeGmsh() override;
|
||||
|
||||
void process(App::Document* doc, const std::list<App::SubObjectT>&);
|
||||
|
||||
@@ -56,8 +56,8 @@ Q_SIGNALS:
|
||||
void processed();
|
||||
|
||||
protected:
|
||||
virtual bool writeProject(QString& inpFile, QString& outFile);
|
||||
virtual bool loadOutput();
|
||||
bool writeProject(QString& inpFile, QString& outFile) override;
|
||||
bool loadOutput() override;
|
||||
|
||||
private:
|
||||
class Private;
|
||||
@@ -78,11 +78,11 @@ class Tessellation : public QWidget
|
||||
|
||||
public:
|
||||
Tessellation(QWidget* parent = nullptr);
|
||||
~Tessellation();
|
||||
~Tessellation() override;
|
||||
bool accept();
|
||||
|
||||
protected:
|
||||
void changeEvent(QEvent *e);
|
||||
void changeEvent(QEvent *e) override;
|
||||
void process(int method, App::Document* doc, const std::list<App::SubObjectT>&);
|
||||
void saveParameters(int method);
|
||||
void setFaceColors(int method, App::Document* doc, App::DocumentObject* obj);
|
||||
@@ -112,15 +112,15 @@ class TaskTessellation : public Gui::TaskView::TaskDialog
|
||||
|
||||
public:
|
||||
TaskTessellation();
|
||||
~TaskTessellation();
|
||||
~TaskTessellation() override;
|
||||
|
||||
public:
|
||||
virtual void open();
|
||||
virtual void clicked(int);
|
||||
virtual bool accept();
|
||||
virtual bool reject();
|
||||
void open() override;
|
||||
void clicked(int) override;
|
||||
bool accept() override;
|
||||
bool reject() override;
|
||||
|
||||
virtual QDialogButtonBox::StandardButtons getStandardButtons() const
|
||||
QDialogButtonBox::StandardButtons getStandardButtons() const override
|
||||
{ return QDialogButtonBox::Ok|QDialogButtonBox::Cancel; }
|
||||
|
||||
private:
|
||||
|
||||
@@ -37,11 +37,11 @@ class Workbench : public Gui::StdWorkbench
|
||||
|
||||
public:
|
||||
Workbench();
|
||||
virtual ~Workbench();
|
||||
~Workbench() override;
|
||||
|
||||
protected:
|
||||
Gui::ToolBarItem* setupToolBars() const;
|
||||
Gui::ToolBarItem* setupCommandBars() const;
|
||||
Gui::ToolBarItem* setupToolBars() const override;
|
||||
Gui::ToolBarItem* setupCommandBars() const override;
|
||||
};
|
||||
|
||||
} // namespace MeshPartGui
|
||||
|
||||
Reference in New Issue
Block a user