Robot: modernize C++: use equals default
This commit is contained in:
@@ -52,8 +52,6 @@ public:
|
||||
initialize("This module is the Robot module."); // register with Python
|
||||
}
|
||||
|
||||
~Module() override {}
|
||||
|
||||
private:
|
||||
Py::Object simulateToFile(const Py::Tuple& args)
|
||||
{
|
||||
|
||||
@@ -53,10 +53,6 @@ Edge2TracObject::Edge2TracObject()
|
||||
NbrOfCluster = 0;
|
||||
}
|
||||
|
||||
Edge2TracObject::~Edge2TracObject()
|
||||
{
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *Edge2TracObject::execute()
|
||||
{
|
||||
App::DocumentObject* link = Source.getValue();
|
||||
|
||||
@@ -38,7 +38,6 @@ class RobotExport Edge2TracObject : public TrajectoryObject
|
||||
public:
|
||||
/// Constructor
|
||||
Edge2TracObject();
|
||||
~Edge2TracObject() override;
|
||||
|
||||
App::PropertyLinkSub Source;
|
||||
App::PropertyFloatConstraint SegValue;
|
||||
|
||||
@@ -36,13 +36,9 @@ using namespace Robot;
|
||||
|
||||
TYPESYSTEM_SOURCE(Robot::PropertyTrajectory , App::Property)
|
||||
|
||||
PropertyTrajectory::PropertyTrajectory()
|
||||
{
|
||||
}
|
||||
PropertyTrajectory::PropertyTrajectory() = default;
|
||||
|
||||
PropertyTrajectory::~PropertyTrajectory()
|
||||
{
|
||||
}
|
||||
PropertyTrajectory::~PropertyTrajectory() = default;
|
||||
|
||||
void PropertyTrajectory::setValue(const Trajectory& sh)
|
||||
{
|
||||
|
||||
@@ -76,11 +76,6 @@ Robot6Axis::Robot6Axis()
|
||||
setKinematic(KukaIR500);
|
||||
}
|
||||
|
||||
Robot6Axis::~Robot6Axis()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void Robot6Axis::setKinematic(const AxisDefinition KinDef[6])
|
||||
{
|
||||
Chain temp;
|
||||
|
||||
@@ -54,7 +54,6 @@ class RobotExport Robot6Axis : public Base::Persistence
|
||||
|
||||
public:
|
||||
Robot6Axis();
|
||||
~Robot6Axis() override;
|
||||
|
||||
// from base class
|
||||
unsigned int getMemSize () const override;
|
||||
|
||||
@@ -48,14 +48,9 @@ using namespace KDL;
|
||||
// FeatureView
|
||||
//===========================================================================
|
||||
|
||||
RobotAlgos::RobotAlgos()
|
||||
{
|
||||
|
||||
}
|
||||
RobotAlgos::RobotAlgos() = default;
|
||||
|
||||
RobotAlgos::~RobotAlgos()
|
||||
{
|
||||
}
|
||||
RobotAlgos::~RobotAlgos() = default;
|
||||
|
||||
void RobotAlgos::Test()
|
||||
{
|
||||
|
||||
@@ -60,10 +60,6 @@ RobotObject::RobotObject()
|
||||
|
||||
}
|
||||
|
||||
RobotObject::~RobotObject()
|
||||
{
|
||||
}
|
||||
|
||||
short RobotObject::mustExecute() const
|
||||
{
|
||||
return 0;
|
||||
|
||||
@@ -39,7 +39,6 @@ class RobotExport RobotObject : public App::GeoFeature
|
||||
public:
|
||||
/// Constructor
|
||||
RobotObject();
|
||||
~RobotObject() override;
|
||||
|
||||
/// returns the type name of the ViewProvider
|
||||
const char* getViewProviderName() const override {
|
||||
|
||||
@@ -51,9 +51,7 @@ Simulation::Simulation(const Robot::Trajectory &Trac,Robot::Robot6Axis &Rob)
|
||||
|
||||
}
|
||||
|
||||
Simulation::~Simulation()
|
||||
{
|
||||
}
|
||||
Simulation::~Simulation() = default;
|
||||
|
||||
void Simulation::step(double tick)
|
||||
{
|
||||
|
||||
@@ -39,10 +39,6 @@ TrajectoryCompound::TrajectoryCompound()
|
||||
|
||||
}
|
||||
|
||||
TrajectoryCompound::~TrajectoryCompound()
|
||||
{
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *TrajectoryCompound::execute()
|
||||
{
|
||||
const std::vector<DocumentObject*> &Tracs = Source.getValues();
|
||||
|
||||
@@ -38,7 +38,6 @@ class RobotExport TrajectoryCompound : public TrajectoryObject
|
||||
public:
|
||||
/// Constructor
|
||||
TrajectoryCompound();
|
||||
~TrajectoryCompound() override;
|
||||
|
||||
App::PropertyLinkList Source;
|
||||
|
||||
|
||||
@@ -50,10 +50,6 @@ TrajectoryDressUpObject::TrajectoryDressUpObject()
|
||||
|
||||
}
|
||||
|
||||
TrajectoryDressUpObject::~TrajectoryDressUpObject()
|
||||
{
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn* TrajectoryDressUpObject::execute()
|
||||
{
|
||||
Robot::Trajectory result;
|
||||
|
||||
@@ -39,7 +39,6 @@ class RobotExport TrajectoryDressUpObject : public TrajectoryObject
|
||||
public:
|
||||
/// Constructor
|
||||
TrajectoryDressUpObject();
|
||||
~TrajectoryDressUpObject() override;
|
||||
|
||||
App::PropertyLink Source;
|
||||
App::PropertySpeed Speed;
|
||||
|
||||
@@ -42,10 +42,6 @@ TrajectoryObject::TrajectoryObject()
|
||||
|
||||
}
|
||||
|
||||
TrajectoryObject::~TrajectoryObject()
|
||||
{
|
||||
}
|
||||
|
||||
short TrajectoryObject::mustExecute() const
|
||||
{
|
||||
return 0;
|
||||
|
||||
@@ -40,7 +40,6 @@ class RobotExport TrajectoryObject : public App::GeoFeature
|
||||
public:
|
||||
/// Constructor
|
||||
TrajectoryObject();
|
||||
~TrajectoryObject() override;
|
||||
|
||||
/// returns the type name of the ViewProvider
|
||||
const char* getViewProviderName() const override {
|
||||
|
||||
@@ -77,9 +77,7 @@ Waypoint::Waypoint()
|
||||
{
|
||||
}
|
||||
|
||||
Waypoint::~Waypoint()
|
||||
{
|
||||
}
|
||||
Waypoint::~Waypoint() = default;
|
||||
|
||||
unsigned int Waypoint::getMemSize () const
|
||||
{
|
||||
|
||||
@@ -59,8 +59,6 @@ public:
|
||||
initialize("This module is the RobotGui module."); // register with Python
|
||||
}
|
||||
|
||||
~Module() override {}
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
|
||||
@@ -52,11 +52,6 @@ TaskDlgEdge2Trac::TaskDlgEdge2Trac(Robot::Edge2TracObject *obj)
|
||||
Content.push_back(select);
|
||||
}
|
||||
|
||||
TaskDlgEdge2Trac::~TaskDlgEdge2Trac()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//==== calls from the TaskView ===============================================================
|
||||
|
||||
|
||||
|
||||
@@ -41,7 +41,6 @@ class RobotGuiExport TaskDlgEdge2Trac : public Gui::TaskView::TaskDialog
|
||||
|
||||
public:
|
||||
explicit TaskDlgEdge2Trac(Robot::Edge2TracObject *);
|
||||
~TaskDlgEdge2Trac() override;
|
||||
|
||||
public:
|
||||
/// is called the TaskView when the dialog is opened
|
||||
|
||||
@@ -49,11 +49,6 @@ TaskDlgSimulate::TaskDlgSimulate(Robot::RobotObject *pcRobotObject,Robot::Trajec
|
||||
Content.push_back(msg);
|
||||
}
|
||||
|
||||
TaskDlgSimulate::~TaskDlgSimulate()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//==== calls from the TaskView ===============================================================
|
||||
|
||||
|
||||
|
||||
@@ -42,7 +42,6 @@ class RobotGuiExport TaskDlgSimulate : public Gui::TaskView::TaskDialog
|
||||
|
||||
public:
|
||||
TaskDlgSimulate(Robot::RobotObject *pcRobotObject,Robot::TrajectoryObject *pcTrajectoryObject);
|
||||
~TaskDlgSimulate() override;
|
||||
|
||||
public:
|
||||
/// is called the TaskView when the dialog is opened
|
||||
|
||||
@@ -47,11 +47,6 @@ TaskDlgTrajectoryCompound::TaskDlgTrajectoryCompound(Robot::TrajectoryCompound *
|
||||
Content.push_back(select);
|
||||
}
|
||||
|
||||
TaskDlgTrajectoryCompound::~TaskDlgTrajectoryCompound()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//==== calls from the TaskView ===============================================================
|
||||
|
||||
|
||||
|
||||
@@ -39,7 +39,6 @@ class RobotGuiExport TaskDlgTrajectoryCompound : public Gui::TaskView::TaskDialo
|
||||
|
||||
public:
|
||||
TaskDlgTrajectoryCompound(Robot::TrajectoryCompound *);
|
||||
~TaskDlgTrajectoryCompound() override;
|
||||
|
||||
public:
|
||||
/// is called the TaskView when the dialog is opened
|
||||
|
||||
@@ -43,11 +43,6 @@ TaskDlgTrajectoryDressUp::TaskDlgTrajectoryDressUp(Robot::TrajectoryDressUpObjec
|
||||
Content.push_back(param);
|
||||
}
|
||||
|
||||
TaskDlgTrajectoryDressUp::~TaskDlgTrajectoryDressUp()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//==== calls from the TaskView ===============================================================
|
||||
|
||||
|
||||
|
||||
@@ -41,7 +41,6 @@ class RobotGuiExport TaskDlgTrajectoryDressUp : public Gui::TaskView::TaskDialog
|
||||
|
||||
public:
|
||||
explicit TaskDlgTrajectoryDressUp(Robot::TrajectoryDressUpObject *);
|
||||
~TaskDlgTrajectoryDressUp() override;
|
||||
|
||||
public:
|
||||
/// is called the TaskView when the dialog is opened
|
||||
|
||||
@@ -43,11 +43,6 @@ TaskWatcherRobot::TaskWatcherRobot()
|
||||
|
||||
}
|
||||
|
||||
TaskWatcherRobot::~TaskWatcherRobot()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//==== calls from the TaskView ===============================================================
|
||||
|
||||
bool TaskWatcherRobot::shouldShow()
|
||||
|
||||
@@ -40,7 +40,6 @@ class RobotGuiExport TaskWatcherRobot : public Gui::TaskView::TaskWatcher
|
||||
|
||||
public:
|
||||
TaskWatcherRobot();
|
||||
~TaskWatcherRobot() override;
|
||||
|
||||
/// is called when the document or the selection changes.
|
||||
bool shouldShow() override;
|
||||
|
||||
@@ -98,9 +98,7 @@ TrajectorySimulate::TrajectorySimulate(Robot::RobotObject *pcRobotObject,Robot::
|
||||
setTo();
|
||||
}
|
||||
|
||||
TrajectorySimulate::~TrajectorySimulate()
|
||||
{
|
||||
}
|
||||
TrajectorySimulate::~TrajectorySimulate() = default;
|
||||
|
||||
void TrajectorySimulate::setTo()
|
||||
{
|
||||
|
||||
@@ -56,13 +56,9 @@ using namespace RobotGui;
|
||||
/// @namespace RobotGui @class Workbench
|
||||
TYPESYSTEM_SOURCE(RobotGui::Workbench, Gui::StdWorkbench)
|
||||
|
||||
Workbench::Workbench()
|
||||
{
|
||||
}
|
||||
Workbench::Workbench() = default;
|
||||
|
||||
Workbench::~Workbench()
|
||||
{
|
||||
}
|
||||
Workbench::~Workbench() = default;
|
||||
|
||||
void Workbench::activated()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user