Mod: Single arg ctors must be explicit
This commit is contained in:
@@ -36,7 +36,7 @@ class HypothesisPy : public Py::PythonExtension<HypothesisPy>
|
||||
{
|
||||
public:
|
||||
typedef Py::PythonExtension<HypothesisPy> HypothesisPyBase;
|
||||
HypothesisPy(std::shared_ptr<SMESH_Hypothesis>);
|
||||
explicit HypothesisPy(std::shared_ptr<SMESH_Hypothesis>);
|
||||
~HypothesisPy() override;
|
||||
std::shared_ptr<SMESH_Hypothesis> getHypothesis() const
|
||||
{ return hyp; }
|
||||
@@ -54,7 +54,7 @@ public:
|
||||
typedef SMESH_HypothesisPy<T> SMESH_HypothesisPyBase;
|
||||
static void init_type(PyObject*); // announce properties and methods
|
||||
|
||||
SMESH_HypothesisPy(SMESH_Hypothesis*);
|
||||
explicit SMESH_HypothesisPy(SMESH_Hypothesis*);
|
||||
~SMESH_HypothesisPy() override;
|
||||
|
||||
Py::Object getattr(const char *name) override;
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace FemGui {
|
||||
class AbaqusHighlighter : public Gui::SyntaxHighlighter
|
||||
{
|
||||
public:
|
||||
AbaqusHighlighter(QObject* parent);
|
||||
explicit AbaqusHighlighter(QObject* parent);
|
||||
virtual ~AbaqusHighlighter();
|
||||
|
||||
protected:
|
||||
|
||||
@@ -37,7 +37,7 @@ class DlgSettingsFemCcxImp : public Gui::Dialog::PreferencePage
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgSettingsFemCcxImp( QWidget* parent = nullptr );
|
||||
explicit DlgSettingsFemCcxImp( QWidget* parent = nullptr );
|
||||
~DlgSettingsFemCcxImp() override;
|
||||
|
||||
protected Q_SLOTS:
|
||||
|
||||
@@ -36,7 +36,7 @@ class DlgSettingsFemElmerImp : public Gui::Dialog::PreferencePage
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgSettingsFemElmerImp( QWidget* parent = nullptr );
|
||||
explicit DlgSettingsFemElmerImp( QWidget* parent = nullptr );
|
||||
~DlgSettingsFemElmerImp() override;
|
||||
|
||||
protected Q_SLOTS:
|
||||
|
||||
@@ -36,7 +36,7 @@ class DlgSettingsFemExportAbaqusImp : public Gui::Dialog::PreferencePage
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgSettingsFemExportAbaqusImp( QWidget* parent = nullptr );
|
||||
explicit DlgSettingsFemExportAbaqusImp( QWidget* parent = nullptr );
|
||||
~DlgSettingsFemExportAbaqusImp() override;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -36,7 +36,7 @@ class DlgSettingsFemGeneralImp : public Gui::Dialog::PreferencePage
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgSettingsFemGeneralImp( QWidget* parent = nullptr );
|
||||
explicit DlgSettingsFemGeneralImp( QWidget* parent = nullptr );
|
||||
~DlgSettingsFemGeneralImp() override;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -36,7 +36,7 @@ class DlgSettingsFemGmshImp : public Gui::Dialog::PreferencePage
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgSettingsFemGmshImp( QWidget* parent = nullptr );
|
||||
explicit DlgSettingsFemGmshImp( QWidget* parent = nullptr );
|
||||
~DlgSettingsFemGmshImp() override;
|
||||
|
||||
protected Q_SLOTS:
|
||||
|
||||
@@ -36,7 +36,7 @@ class DlgSettingsFemInOutVtkImp : public Gui::Dialog::PreferencePage
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgSettingsFemInOutVtkImp( QWidget* parent = nullptr );
|
||||
explicit DlgSettingsFemInOutVtkImp( QWidget* parent = nullptr );
|
||||
~DlgSettingsFemInOutVtkImp() override;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -37,7 +37,7 @@ class DlgSettingsFemMaterialImp : public Gui::Dialog::PreferencePage
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgSettingsFemMaterialImp( QWidget* parent = nullptr );
|
||||
explicit DlgSettingsFemMaterialImp( QWidget* parent = nullptr );
|
||||
~DlgSettingsFemMaterialImp() override;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -37,7 +37,7 @@ class DlgSettingsFemMystranImp : public Gui::Dialog::PreferencePage
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgSettingsFemMystranImp( QWidget* parent = nullptr );
|
||||
explicit DlgSettingsFemMystranImp( QWidget* parent = nullptr );
|
||||
~DlgSettingsFemMystranImp() override;
|
||||
|
||||
protected Q_SLOTS:
|
||||
|
||||
@@ -37,7 +37,7 @@ class DlgSettingsFemZ88Imp : public Gui::Dialog::PreferencePage
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgSettingsFemZ88Imp( QWidget* parent = nullptr );
|
||||
explicit DlgSettingsFemZ88Imp( QWidget* parent = nullptr );
|
||||
~DlgSettingsFemZ88Imp() override;
|
||||
|
||||
protected Q_SLOTS:
|
||||
|
||||
@@ -37,7 +37,7 @@ class FemSelectionGate : public Gui::SelectionFilterGate
|
||||
NodeElement
|
||||
};
|
||||
|
||||
FemSelectionGate(ElemType type)
|
||||
explicit FemSelectionGate(ElemType type)
|
||||
: Gui::SelectionFilterGate(nullPointer()),Type(type)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ class TaskAnalysisInfo : public Gui::TaskView::TaskBox
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskAnalysisInfo(Fem::FemAnalysis *pcObject,QWidget *parent = nullptr);
|
||||
explicit TaskAnalysisInfo(Fem::FemAnalysis *pcObject,QWidget *parent = nullptr);
|
||||
~TaskAnalysisInfo() override;
|
||||
|
||||
private Q_SLOTS:
|
||||
|
||||
@@ -52,7 +52,7 @@ class TaskCreateNodeSet : public Gui::TaskView::TaskBox, public Gui::SelectionOb
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskCreateNodeSet(Fem::FemSetNodesObject *pcObject,QWidget *parent = nullptr);
|
||||
explicit TaskCreateNodeSet(Fem::FemSetNodesObject *pcObject,QWidget *parent = nullptr);
|
||||
~TaskCreateNodeSet() override;
|
||||
|
||||
std::set<long> tempSet;
|
||||
|
||||
@@ -41,7 +41,7 @@ class TaskDlgAnalysis : public Gui::TaskView::TaskDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskDlgAnalysis(Fem::FemAnalysis *);
|
||||
explicit TaskDlgAnalysis(Fem::FemAnalysis *);
|
||||
~TaskDlgAnalysis() override;
|
||||
|
||||
public:
|
||||
|
||||
@@ -43,7 +43,7 @@ class TaskDlgCreateNodeSet : public Gui::TaskView::TaskDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskDlgCreateNodeSet(Fem::FemSetNodesObject *);
|
||||
explicit TaskDlgCreateNodeSet(Fem::FemSetNodesObject *);
|
||||
~TaskDlgCreateNodeSet() override;
|
||||
|
||||
public:
|
||||
|
||||
@@ -42,7 +42,7 @@ class TaskDlgMeshShapeNetgen : public Gui::TaskView::TaskDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskDlgMeshShapeNetgen(FemGui::ViewProviderFemMeshShapeNetgen *);
|
||||
explicit TaskDlgMeshShapeNetgen(FemGui::ViewProviderFemMeshShapeNetgen *);
|
||||
~TaskDlgMeshShapeNetgen() override;
|
||||
|
||||
public:
|
||||
|
||||
@@ -54,7 +54,7 @@ class TaskDriver : public Gui::TaskView::TaskBox
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskDriver(Fem::FemAnalysis *pcObject,QWidget *parent = nullptr);
|
||||
explicit TaskDriver(Fem::FemAnalysis *pcObject,QWidget *parent = nullptr);
|
||||
~TaskDriver() override;
|
||||
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ class TaskFemConstraint : public Gui::TaskView::TaskBox, public Gui::SelectionOb
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskFemConstraint(ViewProviderFemConstraint *ConstraintView,QWidget *parent = nullptr,const char* pixmapname = "");
|
||||
explicit TaskFemConstraint(ViewProviderFemConstraint *ConstraintView,QWidget *parent = nullptr,const char* pixmapname = "");
|
||||
~TaskFemConstraint() override {}
|
||||
|
||||
virtual const std::string getReferences() const {return std::string();}
|
||||
|
||||
@@ -47,7 +47,7 @@ class TaskFemConstraintBearing : public TaskFemConstraint
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskFemConstraintBearing(ViewProviderFemConstraint *ConstraintView, QWidget *parent = nullptr,
|
||||
explicit TaskFemConstraintBearing(ViewProviderFemConstraint *ConstraintView, QWidget *parent = nullptr,
|
||||
const char* pixmapname = "FEM_ConstraintBearing");
|
||||
~TaskFemConstraintBearing() override;
|
||||
|
||||
@@ -80,7 +80,7 @@ class TaskDlgFemConstraintBearing : public TaskDlgFemConstraint
|
||||
|
||||
public:
|
||||
TaskDlgFemConstraintBearing() {}
|
||||
TaskDlgFemConstraintBearing(ViewProviderFemConstraintBearing *ConstraintView);
|
||||
explicit TaskDlgFemConstraintBearing(ViewProviderFemConstraintBearing *ConstraintView);
|
||||
|
||||
/// is called by the framework if the dialog is accepted (Ok)
|
||||
bool accept() override;
|
||||
|
||||
@@ -40,7 +40,7 @@ class TaskFemConstraintContact : public TaskFemConstraint
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskFemConstraintContact(ViewProviderFemConstraintContact *ConstraintView,QWidget *parent = nullptr);
|
||||
explicit TaskFemConstraintContact(ViewProviderFemConstraintContact *ConstraintView,QWidget *parent = nullptr);
|
||||
~TaskFemConstraintContact() override;
|
||||
const std::string getReferences() const override;
|
||||
double get_Slope()const;
|
||||
@@ -69,7 +69,7 @@ class TaskDlgFemConstraintContact : public TaskDlgFemConstraint
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskDlgFemConstraintContact(ViewProviderFemConstraintContact *ConstraintView);
|
||||
explicit TaskDlgFemConstraintContact(ViewProviderFemConstraintContact *ConstraintView);
|
||||
void open() override;
|
||||
bool accept() override;
|
||||
bool reject() override;
|
||||
|
||||
@@ -49,7 +49,7 @@ class TaskFemConstraintDisplacement : public TaskFemConstraintOnBoundary
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskFemConstraintDisplacement(ViewProviderFemConstraintDisplacement *ConstraintView, QWidget *parent = nullptr);
|
||||
explicit TaskFemConstraintDisplacement(ViewProviderFemConstraintDisplacement *ConstraintView, QWidget *parent = nullptr);
|
||||
~TaskFemConstraintDisplacement() override;
|
||||
const std::string getReferences() const override;
|
||||
double get_spinxDisplacement()const;
|
||||
@@ -111,7 +111,7 @@ class TaskDlgFemConstraintDisplacement : public TaskDlgFemConstraint
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskDlgFemConstraintDisplacement(ViewProviderFemConstraintDisplacement *ConstraintView);
|
||||
explicit TaskDlgFemConstraintDisplacement(ViewProviderFemConstraintDisplacement *ConstraintView);
|
||||
void open() override;
|
||||
bool accept() override;
|
||||
bool reject() override;
|
||||
|
||||
@@ -38,7 +38,7 @@ class TaskFemConstraintFixed : public TaskFemConstraintOnBoundary
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskFemConstraintFixed(ViewProviderFemConstraintFixed *ConstraintView,QWidget *parent = nullptr);
|
||||
explicit TaskFemConstraintFixed(ViewProviderFemConstraintFixed *ConstraintView,QWidget *parent = nullptr);
|
||||
~TaskFemConstraintFixed() override;
|
||||
const std::string getReferences() const override;
|
||||
|
||||
@@ -63,7 +63,7 @@ class TaskDlgFemConstraintFixed : public TaskDlgFemConstraint
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskDlgFemConstraintFixed(ViewProviderFemConstraintFixed *ConstraintView);
|
||||
explicit TaskDlgFemConstraintFixed(ViewProviderFemConstraintFixed *ConstraintView);
|
||||
void open() override;
|
||||
bool accept() override;
|
||||
bool reject() override;
|
||||
|
||||
@@ -49,7 +49,7 @@ class TaskFemConstraintFluidBoundary : public TaskFemConstraintOnBoundary
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskFemConstraintFluidBoundary(ViewProviderFemConstraintFluidBoundary *ConstraintView,QWidget *parent = nullptr);
|
||||
explicit TaskFemConstraintFluidBoundary(ViewProviderFemConstraintFluidBoundary *ConstraintView,QWidget *parent = nullptr);
|
||||
~TaskFemConstraintFluidBoundary() override;
|
||||
|
||||
const Fem::FemSolverObject* getFemSolver() const;
|
||||
@@ -112,7 +112,7 @@ class TaskDlgFemConstraintFluidBoundary : public TaskDlgFemConstraint
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskDlgFemConstraintFluidBoundary(ViewProviderFemConstraintFluidBoundary *ConstraintView);
|
||||
explicit TaskDlgFemConstraintFluidBoundary(ViewProviderFemConstraintFluidBoundary *ConstraintView);
|
||||
|
||||
/// is called by the framework if the dialog is accepted (Ok)
|
||||
void open() override;
|
||||
|
||||
@@ -48,7 +48,7 @@ class TaskFemConstraintForce : public TaskFemConstraintOnBoundary
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskFemConstraintForce(ViewProviderFemConstraintForce *ConstraintView,QWidget *parent = nullptr);
|
||||
explicit TaskFemConstraintForce(ViewProviderFemConstraintForce *ConstraintView,QWidget *parent = nullptr);
|
||||
~TaskFemConstraintForce() override;
|
||||
double getForce() const;
|
||||
const std::string getReferences() const override;
|
||||
@@ -83,7 +83,7 @@ class TaskDlgFemConstraintForce : public TaskDlgFemConstraint
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskDlgFemConstraintForce(ViewProviderFemConstraintForce *ConstraintView);
|
||||
explicit TaskDlgFemConstraintForce(ViewProviderFemConstraintForce *ConstraintView);
|
||||
|
||||
/// is called by the framework if the dialog is accepted (Ok)
|
||||
void open() override;
|
||||
|
||||
@@ -34,7 +34,7 @@ class TaskFemConstraintGear : public TaskFemConstraintBearing
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskFemConstraintGear(ViewProviderFemConstraint *ConstraintView,QWidget *parent = nullptr,
|
||||
explicit TaskFemConstraintGear(ViewProviderFemConstraint *ConstraintView,QWidget *parent = nullptr,
|
||||
const char* pixmapname = "FEM_ConstraintGear");
|
||||
|
||||
double getDiameter() const;
|
||||
@@ -63,7 +63,7 @@ class TaskDlgFemConstraintGear : public TaskDlgFemConstraintBearing
|
||||
|
||||
public:
|
||||
TaskDlgFemConstraintGear() {}
|
||||
TaskDlgFemConstraintGear(ViewProviderFemConstraintGear *ConstraintView);
|
||||
explicit TaskDlgFemConstraintGear(ViewProviderFemConstraintGear *ConstraintView);
|
||||
|
||||
/// is called by the framework if the dialog is accepted (Ok)
|
||||
bool accept() override;
|
||||
|
||||
@@ -40,7 +40,7 @@ class TaskFemConstraintHeatflux : public TaskFemConstraintOnBoundary
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskFemConstraintHeatflux(ViewProviderFemConstraintHeatflux *ConstraintView,QWidget *parent = nullptr);
|
||||
explicit TaskFemConstraintHeatflux(ViewProviderFemConstraintHeatflux *ConstraintView,QWidget *parent = nullptr);
|
||||
~TaskFemConstraintHeatflux() override;
|
||||
double getAmbientTemp() const;
|
||||
/*double getFaceTemp(void) const;*/
|
||||
@@ -74,7 +74,7 @@ class TaskDlgFemConstraintHeatflux : public TaskDlgFemConstraint
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskDlgFemConstraintHeatflux(ViewProviderFemConstraintHeatflux *ConstraintView);
|
||||
explicit TaskDlgFemConstraintHeatflux(ViewProviderFemConstraintHeatflux *ConstraintView);
|
||||
void open() override;
|
||||
bool accept() override;
|
||||
bool reject() override;
|
||||
|
||||
@@ -40,7 +40,7 @@ class TaskFemConstraintInitialTemperature : public TaskFemConstraint
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskFemConstraintInitialTemperature(ViewProviderFemConstraintInitialTemperature *ConstraintView,QWidget *parent = nullptr);
|
||||
explicit TaskFemConstraintInitialTemperature(ViewProviderFemConstraintInitialTemperature *ConstraintView,QWidget *parent = nullptr);
|
||||
~TaskFemConstraintInitialTemperature() override;
|
||||
double get_temperature()const;
|
||||
|
||||
@@ -59,7 +59,7 @@ class TaskDlgFemConstraintInitialTemperature : public TaskDlgFemConstraint
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskDlgFemConstraintInitialTemperature(ViewProviderFemConstraintInitialTemperature *ConstraintView);
|
||||
explicit TaskDlgFemConstraintInitialTemperature(ViewProviderFemConstraintInitialTemperature *ConstraintView);
|
||||
void open() override;
|
||||
bool accept() override;
|
||||
bool reject() override;
|
||||
|
||||
@@ -48,7 +48,7 @@ class TaskFemConstraintOnBoundary : public TaskFemConstraint
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskFemConstraintOnBoundary(ViewProviderFemConstraint *ConstraintView, QWidget *parent = nullptr, const char* pixmapname = "");
|
||||
explicit TaskFemConstraintOnBoundary(ViewProviderFemConstraint *ConstraintView, QWidget *parent = nullptr, const char* pixmapname = "");
|
||||
~TaskFemConstraintOnBoundary() override;
|
||||
|
||||
protected Q_SLOTS:
|
||||
|
||||
@@ -40,7 +40,7 @@ class TaskFemConstraintPlaneRotation : public TaskFemConstraint
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskFemConstraintPlaneRotation(ViewProviderFemConstraintPlaneRotation *ConstraintView,QWidget *parent = nullptr);
|
||||
explicit TaskFemConstraintPlaneRotation(ViewProviderFemConstraintPlaneRotation *ConstraintView,QWidget *parent = nullptr);
|
||||
~TaskFemConstraintPlaneRotation() override;
|
||||
const std::string getReferences() const override;
|
||||
|
||||
@@ -64,7 +64,7 @@ class TaskDlgFemConstraintPlaneRotation : public TaskDlgFemConstraint
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskDlgFemConstraintPlaneRotation(ViewProviderFemConstraintPlaneRotation *ConstraintView);
|
||||
explicit TaskDlgFemConstraintPlaneRotation(ViewProviderFemConstraintPlaneRotation *ConstraintView);
|
||||
void open() override;
|
||||
bool accept() override;
|
||||
bool reject() override;
|
||||
|
||||
@@ -40,7 +40,7 @@ class TaskFemConstraintPressure : public TaskFemConstraintOnBoundary
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskFemConstraintPressure(ViewProviderFemConstraintPressure *ConstraintView,QWidget *parent = nullptr);
|
||||
explicit TaskFemConstraintPressure(ViewProviderFemConstraintPressure *ConstraintView,QWidget *parent = nullptr);
|
||||
~TaskFemConstraintPressure() override;
|
||||
const std::string getReferences() const override;
|
||||
double get_Pressure()const;
|
||||
@@ -68,7 +68,7 @@ class TaskDlgFemConstraintPressure : public TaskDlgFemConstraint
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskDlgFemConstraintPressure(ViewProviderFemConstraintPressure *ConstraintView);
|
||||
explicit TaskDlgFemConstraintPressure(ViewProviderFemConstraintPressure *ConstraintView);
|
||||
void open() override;
|
||||
bool accept() override;
|
||||
bool reject() override;
|
||||
|
||||
@@ -34,7 +34,7 @@ class TaskFemConstraintPulley : public TaskFemConstraintGear
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskFemConstraintPulley(ViewProviderFemConstraintPulley *ConstraintView,QWidget *parent = nullptr);
|
||||
explicit TaskFemConstraintPulley(ViewProviderFemConstraintPulley *ConstraintView,QWidget *parent = nullptr);
|
||||
|
||||
double getOtherDiameter() const;
|
||||
double getCenterDistance() const;
|
||||
@@ -58,7 +58,7 @@ class TaskDlgFemConstraintPulley : public TaskDlgFemConstraintGear
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskDlgFemConstraintPulley(ViewProviderFemConstraintPulley *ConstraintView);
|
||||
explicit TaskDlgFemConstraintPulley(ViewProviderFemConstraintPulley *ConstraintView);
|
||||
|
||||
/// is called by the framework if the dialog is accepted (Ok)
|
||||
bool accept() override;
|
||||
|
||||
@@ -38,7 +38,7 @@ class TaskFemConstraintSpring : public TaskFemConstraintOnBoundary
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskFemConstraintSpring(ViewProviderFemConstraintSpring *ConstraintView,QWidget *parent = nullptr);
|
||||
explicit TaskFemConstraintSpring(ViewProviderFemConstraintSpring *ConstraintView,QWidget *parent = nullptr);
|
||||
~TaskFemConstraintSpring() override;
|
||||
const std::string getReferences() const override;
|
||||
double get_normalStiffness()const;
|
||||
@@ -65,7 +65,7 @@ class TaskDlgFemConstraintSpring : public TaskDlgFemConstraint
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskDlgFemConstraintSpring(ViewProviderFemConstraintSpring *ConstraintView);
|
||||
explicit TaskDlgFemConstraintSpring(ViewProviderFemConstraintSpring *ConstraintView);
|
||||
void open() override;
|
||||
bool accept() override;
|
||||
bool reject() override;
|
||||
|
||||
@@ -43,7 +43,7 @@ class TaskFemConstraintTemperature : public TaskFemConstraintOnBoundary
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskFemConstraintTemperature(ViewProviderFemConstraintTemperature *ConstraintView,QWidget *parent = nullptr);
|
||||
explicit TaskFemConstraintTemperature(ViewProviderFemConstraintTemperature *ConstraintView,QWidget *parent = nullptr);
|
||||
~TaskFemConstraintTemperature() override;
|
||||
const std::string getReferences() const override;
|
||||
double get_temperature()const;
|
||||
@@ -74,7 +74,7 @@ class TaskDlgFemConstraintTemperature : public TaskDlgFemConstraint
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskDlgFemConstraintTemperature(ViewProviderFemConstraintTemperature *ConstraintView);
|
||||
explicit TaskDlgFemConstraintTemperature(ViewProviderFemConstraintTemperature *ConstraintView);
|
||||
void open() override;
|
||||
bool accept() override;
|
||||
bool reject() override;
|
||||
|
||||
@@ -41,7 +41,7 @@ class TaskFemConstraintTransform : public TaskFemConstraint
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskFemConstraintTransform(ViewProviderFemConstraintTransform *ConstraintView,QWidget *parent = nullptr);
|
||||
explicit TaskFemConstraintTransform(ViewProviderFemConstraintTransform *ConstraintView,QWidget *parent = nullptr);
|
||||
~TaskFemConstraintTransform() override;
|
||||
const std::string getReferences() const override;
|
||||
double get_X_rot()const;
|
||||
@@ -75,7 +75,7 @@ class TaskDlgFemConstraintTransform : public TaskDlgFemConstraint
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskDlgFemConstraintTransform(ViewProviderFemConstraintTransform *ConstraintView);
|
||||
explicit TaskDlgFemConstraintTransform(ViewProviderFemConstraintTransform *ConstraintView);
|
||||
void open() override;
|
||||
bool accept() override;
|
||||
bool reject() override;
|
||||
|
||||
@@ -48,7 +48,7 @@ class TaskObjectName : public Gui::TaskView::TaskBox
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskObjectName(App::DocumentObject *pcObject,QWidget *parent = nullptr);
|
||||
explicit TaskObjectName(App::DocumentObject *pcObject,QWidget *parent = nullptr);
|
||||
~TaskObjectName() override;
|
||||
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ class TaskDlgPost : public Gui::TaskView::TaskDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskDlgPost(Gui::ViewProviderDocumentObject *view);
|
||||
explicit TaskDlgPost(Gui::ViewProviderDocumentObject *view);
|
||||
~TaskDlgPost() override;
|
||||
void connectSlots();
|
||||
|
||||
@@ -219,7 +219,7 @@ class TaskPostDisplay : public TaskPostBox
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskPostDisplay(Gui::ViewProviderDocumentObject* view, QWidget *parent = nullptr);
|
||||
explicit TaskPostDisplay(Gui::ViewProviderDocumentObject* view, QWidget *parent = nullptr);
|
||||
~TaskPostDisplay() override;
|
||||
|
||||
void applyPythonCode() override;
|
||||
@@ -243,7 +243,7 @@ class TaskPostFunction : public TaskPostBox {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskPostFunction(Gui::ViewProviderDocumentObject* view, QWidget* parent = nullptr);
|
||||
explicit TaskPostFunction(Gui::ViewProviderDocumentObject* view, QWidget* parent = nullptr);
|
||||
~TaskPostFunction() override;
|
||||
|
||||
void applyPythonCode() override;
|
||||
@@ -284,7 +284,7 @@ class TaskPostDataAlongLine: public TaskPostBox {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskPostDataAlongLine(Gui::ViewProviderDocumentObject* view, QWidget* parent = nullptr);
|
||||
explicit TaskPostDataAlongLine(Gui::ViewProviderDocumentObject* view, QWidget* parent = nullptr);
|
||||
~TaskPostDataAlongLine() override;
|
||||
|
||||
void applyPythonCode() override;
|
||||
@@ -315,7 +315,7 @@ class TaskPostDataAtPoint: public TaskPostBox {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskPostDataAtPoint(Gui::ViewProviderDocumentObject* view, QWidget* parent = nullptr);
|
||||
explicit TaskPostDataAtPoint(Gui::ViewProviderDocumentObject* view, QWidget* parent = nullptr);
|
||||
~TaskPostDataAtPoint() override;
|
||||
|
||||
void applyPythonCode() override;
|
||||
@@ -344,7 +344,7 @@ class TaskPostScalarClip : public TaskPostBox {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskPostScalarClip(Gui::ViewProviderDocumentObject* view, QWidget* parent = nullptr);
|
||||
explicit TaskPostScalarClip(Gui::ViewProviderDocumentObject* view, QWidget* parent = nullptr);
|
||||
~TaskPostScalarClip() override;
|
||||
|
||||
void applyPythonCode() override;
|
||||
@@ -366,7 +366,7 @@ class TaskPostWarpVector : public TaskPostBox {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskPostWarpVector(Gui::ViewProviderDocumentObject* view, QWidget* parent = nullptr);
|
||||
explicit TaskPostWarpVector(Gui::ViewProviderDocumentObject* view, QWidget* parent = nullptr);
|
||||
~TaskPostWarpVector() override;
|
||||
|
||||
void applyPythonCode() override;
|
||||
|
||||
@@ -55,7 +55,7 @@ class TaskTetParameter : public Gui::TaskView::TaskBox
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskTetParameter(Fem::FemMeshShapeNetgenObject *pcObject,QWidget *parent = nullptr);
|
||||
explicit TaskTetParameter(Fem::FemMeshShapeNetgenObject *pcObject,QWidget *parent = nullptr);
|
||||
~TaskTetParameter() override;
|
||||
|
||||
void setInfo();
|
||||
|
||||
@@ -128,7 +128,7 @@ private:
|
||||
private:
|
||||
class ImportLegacy : public ImportOCAF {
|
||||
public:
|
||||
ImportLegacy(ImportOCAF2 &parent)
|
||||
explicit ImportLegacy(ImportOCAF2 &parent)
|
||||
:ImportOCAF(parent.pDoc, parent.pDocument, parent.default_name),myParent(parent)
|
||||
{}
|
||||
|
||||
@@ -172,7 +172,7 @@ class ImportExport ExportOCAF2
|
||||
public:
|
||||
typedef std::function<std::map<std::string,App::Color>(
|
||||
App::DocumentObject*, const char*)> GetShapeColorsFunc;
|
||||
ExportOCAF2(Handle(TDocStd_Document) h, GetShapeColorsFunc func=GetShapeColorsFunc());
|
||||
explicit ExportOCAF2(Handle(TDocStd_Document) h, GetShapeColorsFunc func=GetShapeColorsFunc());
|
||||
|
||||
void setExportHiddenObject(bool enable) {exportHidden=enable;}
|
||||
void setKeepPlacement(bool enable) {keepPlacement=enable;}
|
||||
|
||||
@@ -122,7 +122,7 @@ namespace ImportGui {
|
||||
class OCAFBrowser
|
||||
{
|
||||
public:
|
||||
OCAFBrowser(Handle(TDocStd_Document) h)
|
||||
explicit OCAFBrowser(Handle(TDocStd_Document) h)
|
||||
: pDoc(h)
|
||||
{
|
||||
myGroupIcon = QApplication::style()->standardIcon(QStyle::SP_DirIcon);
|
||||
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
class InspectionExport InspectActualMesh : public InspectActualGeometry
|
||||
{
|
||||
public:
|
||||
InspectActualMesh(const Mesh::MeshObject& rMesh);
|
||||
explicit InspectActualMesh(const Mesh::MeshObject& rMesh);
|
||||
~InspectActualMesh() override;
|
||||
unsigned long countPoints() const override;
|
||||
Base::Vector3f getPoint(unsigned long) const override;
|
||||
@@ -73,7 +73,7 @@ private:
|
||||
class InspectionExport InspectActualPoints : public InspectActualGeometry
|
||||
{
|
||||
public:
|
||||
InspectActualPoints(const Points::PointKernel&);
|
||||
explicit InspectActualPoints(const Points::PointKernel&);
|
||||
unsigned long countPoints() const override;
|
||||
Base::Vector3f getPoint(unsigned long) const override;
|
||||
|
||||
@@ -84,7 +84,7 @@ private:
|
||||
class InspectionExport InspectActualShape : public InspectActualGeometry
|
||||
{
|
||||
public:
|
||||
InspectActualShape(const Part::TopoShape&);
|
||||
explicit InspectActualShape(const Part::TopoShape&);
|
||||
unsigned long countPoints() const override;
|
||||
Base::Vector3f getPoint(unsigned long) const override;
|
||||
|
||||
|
||||
@@ -394,7 +394,7 @@ namespace InspectionGui {
|
||||
class ViewProviderProxyObject : public QObject
|
||||
{
|
||||
public:
|
||||
ViewProviderProxyObject(QWidget* w) : QObject(nullptr), widget(w) {}
|
||||
explicit ViewProviderProxyObject(QWidget* w) : QObject(nullptr), widget(w) {}
|
||||
~ViewProviderProxyObject() override {}
|
||||
void customEvent(QEvent *) override
|
||||
{
|
||||
|
||||
@@ -44,12 +44,12 @@ namespace InspectionGui {
|
||||
class SingleSelectionItem : public QTreeWidgetItem
|
||||
{
|
||||
public:
|
||||
SingleSelectionItem (QTreeWidget* parent)
|
||||
explicit SingleSelectionItem (QTreeWidget* parent)
|
||||
: QTreeWidgetItem(parent), _compItem(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
SingleSelectionItem (QTreeWidgetItem* parent)
|
||||
explicit SingleSelectionItem (QTreeWidgetItem* parent)
|
||||
: QTreeWidgetItem (parent), _compItem(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ class VisualInspection : public QDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
VisualInspection(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
explicit VisualInspection(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
~ VisualInspection() override;
|
||||
|
||||
void accept() override;
|
||||
|
||||
@@ -56,7 +56,7 @@ class MeshExport MeshAlgorithm
|
||||
{
|
||||
public:
|
||||
/// Construction
|
||||
MeshAlgorithm (const MeshKernel &rclM) : _rclMesh(rclM) { }
|
||||
explicit MeshAlgorithm (const MeshKernel &rclM) : _rclMesh(rclM) { }
|
||||
/// Destruction
|
||||
~MeshAlgorithm () { }
|
||||
|
||||
@@ -353,7 +353,7 @@ public:
|
||||
class MeshExport PointCollector : public MeshCollector
|
||||
{
|
||||
public:
|
||||
PointCollector(std::vector<PointIndex>& ind) : indices(ind){}
|
||||
explicit PointCollector(std::vector<PointIndex>& ind) : indices(ind){}
|
||||
~PointCollector() override{}
|
||||
void Append(const MeshCore::MeshKernel& kernel, FacetIndex index) override
|
||||
{
|
||||
@@ -371,7 +371,7 @@ private:
|
||||
class MeshExport FacetCollector : public MeshCollector
|
||||
{
|
||||
public:
|
||||
FacetCollector(std::vector<FacetIndex>& ind) : indices(ind){}
|
||||
explicit FacetCollector(std::vector<FacetIndex>& ind) : indices(ind){}
|
||||
~FacetCollector() override{}
|
||||
void Append(const MeshCore::MeshKernel&, FacetIndex index) override
|
||||
{
|
||||
@@ -392,7 +392,7 @@ class MeshExport MeshRefPointToFacets
|
||||
{
|
||||
public:
|
||||
/// Construction
|
||||
MeshRefPointToFacets (const MeshKernel &rclM) : _rclMesh(rclM)
|
||||
explicit MeshRefPointToFacets (const MeshKernel &rclM) : _rclMesh(rclM)
|
||||
{ Rebuild(); }
|
||||
/// Destruction
|
||||
~MeshRefPointToFacets ()
|
||||
@@ -431,7 +431,7 @@ class MeshExport MeshRefFacetToFacets
|
||||
{
|
||||
public:
|
||||
/// Construction
|
||||
MeshRefFacetToFacets (const MeshKernel &rclM) : _rclMesh(rclM)
|
||||
explicit MeshRefFacetToFacets (const MeshKernel &rclM) : _rclMesh(rclM)
|
||||
{ Rebuild(); }
|
||||
/// Destruction
|
||||
~MeshRefFacetToFacets ()
|
||||
@@ -460,7 +460,7 @@ class MeshExport MeshRefPointToPoints
|
||||
{
|
||||
public:
|
||||
/// Construction
|
||||
MeshRefPointToPoints (const MeshKernel &rclM) : _rclMesh(rclM)
|
||||
explicit MeshRefPointToPoints (const MeshKernel &rclM) : _rclMesh(rclM)
|
||||
{ Rebuild(); }
|
||||
/// Destruction
|
||||
~MeshRefPointToPoints ()
|
||||
@@ -489,7 +489,7 @@ class MeshExport MeshRefEdgeToFacets
|
||||
{
|
||||
public:
|
||||
/// Construction
|
||||
MeshRefEdgeToFacets (const MeshKernel &rclM) : _rclMesh(rclM)
|
||||
explicit MeshRefEdgeToFacets (const MeshKernel &rclM) : _rclMesh(rclM)
|
||||
{ Rebuild(); }
|
||||
/// Destruction
|
||||
~MeshRefEdgeToFacets ()
|
||||
@@ -528,7 +528,7 @@ class MeshExport MeshRefNormalToPoints
|
||||
{
|
||||
public:
|
||||
/// Construction
|
||||
MeshRefNormalToPoints (const MeshKernel &rclM) : _rclMesh(rclM)
|
||||
explicit MeshRefNormalToPoints (const MeshKernel &rclM) : _rclMesh(rclM)
|
||||
{ Rebuild(); }
|
||||
/// Destruction
|
||||
~MeshRefNormalToPoints ()
|
||||
|
||||
@@ -53,7 +53,7 @@ template <class Real>
|
||||
class PolynomialSurface : public ImplicitSurface<Real>
|
||||
{
|
||||
public:
|
||||
PolynomialSurface (const Real afCoeff[6])
|
||||
explicit PolynomialSurface (const Real afCoeff[6])
|
||||
{ for (int i=0; i<6; i++) m_afCoeff[i] = afCoeff[i]; }
|
||||
|
||||
virtual ~PolynomialSurface () {}
|
||||
@@ -498,7 +498,7 @@ public:
|
||||
* @param pKoef Pointer to the quadric coefficients
|
||||
* (double [10])
|
||||
*/
|
||||
FunctionContainer(const double *pKoef)
|
||||
explicit FunctionContainer(const double *pKoef)
|
||||
{
|
||||
Assign( pKoef );
|
||||
pImplSurf = new Wm4::QuadricSurface<double>( dKoeff );
|
||||
|
||||
@@ -114,7 +114,7 @@ private:
|
||||
void RemoveUnreferencedPoints();
|
||||
|
||||
public:
|
||||
MeshBuilder(MeshKernel &rclM);
|
||||
explicit MeshBuilder(MeshKernel &rclM);
|
||||
~MeshBuilder();
|
||||
|
||||
/**
|
||||
@@ -190,7 +190,7 @@ private:
|
||||
|
||||
public:
|
||||
typedef int size_type;
|
||||
MeshFastBuilder(MeshKernel &rclM);
|
||||
explicit MeshFastBuilder(MeshKernel &rclM);
|
||||
~MeshFastBuilder();
|
||||
|
||||
/** Initializes the class. Must be done before adding facets
|
||||
|
||||
@@ -343,7 +343,7 @@ namespace MeshCore {
|
||||
class FitPointCollector : public MeshCollector
|
||||
{
|
||||
public:
|
||||
FitPointCollector(std::set<PointIndex>& ind) : indices(ind){}
|
||||
explicit FitPointCollector(std::set<PointIndex>& ind) : indices(ind){}
|
||||
void Append(const MeshCore::MeshKernel& kernel, FacetIndex index) override
|
||||
{
|
||||
PointIndex ulP1, ulP2, ulP3;
|
||||
|
||||
@@ -55,7 +55,7 @@ private:
|
||||
class MeshExport MeshCurvature
|
||||
{
|
||||
public:
|
||||
MeshCurvature(const MeshKernel& kernel);
|
||||
explicit MeshCurvature(const MeshKernel& kernel);
|
||||
MeshCurvature(const MeshKernel& kernel, const std::vector<FacetIndex>& segm);
|
||||
float GetRadius() const { return myRadius; }
|
||||
void SetRadius(float r) { myRadius = r; }
|
||||
|
||||
@@ -33,7 +33,7 @@ class MeshKernel;
|
||||
class MeshExport MeshSimplify
|
||||
{
|
||||
public:
|
||||
MeshSimplify(MeshKernel&);
|
||||
MeshSimplify(MeshKernel&);//explicit bombs
|
||||
~MeshSimplify();
|
||||
void simplify(float tolerance, float reduction);
|
||||
void simplify(int targetSize);
|
||||
|
||||
@@ -50,7 +50,7 @@ public:
|
||||
/**
|
||||
* Construction.
|
||||
*/
|
||||
MeshEvalInvalids (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
explicit MeshEvalInvalids (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
/**
|
||||
* Destruction.
|
||||
*/
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
/**
|
||||
* Construction.
|
||||
*/
|
||||
MeshFixInvalids (MeshKernel &rclM) : MeshValidation( rclM ) { }
|
||||
explicit MeshFixInvalids (MeshKernel &rclM) : MeshValidation( rclM ) { }
|
||||
/**
|
||||
* Destruction.
|
||||
*/
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
/**
|
||||
* Construction.
|
||||
*/
|
||||
MeshEvalDuplicatePoints (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
explicit MeshEvalDuplicatePoints (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
/**
|
||||
* Destruction.
|
||||
*/
|
||||
@@ -127,7 +127,7 @@ public:
|
||||
/**
|
||||
* Construction.
|
||||
*/
|
||||
MeshFixDuplicatePoints (MeshKernel &rclM) : MeshValidation( rclM ) { }
|
||||
explicit MeshFixDuplicatePoints (MeshKernel &rclM) : MeshValidation( rclM ) { }
|
||||
/**
|
||||
* Destruction.
|
||||
*/
|
||||
@@ -149,7 +149,7 @@ public:
|
||||
/**
|
||||
* Construction.
|
||||
*/
|
||||
MeshEvalNaNPoints (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
explicit MeshEvalNaNPoints (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
/**
|
||||
* Destruction.
|
||||
*/
|
||||
@@ -175,7 +175,7 @@ public:
|
||||
/**
|
||||
* Construction.
|
||||
*/
|
||||
MeshFixNaNPoints (MeshKernel &rclM) : MeshValidation( rclM ) { }
|
||||
explicit MeshFixNaNPoints (MeshKernel &rclM) : MeshValidation( rclM ) { }
|
||||
/**
|
||||
* Destruction.
|
||||
*/
|
||||
@@ -199,7 +199,7 @@ public:
|
||||
/**
|
||||
* Construction.
|
||||
*/
|
||||
MeshEvalDuplicateFacets (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
explicit MeshEvalDuplicateFacets (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
/**
|
||||
* Destruction.
|
||||
*/
|
||||
@@ -225,7 +225,7 @@ public:
|
||||
/**
|
||||
* Construction.
|
||||
*/
|
||||
MeshFixDuplicateFacets (MeshKernel &rclM) : MeshValidation( rclM ) { }
|
||||
explicit MeshFixDuplicateFacets (MeshKernel &rclM) : MeshValidation( rclM ) { }
|
||||
/**
|
||||
* Destruction.
|
||||
*/
|
||||
@@ -246,7 +246,7 @@ public:
|
||||
/**
|
||||
* Construction.
|
||||
*/
|
||||
MeshEvalInternalFacets (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
explicit MeshEvalInternalFacets (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
/**
|
||||
* Destruction.
|
||||
*/
|
||||
@@ -345,7 +345,7 @@ public:
|
||||
* It defines the amount of perimeter of a triangle for which the shortest
|
||||
* edge is considered for removal.
|
||||
*/
|
||||
MeshRemoveNeedles (MeshKernel &rclM, float fMinEdgeLen = 0.05f)
|
||||
explicit MeshRemoveNeedles (MeshKernel &rclM, float fMinEdgeLen = 0.05f)
|
||||
: MeshValidation(rclM), fMinEdgeLength(std::min(fMinEdgeLen, 0.25f)) {}
|
||||
/**
|
||||
* Destruction.
|
||||
@@ -377,7 +377,7 @@ public:
|
||||
/**
|
||||
* Construction. The \arg fFactor must be in the range of 0.0 and 0.5.
|
||||
*/
|
||||
MeshFixCaps (MeshKernel &rclM, float fMaxAng = 2.61f, float fFactor = 0.25f) // ~150 degree
|
||||
explicit MeshFixCaps (MeshKernel &rclM, float fMaxAng = 2.61f, float fFactor = 0.25f) // ~150 degree
|
||||
: MeshValidation(rclM), fMaxAngle(fMaxAng), fSplitFactor(fFactor) { }
|
||||
/**
|
||||
* Destruction.
|
||||
@@ -470,7 +470,7 @@ public:
|
||||
/**
|
||||
* Construction.
|
||||
*/
|
||||
MeshFixMergeFacets (MeshKernel &rclM)
|
||||
explicit MeshFixMergeFacets (MeshKernel &rclM)
|
||||
: MeshValidation(rclM) { }
|
||||
/**
|
||||
* Destruction.
|
||||
@@ -489,7 +489,7 @@ public:
|
||||
class MeshExport MeshEvalDentsOnSurface : public MeshEvaluation
|
||||
{
|
||||
public:
|
||||
MeshEvalDentsOnSurface (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
explicit MeshEvalDentsOnSurface (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
~MeshEvalDentsOnSurface() override {}
|
||||
|
||||
bool Evaluate() override;
|
||||
@@ -502,7 +502,7 @@ private:
|
||||
class MeshExport MeshFixDentsOnSurface : public MeshValidation
|
||||
{
|
||||
public:
|
||||
MeshFixDentsOnSurface (MeshKernel &rclM) : MeshValidation( rclM ) { }
|
||||
explicit MeshFixDentsOnSurface (MeshKernel &rclM) : MeshValidation( rclM ) { }
|
||||
~MeshFixDentsOnSurface() override {}
|
||||
|
||||
bool Fixup() override;
|
||||
@@ -516,7 +516,7 @@ public:
|
||||
class MeshExport MeshEvalFoldsOnSurface : public MeshEvaluation
|
||||
{
|
||||
public:
|
||||
MeshEvalFoldsOnSurface (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
explicit MeshEvalFoldsOnSurface (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
~MeshEvalFoldsOnSurface() override {}
|
||||
|
||||
bool Evaluate() override;
|
||||
@@ -535,7 +535,7 @@ private:
|
||||
class MeshExport MeshEvalFoldsOnBoundary : public MeshEvaluation
|
||||
{
|
||||
public:
|
||||
MeshEvalFoldsOnBoundary (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
explicit MeshEvalFoldsOnBoundary (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
~MeshEvalFoldsOnBoundary() override {}
|
||||
|
||||
bool Evaluate() override;
|
||||
@@ -548,7 +548,7 @@ private:
|
||||
class MeshExport MeshFixFoldsOnBoundary : public MeshValidation
|
||||
{
|
||||
public:
|
||||
MeshFixFoldsOnBoundary (MeshKernel &rclM) : MeshValidation( rclM ) { }
|
||||
explicit MeshFixFoldsOnBoundary (MeshKernel &rclM) : MeshValidation( rclM ) { }
|
||||
~MeshFixFoldsOnBoundary() override {}
|
||||
|
||||
bool Fixup() override;
|
||||
@@ -561,7 +561,7 @@ public:
|
||||
class MeshExport MeshEvalFoldOversOnSurface : public MeshEvaluation
|
||||
{
|
||||
public:
|
||||
MeshEvalFoldOversOnSurface (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
explicit MeshEvalFoldOversOnSurface (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
~MeshEvalFoldOversOnSurface() override {}
|
||||
|
||||
bool Evaluate() override;
|
||||
@@ -606,7 +606,7 @@ public:
|
||||
/**
|
||||
* Construction.
|
||||
*/
|
||||
MeshEvalRangeFacet (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
explicit MeshEvalRangeFacet (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
/**
|
||||
* Destruction.
|
||||
*/
|
||||
@@ -632,7 +632,7 @@ public:
|
||||
/**
|
||||
* Construction.
|
||||
*/
|
||||
MeshFixRangeFacet (MeshKernel &rclM) : MeshValidation( rclM ) { }
|
||||
explicit MeshFixRangeFacet (MeshKernel &rclM) : MeshValidation( rclM ) { }
|
||||
/**
|
||||
* Destruction.
|
||||
*/
|
||||
@@ -654,7 +654,7 @@ public:
|
||||
/**
|
||||
* Construction.
|
||||
*/
|
||||
MeshEvalRangePoint (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
explicit MeshEvalRangePoint (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
/**
|
||||
* Destruction.
|
||||
*/
|
||||
@@ -680,7 +680,7 @@ public:
|
||||
/**
|
||||
* Construction.
|
||||
*/
|
||||
MeshFixRangePoint (MeshKernel &rclM) : MeshValidation( rclM ) { }
|
||||
explicit MeshFixRangePoint (MeshKernel &rclM) : MeshValidation( rclM ) { }
|
||||
/**
|
||||
* Destruction.
|
||||
*/
|
||||
@@ -703,7 +703,7 @@ public:
|
||||
/**
|
||||
* Construction.
|
||||
*/
|
||||
MeshEvalCorruptedFacets (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
explicit MeshEvalCorruptedFacets (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
/**
|
||||
* Destruction.
|
||||
*/
|
||||
@@ -730,7 +730,7 @@ public:
|
||||
/**
|
||||
* Construction.
|
||||
*/
|
||||
MeshFixCorruptedFacets (MeshKernel &rclM) : MeshValidation( rclM ) { }
|
||||
explicit MeshFixCorruptedFacets (MeshKernel &rclM) : MeshValidation( rclM ) { }
|
||||
/**
|
||||
* Destruction.
|
||||
*/
|
||||
@@ -752,7 +752,7 @@ public:
|
||||
/**
|
||||
* Construction.
|
||||
*/
|
||||
MeshEvalPointOnEdge (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
explicit MeshEvalPointOnEdge (const MeshKernel &rclM) : MeshEvaluation( rclM ) { }
|
||||
/**
|
||||
* Destruction.
|
||||
*/
|
||||
@@ -786,7 +786,7 @@ public:
|
||||
/**
|
||||
* Construction.
|
||||
*/
|
||||
MeshFixPointOnEdge (MeshKernel &rclM, bool fill = false) : MeshValidation( rclM ), fillBoundary(fill) { }
|
||||
explicit MeshFixPointOnEdge (MeshKernel &rclM, bool fill = false) : MeshValidation( rclM ), fillBoundary(fill) { }
|
||||
/**
|
||||
* Destruction.
|
||||
*/
|
||||
|
||||
@@ -110,7 +110,7 @@ public:
|
||||
//@{
|
||||
MeshPoint () : _ucFlag(0), _ulProp(0) { }
|
||||
inline MeshPoint (float x, float y, float z);
|
||||
inline MeshPoint (const Base::Vector3f &rclPt);
|
||||
inline MeshPoint (const Base::Vector3f &rclPt);//explicit bombs
|
||||
inline MeshPoint (const MeshPoint &rclPt);
|
||||
~MeshPoint () { }
|
||||
//@}
|
||||
@@ -583,7 +583,7 @@ public:
|
||||
// constructor
|
||||
MeshPointArray () { }
|
||||
// constructor
|
||||
MeshPointArray (PointIndex ulSize) : TMeshPointArray(ulSize) { }
|
||||
explicit MeshPointArray (PointIndex ulSize) : TMeshPointArray(ulSize) { }
|
||||
/// copy-constructor
|
||||
MeshPointArray (const MeshPointArray&);
|
||||
// Destructor
|
||||
@@ -637,7 +637,7 @@ public:
|
||||
/// constructor
|
||||
MeshFacetArray () { }
|
||||
/// constructor
|
||||
MeshFacetArray (FacetIndex ulSize) : TMeshFacetArray(ulSize) { }
|
||||
explicit MeshFacetArray (FacetIndex ulSize) : TMeshFacetArray(ulSize) { }
|
||||
/// copy-constructor
|
||||
MeshFacetArray (const MeshFacetArray&);
|
||||
/// destructor
|
||||
@@ -684,7 +684,7 @@ public:
|
||||
class MeshExport MeshPointModifier
|
||||
{
|
||||
public:
|
||||
MeshPointModifier(MeshPointArray& points)
|
||||
explicit MeshPointModifier(MeshPointArray& points)
|
||||
: rPoints(points)
|
||||
{
|
||||
}
|
||||
@@ -705,7 +705,7 @@ private:
|
||||
class MeshExport MeshFacetModifier
|
||||
{
|
||||
public:
|
||||
MeshFacetModifier(MeshFacetArray& facets)
|
||||
explicit MeshFacetModifier(MeshFacetArray& facets)
|
||||
: rFacets(facets)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace MeshCore {
|
||||
class MeshExport MeshEvaluation
|
||||
{
|
||||
public:
|
||||
MeshEvaluation (const MeshKernel &rclB) : _rclMesh(rclB) {}
|
||||
explicit MeshEvaluation (const MeshKernel &rclB) : _rclMesh(rclB) {}
|
||||
virtual ~MeshEvaluation () {}
|
||||
|
||||
/**
|
||||
@@ -70,7 +70,7 @@ protected:
|
||||
class MeshExport MeshValidation
|
||||
{
|
||||
public:
|
||||
MeshValidation (MeshKernel &rclB) : _rclMesh(rclB) {}
|
||||
explicit MeshValidation (MeshKernel &rclB) : _rclMesh(rclB) {}
|
||||
virtual ~MeshValidation () {}
|
||||
|
||||
/**
|
||||
@@ -127,7 +127,7 @@ private:
|
||||
class MeshExport MeshSameOrientationCollector : public MeshOrientationVisitor
|
||||
{
|
||||
public:
|
||||
MeshSameOrientationCollector(std::vector<FacetIndex>& aulIndices);
|
||||
explicit MeshSameOrientationCollector(std::vector<FacetIndex>& aulIndices);
|
||||
/** Returns always true and collects the indices with wrong orientation. */
|
||||
bool Visit (const MeshFacet &, const MeshFacet &, FacetIndex , unsigned long) override;
|
||||
|
||||
@@ -142,7 +142,7 @@ private:
|
||||
class MeshExport MeshEvalOrientation : public MeshEvaluation
|
||||
{
|
||||
public:
|
||||
MeshEvalOrientation (const MeshKernel& rclM);
|
||||
explicit MeshEvalOrientation (const MeshKernel& rclM);
|
||||
~MeshEvalOrientation() override;
|
||||
bool Evaluate () override;
|
||||
std::vector<FacetIndex> GetIndices() const;
|
||||
@@ -158,7 +158,7 @@ private:
|
||||
class MeshExport MeshFixOrientation : public MeshValidation
|
||||
{
|
||||
public:
|
||||
MeshFixOrientation (MeshKernel& rclM);
|
||||
explicit MeshFixOrientation (MeshKernel& rclM);
|
||||
~MeshFixOrientation() override;
|
||||
bool Fixup() override;
|
||||
};
|
||||
@@ -172,7 +172,7 @@ public:
|
||||
class MeshExport MeshEvalSolid : public MeshEvaluation
|
||||
{
|
||||
public:
|
||||
MeshEvalSolid (const MeshKernel& rclM);
|
||||
explicit MeshEvalSolid (const MeshKernel& rclM);
|
||||
~MeshEvalSolid() override;
|
||||
bool Evaluate () override;
|
||||
};
|
||||
@@ -188,7 +188,7 @@ public:
|
||||
class MeshExport MeshEvalTopology : public MeshEvaluation
|
||||
{
|
||||
public:
|
||||
MeshEvalTopology (const MeshKernel &rclB) : MeshEvaluation(rclB) {}
|
||||
explicit MeshEvalTopology (const MeshKernel &rclB) : MeshEvaluation(rclB) {}
|
||||
~MeshEvalTopology () override {}
|
||||
bool Evaluate () override;
|
||||
|
||||
@@ -232,7 +232,7 @@ protected:
|
||||
class MeshExport MeshEvalPointManifolds : public MeshEvaluation
|
||||
{
|
||||
public:
|
||||
MeshEvalPointManifolds (const MeshKernel &rclB) : MeshEvaluation(rclB) {}
|
||||
explicit MeshEvalPointManifolds (const MeshKernel &rclB) : MeshEvaluation(rclB) {}
|
||||
~MeshEvalPointManifolds () override {}
|
||||
bool Evaluate () override;
|
||||
|
||||
@@ -258,7 +258,7 @@ protected:
|
||||
class MeshExport MeshEvalSingleFacet : public MeshEvalTopology
|
||||
{
|
||||
public:
|
||||
MeshEvalSingleFacet (const MeshKernel &rclB) : MeshEvalTopology(rclB) {}
|
||||
explicit MeshEvalSingleFacet (const MeshKernel &rclB) : MeshEvalTopology(rclB) {}
|
||||
~MeshEvalSingleFacet () override {}
|
||||
bool Evaluate () override;
|
||||
};
|
||||
@@ -288,7 +288,7 @@ protected:
|
||||
class MeshExport MeshEvalSelfIntersection : public MeshEvaluation
|
||||
{
|
||||
public:
|
||||
MeshEvalSelfIntersection (const MeshKernel &rclB) : MeshEvaluation(rclB) {}
|
||||
explicit MeshEvalSelfIntersection (const MeshKernel &rclB) : MeshEvaluation(rclB) {}
|
||||
~MeshEvalSelfIntersection () override {}
|
||||
/// Evaluate the mesh and return if true if there are self intersections
|
||||
bool Evaluate () override;
|
||||
@@ -326,7 +326,7 @@ private:
|
||||
class MeshExport MeshEvalNeighbourhood : public MeshEvaluation
|
||||
{
|
||||
public:
|
||||
MeshEvalNeighbourhood (const MeshKernel &rclB) : MeshEvaluation(rclB) {}
|
||||
explicit MeshEvalNeighbourhood (const MeshKernel &rclB) : MeshEvaluation(rclB) {}
|
||||
~MeshEvalNeighbourhood () override {}
|
||||
bool Evaluate () override;
|
||||
std::vector<FacetIndex> GetIndices() const;
|
||||
@@ -339,7 +339,7 @@ public:
|
||||
class MeshExport MeshFixNeighbourhood : public MeshValidation
|
||||
{
|
||||
public:
|
||||
MeshFixNeighbourhood (MeshKernel &rclB) : MeshValidation(rclB) {}
|
||||
explicit MeshFixNeighbourhood (MeshKernel &rclB) : MeshValidation(rclB) {}
|
||||
~MeshFixNeighbourhood () override {}
|
||||
bool Fixup() override;
|
||||
};
|
||||
@@ -357,7 +357,7 @@ public:
|
||||
class MeshExport MeshEigensystem : public MeshEvaluation
|
||||
{
|
||||
public:
|
||||
MeshEigensystem (const MeshKernel &rclB);
|
||||
explicit MeshEigensystem (const MeshKernel &rclB);
|
||||
~MeshEigensystem () override {}
|
||||
|
||||
/** Returns the transformation matrix. */
|
||||
|
||||
@@ -58,7 +58,7 @@ protected:
|
||||
/** @name Construction */
|
||||
//@{
|
||||
/// Construction
|
||||
MeshGrid (const MeshKernel &rclM);
|
||||
explicit MeshGrid (const MeshKernel &rclM);
|
||||
/// Construction
|
||||
MeshGrid ();
|
||||
//@}
|
||||
@@ -184,7 +184,7 @@ public:
|
||||
/** @name Construction */
|
||||
//@{
|
||||
/// Construction
|
||||
MeshFacetGrid (const MeshKernel &rclM);
|
||||
explicit MeshFacetGrid (const MeshKernel &rclM);
|
||||
/// Construction
|
||||
MeshFacetGrid () : MeshGrid() { }
|
||||
/// Construction
|
||||
@@ -247,7 +247,7 @@ public:
|
||||
/// Construction
|
||||
MeshPointGrid ();
|
||||
/// Construction
|
||||
MeshPointGrid (const MeshKernel &rclM);
|
||||
explicit MeshPointGrid (const MeshKernel &rclM);
|
||||
/// Construction
|
||||
MeshPointGrid (const MeshKernel &rclM, int iCtGridPerAxis);
|
||||
/// Construction
|
||||
@@ -288,7 +288,7 @@ class MeshExport MeshGridIterator
|
||||
{
|
||||
public:
|
||||
/// Construction
|
||||
MeshGridIterator (const MeshGrid &rclG);
|
||||
explicit MeshGridIterator (const MeshGrid &rclG);
|
||||
/** Returns the bounding box of the current grid element. */
|
||||
Base::BoundBox3f GetBoundBox () const
|
||||
{ return _rclGrid.GetBoundBox(_ulX, _ulY, _ulZ); }
|
||||
|
||||
@@ -36,7 +36,7 @@ class MeshKernel;
|
||||
class MeshExport MeshInfo
|
||||
{
|
||||
public:
|
||||
MeshInfo (const MeshKernel &rclM);
|
||||
explicit MeshInfo (const MeshKernel &rclM);
|
||||
virtual ~MeshInfo () {}
|
||||
/**
|
||||
* Writes general information about the mesh structure into the stream.
|
||||
|
||||
@@ -51,7 +51,7 @@ public:
|
||||
/** @name Construction */
|
||||
//@{
|
||||
/// construction
|
||||
inline MeshFacetIterator (const MeshKernel &rclM);
|
||||
inline explicit MeshFacetIterator (const MeshKernel &rclM);
|
||||
/// construction
|
||||
inline MeshFacetIterator (const MeshKernel &rclM, FacetIndex ulPos);
|
||||
/// construction
|
||||
@@ -175,7 +175,7 @@ class MeshExport MeshPointIterator
|
||||
public:
|
||||
/** @name Construction */
|
||||
//@{
|
||||
inline MeshPointIterator (const MeshKernel &rclM);
|
||||
inline explicit MeshPointIterator (const MeshKernel &rclM);
|
||||
inline MeshPointIterator (const MeshKernel &rclM, PointIndex ulPos);
|
||||
inline MeshPointIterator (const MeshPointIterator &rclI);
|
||||
//@}
|
||||
@@ -271,7 +271,7 @@ protected:
|
||||
class MeshFastFacetIterator
|
||||
{
|
||||
public:
|
||||
inline MeshFastFacetIterator (const MeshKernel &rclM);
|
||||
inline explicit MeshFastFacetIterator (const MeshKernel &rclM);
|
||||
virtual ~MeshFastFacetIterator () {}
|
||||
|
||||
void Init () { _clIter = _rclFAry.begin(); }
|
||||
|
||||
@@ -33,8 +33,8 @@ class MeshExport MeshKDTree
|
||||
{
|
||||
public:
|
||||
MeshKDTree();
|
||||
MeshKDTree(const std::vector<Base::Vector3f>& points);
|
||||
MeshKDTree(const MeshPointArray& points);
|
||||
explicit MeshKDTree(const std::vector<Base::Vector3f>& points);
|
||||
explicit MeshKDTree(const MeshPointArray& points);
|
||||
~MeshKDTree();
|
||||
|
||||
void AddPoint(Base::Vector3f& point);
|
||||
|
||||
@@ -92,7 +92,7 @@ struct MeshExport Group
|
||||
class MeshExport MeshInput
|
||||
{
|
||||
public:
|
||||
MeshInput (MeshKernel &rclM)
|
||||
explicit MeshInput (MeshKernel &rclM)
|
||||
: _rclMesh(rclM), _material(nullptr){}
|
||||
MeshInput (MeshKernel &rclM, Material* m)
|
||||
: _rclMesh(rclM), _material(m){}
|
||||
@@ -151,7 +151,7 @@ protected:
|
||||
class MeshExport MeshOutput
|
||||
{
|
||||
public:
|
||||
MeshOutput (const MeshKernel &rclM)
|
||||
explicit MeshOutput (const MeshKernel &rclM)
|
||||
: _rclMesh(rclM), _material(nullptr), apply_transform(false){}
|
||||
MeshOutput (const MeshKernel &rclM, const Material* m)
|
||||
: _rclMesh(rclM), _material(m), apply_transform(false){}
|
||||
|
||||
@@ -46,7 +46,7 @@ class MeshGeomFacet;
|
||||
class MeshExport MeshProjection
|
||||
{
|
||||
public:
|
||||
MeshProjection(const MeshKernel&);
|
||||
explicit MeshProjection(const MeshKernel&);
|
||||
~MeshProjection();
|
||||
|
||||
bool projectLineOnMesh(const MeshFacetGrid& grid, const Base::Vector3f& p1, FacetIndex f1,
|
||||
|
||||
@@ -40,7 +40,7 @@ typedef std::vector<FacetIndex> MeshSegment;
|
||||
class MeshExport MeshSurfaceSegment
|
||||
{
|
||||
public:
|
||||
MeshSurfaceSegment(unsigned long minFacets)
|
||||
explicit MeshSurfaceSegment(unsigned long minFacets)
|
||||
: minFacets(minFacets) {}
|
||||
virtual ~MeshSurfaceSegment() {}
|
||||
virtual bool TestFacet (const MeshFacet &rclFacet) const = 0;
|
||||
@@ -269,7 +269,7 @@ protected:
|
||||
class MeshExport MeshSegmentAlgorithm
|
||||
{
|
||||
public:
|
||||
MeshSegmentAlgorithm(const MeshKernel& kernel) : myKernel(kernel) {}
|
||||
explicit MeshSegmentAlgorithm(const MeshKernel& kernel) : myKernel(kernel) {}
|
||||
void FindSegments(std::vector<MeshSurfaceSegmentPtr>&);
|
||||
|
||||
private:
|
||||
|
||||
@@ -50,7 +50,7 @@ public:
|
||||
C2
|
||||
};
|
||||
|
||||
AbstractSmoothing(MeshKernel&);
|
||||
explicit AbstractSmoothing(MeshKernel&);
|
||||
virtual ~AbstractSmoothing();
|
||||
void initialize(Component comp, Continuity cont);
|
||||
|
||||
@@ -68,7 +68,7 @@ protected:
|
||||
class MeshExport PlaneFitSmoothing : public AbstractSmoothing
|
||||
{
|
||||
public:
|
||||
PlaneFitSmoothing(MeshKernel&);
|
||||
explicit PlaneFitSmoothing(MeshKernel&);
|
||||
~PlaneFitSmoothing() override;
|
||||
void SetMaximum(float max) {
|
||||
maximum = max;
|
||||
@@ -83,7 +83,7 @@ private:
|
||||
class MeshExport LaplaceSmoothing : public AbstractSmoothing
|
||||
{
|
||||
public:
|
||||
LaplaceSmoothing(MeshKernel&);
|
||||
explicit LaplaceSmoothing(MeshKernel&);
|
||||
~LaplaceSmoothing() override;
|
||||
void Smooth(unsigned int) override;
|
||||
void SmoothPoints(unsigned int, const std::vector<PointIndex>&) override;
|
||||
@@ -103,7 +103,7 @@ protected:
|
||||
class MeshExport TaubinSmoothing : public LaplaceSmoothing
|
||||
{
|
||||
public:
|
||||
TaubinSmoothing(MeshKernel&);
|
||||
explicit TaubinSmoothing(MeshKernel&);
|
||||
~TaubinSmoothing() override;
|
||||
void Smooth(unsigned int) override;
|
||||
void SmoothPoints(unsigned int, const std::vector<PointIndex>&) override;
|
||||
@@ -121,7 +121,7 @@ protected:
|
||||
class MeshExport MedianFilterSmoothing : public AbstractSmoothing
|
||||
{
|
||||
public:
|
||||
MedianFilterSmoothing(MeshKernel&);
|
||||
explicit MedianFilterSmoothing(MeshKernel&);
|
||||
~MedianFilterSmoothing() override;
|
||||
void SetWeight(int w) {
|
||||
weights = w;
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace MeshCore {
|
||||
class MeshSearchNeighbours
|
||||
{
|
||||
public:
|
||||
MeshSearchNeighbours ( const MeshKernel &rclM, float fSampleDistance = 1.0f);
|
||||
explicit MeshSearchNeighbours ( const MeshKernel &rclM, float fSampleDistance = 1.0f);
|
||||
virtual ~MeshSearchNeighbours () {}
|
||||
/** Re-initilaizes internal structures. */
|
||||
void Reinit (float fSampleDistance);
|
||||
@@ -69,7 +69,7 @@ protected:
|
||||
|
||||
struct CDistRad
|
||||
{
|
||||
CDistRad (const Base::Vector3f clCenter) : _clCenter(clCenter) {}
|
||||
explicit CDistRad (const Base::Vector3f clCenter) : _clCenter(clCenter) {}
|
||||
bool operator()(const Base::Vector3f &rclPt1, const Base::Vector3f &rclPt2) { return Base::DistanceP2(_clCenter, rclPt1) < Base::DistanceP2(_clCenter, rclPt2); }
|
||||
Base::Vector3f _clCenter;
|
||||
};
|
||||
@@ -144,7 +144,7 @@ inline bool MeshSearchNeighbours::TriangleCutsSphere (const MeshFacet &rclF) con
|
||||
class MeshFaceIterator
|
||||
{
|
||||
public:
|
||||
MeshFaceIterator(const MeshKernel& mesh)
|
||||
explicit MeshFaceIterator(const MeshKernel& mesh)
|
||||
: it(mesh) {}
|
||||
Base::Vector3f operator() (FacetIndex index)
|
||||
{
|
||||
@@ -159,7 +159,7 @@ private:
|
||||
class MeshVertexIterator
|
||||
{
|
||||
public:
|
||||
MeshVertexIterator(const MeshKernel& mesh)
|
||||
explicit MeshVertexIterator(const MeshKernel& mesh)
|
||||
: it(mesh) {}
|
||||
Base::Vector3f operator() (PointIndex index)
|
||||
{
|
||||
|
||||
@@ -52,7 +52,7 @@ class MeshExport MeshTopoAlgorithm
|
||||
{
|
||||
public:
|
||||
// construction/destruction
|
||||
MeshTopoAlgorithm (MeshKernel &rclM);
|
||||
explicit MeshTopoAlgorithm (MeshKernel &rclM);
|
||||
virtual ~MeshTopoAlgorithm ();
|
||||
|
||||
public:
|
||||
@@ -336,7 +336,7 @@ class MeshExport MeshComponents
|
||||
public:
|
||||
enum TMode {OverEdge, OverPoint};
|
||||
|
||||
MeshComponents( const MeshKernel& rclMesh );
|
||||
explicit MeshComponents( const MeshKernel& rclMesh );
|
||||
~MeshComponents();
|
||||
|
||||
/**
|
||||
|
||||
@@ -222,7 +222,7 @@ protected:
|
||||
class MeshExport ConstraintDelaunayTriangulator : public AbstractPolygonTriangulator
|
||||
{
|
||||
public:
|
||||
ConstraintDelaunayTriangulator(float area);
|
||||
explicit ConstraintDelaunayTriangulator(float area);
|
||||
~ConstraintDelaunayTriangulator() override;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace MeshCore {
|
||||
class MeshExport MeshTrimByPlane
|
||||
{
|
||||
public:
|
||||
MeshTrimByPlane(MeshKernel& mesh);
|
||||
explicit MeshTrimByPlane(MeshKernel& mesh);
|
||||
~MeshTrimByPlane();
|
||||
|
||||
public:
|
||||
|
||||
@@ -33,7 +33,7 @@ template <>
|
||||
struct vec_traits<Wm4::Vector3d> {
|
||||
typedef Wm4::Vector3d vec_type;
|
||||
typedef double float_type;
|
||||
vec_traits(const vec_type& v) : v(v){}
|
||||
explicit vec_traits(const vec_type& v) : v(v){}
|
||||
inline std::tuple<float_type,float_type,float_type> get() const {
|
||||
return std::make_tuple(v.X(), v.Y(), v.Z());
|
||||
}
|
||||
@@ -45,7 +45,7 @@ template <>
|
||||
struct vec_traits<Wm4::Vector3f> {
|
||||
typedef Wm4::Vector3f vec_type;
|
||||
typedef float float_type;
|
||||
vec_traits(const vec_type& v) : v(v){}
|
||||
explicit vec_traits(const vec_type& v) : v(v){}
|
||||
inline std::tuple<float_type,float_type,float_type> get() const {
|
||||
return std::make_tuple(v.X(), v.Y(), v.Z());
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ class MeshObject;
|
||||
class MeshExport Facet : public MeshCore::MeshGeomFacet
|
||||
{
|
||||
public:
|
||||
Facet(const MeshCore::MeshFacet& face = MeshCore::MeshFacet(), const MeshObject* obj = nullptr, MeshCore::FacetIndex index = MeshCore::FACET_INDEX_MAX);
|
||||
explicit Facet(const MeshCore::MeshFacet& face = MeshCore::MeshFacet(), const MeshObject* obj = nullptr, MeshCore::FacetIndex index = MeshCore::FACET_INDEX_MAX);
|
||||
Facet(const Facet& f);
|
||||
~Facet();
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ class Feature;
|
||||
class Importer
|
||||
{
|
||||
public:
|
||||
Importer(App::Document*);
|
||||
explicit Importer(App::Document*);
|
||||
~Importer() = default;
|
||||
|
||||
void load(const std::string& fileName);
|
||||
|
||||
@@ -49,7 +49,7 @@ class MeshExport MeshPoint : public Vector3d
|
||||
|
||||
public:
|
||||
/// simple constructor
|
||||
MeshPoint(const Vector3d& vec = Vector3d(), const MeshObject* obj = nullptr, unsigned int index = UINT_MAX)
|
||||
explicit MeshPoint(const Vector3d& vec = Vector3d(), const MeshObject* obj = nullptr, unsigned int index = UINT_MAX)
|
||||
:Vector3d(vec),Index(index),Mesh(obj)
|
||||
{}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ using namespace Mesh;
|
||||
|
||||
|
||||
struct MeshPropertyLock {
|
||||
MeshPropertyLock(PropertyMeshKernel* p) : prop(p)
|
||||
explicit MeshPropertyLock(PropertyMeshKernel* p) : prop(p)
|
||||
{ if (prop) prop->startEditing(); }
|
||||
~MeshPropertyLock()
|
||||
{ if (prop) prop->finishEditing(); }
|
||||
|
||||
@@ -36,7 +36,7 @@ class DlgDecimating : public QWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgDecimating(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
explicit DlgDecimating(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
~DlgDecimating() override;
|
||||
void setNumberOfTriangles(int);
|
||||
double tolerance() const;
|
||||
|
||||
@@ -70,7 +70,7 @@ class DlgEvaluateMeshImp : public QDialog, public App::DocumentObserver
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgEvaluateMeshImp(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
explicit DlgEvaluateMeshImp(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
~DlgEvaluateMeshImp() override;
|
||||
|
||||
void setMesh(Mesh::Feature*);
|
||||
@@ -148,7 +148,7 @@ class DockEvaluateMeshImp : public DlgEvaluateMeshImp
|
||||
Q_OBJECT
|
||||
|
||||
protected:
|
||||
DockEvaluateMeshImp( QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags() );
|
||||
explicit DockEvaluateMeshImp( QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags() );
|
||||
~DockEvaluateMeshImp() override;
|
||||
void closeEvent(QCloseEvent* e) override;
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ class DlgEvaluateSettings : public QDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgEvaluateSettings(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
explicit DlgEvaluateSettings(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
~DlgEvaluateSettings() override;
|
||||
|
||||
void setNonmanifoldPointsChecked(bool);
|
||||
|
||||
@@ -34,7 +34,7 @@ class DlgRegularSolidImp : public QDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgRegularSolidImp(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
explicit DlgRegularSolidImp(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
~DlgRegularSolidImp() override;
|
||||
|
||||
public Q_SLOTS:
|
||||
|
||||
@@ -41,7 +41,7 @@ class DlgSettingsImportExport : public Gui::Dialog::PreferencePage
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgSettingsImportExport(QWidget* parent = nullptr);
|
||||
explicit DlgSettingsImportExport(QWidget* parent = nullptr);
|
||||
~DlgSettingsImportExport() override;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -42,7 +42,7 @@ class DlgSettingsMeshView : public Gui::Dialog::PreferencePage
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgSettingsMeshView(QWidget* parent = nullptr);
|
||||
explicit DlgSettingsMeshView(QWidget* parent = nullptr);
|
||||
~DlgSettingsMeshView() override;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
MedianFilter
|
||||
};
|
||||
|
||||
DlgSmoothing(QWidget* parent = nullptr);
|
||||
explicit DlgSmoothing(QWidget* parent = nullptr);
|
||||
~DlgSmoothing() override;
|
||||
int iterations() const;
|
||||
double lambdaStep() const;
|
||||
@@ -77,7 +77,7 @@ class MeshGuiExport SmoothingDialog : public QDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
SmoothingDialog(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
explicit SmoothingDialog(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
~SmoothingDialog() override;
|
||||
|
||||
int iterations() const
|
||||
|
||||
@@ -79,7 +79,7 @@ class MeshGuiExport MeshFaceAddition : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
MeshFaceAddition(Gui::View3DInventor* parent);
|
||||
explicit MeshFaceAddition(Gui::View3DInventor* parent);
|
||||
~MeshFaceAddition() override;
|
||||
|
||||
void startEditing(ViewProviderMesh*);
|
||||
|
||||
@@ -50,7 +50,7 @@ using namespace MeshGui;
|
||||
|
||||
class GmshWidget::Private {
|
||||
public:
|
||||
Private(QWidget* parent)
|
||||
explicit Private(QWidget* parent)
|
||||
: gmsh(parent)
|
||||
{
|
||||
/* coverity[uninit_ctor] Members of ui are set in setupUI() */
|
||||
@@ -270,7 +270,7 @@ void GmshWidget::reject()
|
||||
|
||||
class RemeshGmsh::Private {
|
||||
public:
|
||||
Private(Mesh::Feature* mesh)
|
||||
explicit Private(Mesh::Feature* mesh)
|
||||
: mesh(mesh)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ class MeshGuiExport GmshWidget : public QWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
GmshWidget(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
explicit GmshWidget(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
~GmshWidget() override;
|
||||
void accept();
|
||||
void reject();
|
||||
@@ -90,7 +90,7 @@ class MeshGuiExport RemeshGmsh : public GmshWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
RemeshGmsh(Mesh::Feature* mesh, QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
explicit RemeshGmsh(Mesh::Feature* mesh, QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
~RemeshGmsh() override;
|
||||
|
||||
protected:
|
||||
@@ -110,7 +110,7 @@ class TaskRemeshGmsh : public Gui::TaskView::TaskDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskRemeshGmsh(Mesh::Feature* mesh);
|
||||
explicit TaskRemeshGmsh(Mesh::Feature* mesh);
|
||||
~TaskRemeshGmsh() override;
|
||||
|
||||
public:
|
||||
|
||||
@@ -42,7 +42,7 @@ class MeshGuiExport RemoveComponents : public QWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
RemoveComponents(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
explicit RemoveComponents(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
~RemoveComponents() override;
|
||||
void reject();
|
||||
void deleteSelection();
|
||||
@@ -78,7 +78,7 @@ class MeshGuiExport RemoveComponentsDialog : public QDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
RemoveComponentsDialog(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
explicit RemoveComponentsDialog(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
~RemoveComponentsDialog() override;
|
||||
void reject() override;
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ class Ui_Segmentation;
|
||||
class MeshGuiExport Segmentation : public QWidget
|
||||
{
|
||||
public:
|
||||
Segmentation(Mesh::Feature* mesh, QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
explicit Segmentation(Mesh::Feature* mesh, QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
~Segmentation() override;
|
||||
void accept();
|
||||
|
||||
@@ -58,7 +58,7 @@ private:
|
||||
class TaskSegmentation : public Gui::TaskView::TaskDialog
|
||||
{
|
||||
public:
|
||||
TaskSegmentation(Mesh::Feature* mesh);
|
||||
explicit TaskSegmentation(Mesh::Feature* mesh);
|
||||
~TaskSegmentation() override;
|
||||
|
||||
public:
|
||||
|
||||
@@ -82,7 +82,7 @@ class MeshGuiExport SegmentationBestFit : public QWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
SegmentationBestFit(Mesh::Feature* mesh, QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
explicit SegmentationBestFit(Mesh::Feature* mesh, QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
~SegmentationBestFit() override;
|
||||
void accept();
|
||||
|
||||
@@ -109,7 +109,7 @@ private:
|
||||
class TaskSegmentationBestFit : public Gui::TaskView::TaskDialog
|
||||
{
|
||||
public:
|
||||
TaskSegmentationBestFit(Mesh::Feature* mesh);
|
||||
explicit TaskSegmentationBestFit(Mesh::Feature* mesh);
|
||||
~TaskSegmentationBestFit() override;
|
||||
|
||||
public:
|
||||
|
||||
@@ -40,7 +40,7 @@ class Selection : public QWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Selection(QWidget* parent = nullptr);
|
||||
explicit Selection(QWidget* parent = nullptr);
|
||||
~Selection() override;
|
||||
void setObjects(const std::vector<Gui::SelectionObject>&);
|
||||
std::vector<App::DocumentObject*> getObjects() const;
|
||||
|
||||
@@ -71,7 +71,7 @@ using namespace MeshGui;
|
||||
class SoOutputStreambuf : public std::streambuf
|
||||
{
|
||||
public:
|
||||
SoOutputStreambuf(SoOutput* o) : out(o)
|
||||
explicit SoOutputStreambuf(SoOutput* o) : out(o)
|
||||
{
|
||||
}
|
||||
protected:
|
||||
@@ -96,7 +96,7 @@ private:
|
||||
class SoOutputStream : public std::ostream
|
||||
{
|
||||
public:
|
||||
SoOutputStream(SoOutput* o) : std::ostream(nullptr), buf(o)
|
||||
explicit SoOutputStream(SoOutput* o) : std::ostream(nullptr), buf(o)
|
||||
{
|
||||
this->rdbuf(&buf);
|
||||
}
|
||||
@@ -107,7 +107,7 @@ private:
|
||||
class SoInputStreambuf : public std::streambuf
|
||||
{
|
||||
public:
|
||||
SoInputStreambuf(SoInput* o) : inp(o)
|
||||
explicit SoInputStreambuf(SoInput* o) : inp(o)
|
||||
{
|
||||
setg (buffer+pbSize,
|
||||
buffer+pbSize,
|
||||
@@ -160,7 +160,7 @@ private:
|
||||
class SoInputStream : public std::istream
|
||||
{
|
||||
public:
|
||||
SoInputStream(SoInput* o) : std::istream(nullptr), buf(o)
|
||||
explicit SoInputStream(SoInput* o) : std::istream(nullptr), buf(o)
|
||||
{
|
||||
this->rdbuf(&buf);
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ public:
|
||||
};
|
||||
|
||||
/// Construction
|
||||
MeshProjection(const MeshKernel& rMesh);
|
||||
explicit MeshProjection(const MeshKernel& rMesh);
|
||||
/// Destruction
|
||||
~MeshProjection();
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
Standard = 3
|
||||
};
|
||||
|
||||
Mesher(const TopoDS_Shape&);
|
||||
explicit Mesher(const TopoDS_Shape&);
|
||||
~Mesher();
|
||||
|
||||
void setMethod(Method m)
|
||||
|
||||
@@ -44,7 +44,7 @@ class CrossSections : public QDialog
|
||||
enum Plane { XY, XZ, YZ };
|
||||
|
||||
public:
|
||||
CrossSections(const Base::BoundBox3d& bb, QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
explicit CrossSections(const Base::BoundBox3d& bb, QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
~CrossSections() override;
|
||||
void accept() override;
|
||||
void apply();
|
||||
@@ -82,7 +82,7 @@ class TaskCrossSections : public Gui::TaskView::TaskDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskCrossSections(const Base::BoundBox3d& bb);
|
||||
explicit TaskCrossSections(const Base::BoundBox3d& bb);
|
||||
~TaskCrossSections() override;
|
||||
|
||||
public:
|
||||
|
||||
@@ -68,7 +68,7 @@ class CurveOnMeshHandler : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CurveOnMeshHandler(QObject* parent = nullptr);
|
||||
explicit CurveOnMeshHandler(QObject* parent = nullptr);
|
||||
~CurveOnMeshHandler() override;
|
||||
void enableApproximation(bool);
|
||||
void setParameters(int maxDegree, GeomAbs_Shape cont, double tol3d, double angle);
|
||||
|
||||
@@ -42,7 +42,7 @@ class CurveOnMeshWidget : public QWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CurveOnMeshWidget(Gui::View3DInventor* view, QWidget* parent=nullptr);
|
||||
explicit CurveOnMeshWidget(Gui::View3DInventor* view, QWidget* parent=nullptr);
|
||||
~CurveOnMeshWidget() override;
|
||||
|
||||
void reject();
|
||||
@@ -65,7 +65,7 @@ class TaskCurveOnMesh : public Gui::TaskView::TaskDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TaskCurveOnMesh(Gui::View3DInventor* view);
|
||||
explicit TaskCurveOnMesh(Gui::View3DInventor* view);
|
||||
~TaskCurveOnMesh() override;
|
||||
|
||||
public:
|
||||
|
||||
@@ -47,7 +47,7 @@ class Mesh2ShapeGmsh : public MeshGui::GmshWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Mesh2ShapeGmsh(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
explicit Mesh2ShapeGmsh(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
|
||||
~Mesh2ShapeGmsh() override;
|
||||
|
||||
void process(App::Document* doc, const std::list<App::SubObjectT>&);
|
||||
@@ -77,7 +77,7 @@ class Tessellation : public QWidget
|
||||
};
|
||||
|
||||
public:
|
||||
Tessellation(QWidget* parent = nullptr);
|
||||
explicit Tessellation(QWidget* parent = nullptr);
|
||||
~Tessellation() override;
|
||||
bool accept();
|
||||
|
||||
|
||||
@@ -46,8 +46,8 @@ class PartExport AttachEngineException : public Base::Exception
|
||||
public:
|
||||
/// Construction
|
||||
AttachEngineException();
|
||||
AttachEngineException(const char * sMessage);
|
||||
AttachEngineException(const std::string& sMessage);
|
||||
explicit AttachEngineException(const char * sMessage);
|
||||
explicit AttachEngineException(const std::string& sMessage);
|
||||
/// Destruction
|
||||
~AttachEngineException() throw() override {}
|
||||
};
|
||||
|
||||
@@ -465,7 +465,7 @@ class ExceptionCancel : public Base::Exception
|
||||
{
|
||||
public:
|
||||
ExceptionCancel(){}
|
||||
ExceptionCancel(char* msg){this->setMessage(msg);}
|
||||
explicit ExceptionCancel(char* msg){this->setMessage(msg);}
|
||||
~ExceptionCancel() throw() override {}
|
||||
};
|
||||
|
||||
|
||||
@@ -1080,7 +1080,7 @@ class PartExport GeomSurfaceOfExtrusion : public GeomSurface
|
||||
public:
|
||||
GeomSurfaceOfExtrusion();
|
||||
GeomSurfaceOfExtrusion(const Handle(Geom_Curve)&, const gp_Dir&);
|
||||
GeomSurfaceOfExtrusion(const Handle(Geom_SurfaceOfLinearExtrusion)&);
|
||||
explicit GeomSurfaceOfExtrusion(const Handle(Geom_SurfaceOfLinearExtrusion)&);
|
||||
~GeomSurfaceOfExtrusion() override;
|
||||
Geometry *copy() const override;
|
||||
|
||||
|
||||
@@ -551,7 +551,7 @@ class PartExport Geom2dTrimmedCurve : public Geom2dCurve
|
||||
TYPESYSTEM_HEADER_WITH_OVERRIDE();
|
||||
public:
|
||||
Geom2dTrimmedCurve();
|
||||
Geom2dTrimmedCurve(const Handle(Geom2d_TrimmedCurve)&);
|
||||
explicit Geom2dTrimmedCurve(const Handle(Geom2d_TrimmedCurve)&);
|
||||
~Geom2dTrimmedCurve() override;
|
||||
Geometry2d *clone() const override;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace Part {
|
||||
TYPESYSTEM_HEADER_WITH_OVERRIDE();
|
||||
public:
|
||||
inline GeometryDefaultExtension();
|
||||
GeometryDefaultExtension(const T& val, std::string name = std::string());
|
||||
explicit GeometryDefaultExtension(const T& val, std::string name = std::string());
|
||||
~GeometryDefaultExtension() override = default;
|
||||
|
||||
inline void setValue(const T& val) {value = val;};
|
||||
|
||||
@@ -97,7 +97,7 @@ App::DocumentObjectExecReturn* Primitive::execute() {
|
||||
namespace Part {
|
||||
PYTHON_TYPE_DEF(PrimitivePy, PartFeaturePy)
|
||||
PYTHON_TYPE_IMP(PrimitivePy, PartFeaturePy)
|
||||
}
|
||||
}//explicit bombs
|
||||
|
||||
#if defined(__clang__)
|
||||
# pragma clang diagnostic pop
|
||||
|
||||
@@ -52,7 +52,7 @@ template <>
|
||||
struct vec_traits<gp_Pnt> {
|
||||
typedef gp_Pnt vec_type;
|
||||
typedef double float_type;
|
||||
vec_traits(const vec_type& v) : v(v){}
|
||||
explicit vec_traits(const vec_type& v) : v(v){}
|
||||
inline std::tuple<float_type,float_type,float_type> get() const {
|
||||
return std::make_tuple(v.X(), v.Y(), v.Z());
|
||||
}
|
||||
@@ -64,7 +64,7 @@ template <>
|
||||
struct vec_traits<gp_Vec> {
|
||||
typedef gp_Vec vec_type;
|
||||
typedef double float_type;
|
||||
vec_traits(const vec_type& v) : v(v){}
|
||||
explicit vec_traits(const vec_type& v) : v(v){}
|
||||
inline std::tuple<float_type,float_type,float_type> get() const {
|
||||
return std::make_tuple(v.X(), v.Y(), v.Z());
|
||||
}
|
||||
@@ -76,7 +76,7 @@ template <>
|
||||
struct vec_traits<gp_Dir> {
|
||||
typedef gp_Dir vec_type;
|
||||
typedef double float_type;
|
||||
vec_traits(const vec_type& v) : v(v){}
|
||||
explicit vec_traits(const vec_type& v) : v(v){}
|
||||
inline std::tuple<float_type,float_type,float_type> get() const {
|
||||
return std::make_tuple(v.X(), v.Y(), v.Z());
|
||||
}
|
||||
@@ -88,7 +88,7 @@ template <>
|
||||
struct vec_traits<gp_XYZ> {
|
||||
typedef gp_XYZ vec_type;
|
||||
typedef double float_type;
|
||||
vec_traits(const vec_type& v) : v(v){}
|
||||
explicit vec_traits(const vec_type& v) : v(v){}
|
||||
inline std::tuple<float_type,float_type,float_type> get() const {
|
||||
return std::make_tuple(v.X(), v.Y(), v.Z());
|
||||
}
|
||||
|
||||
@@ -3378,7 +3378,7 @@ struct MeshVertex
|
||||
: x(X),y(Y),z(Z),i(0)
|
||||
{
|
||||
}
|
||||
MeshVertex(const Base::Vector3d& p)
|
||||
explicit MeshVertex(const Base::Vector3d& p)
|
||||
: x(p.x),y(p.y),z(p.z),i(0)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -54,8 +54,8 @@ class PartExport NullShapeException : public Base::ValueError
|
||||
public:
|
||||
/// Construction
|
||||
NullShapeException();
|
||||
NullShapeException(const char * sMessage);
|
||||
NullShapeException(const std::string& sMessage);
|
||||
explicit NullShapeException(const char * sMessage);
|
||||
explicit NullShapeException(const std::string& sMessage);
|
||||
/// Destruction
|
||||
~NullShapeException() throw() override {}
|
||||
};
|
||||
@@ -67,8 +67,8 @@ class PartExport BooleanException : public Base::CADKernelError
|
||||
public:
|
||||
/// Construction
|
||||
BooleanException();
|
||||
BooleanException(const char * sMessage);
|
||||
BooleanException(const std::string& sMessage);
|
||||
explicit BooleanException(const char * sMessage);
|
||||
explicit BooleanException(const std::string& sMessage);
|
||||
/// Destruction
|
||||
~BooleanException() throw() override {}
|
||||
};
|
||||
@@ -95,7 +95,7 @@ class PartExport TopoShape : public Data::ComplexGeoData
|
||||
|
||||
public:
|
||||
TopoShape();
|
||||
TopoShape(const TopoDS_Shape&);
|
||||
TopoShape(const TopoDS_Shape&);//explicit bombs
|
||||
TopoShape(const TopoShape&);
|
||||
~TopoShape() override;
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user