Robot: Apply clang format

This commit is contained in:
wmayer
2023-09-11 10:24:21 +02:00
committed by wwmayer
parent e1aa8197d3
commit 4c470ecd11
33 changed files with 1215 additions and 967 deletions

View File

@@ -37,9 +37,16 @@ PROPERTY_SOURCE(Robot::TrajectoryObject, App::GeoFeature)
TrajectoryObject::TrajectoryObject()
{
ADD_PROPERTY_TYPE(Base, (Base::Placement()), "Trajectory", Prop_None, "Base frame of the trajectory");
ADD_PROPERTY_TYPE(Trajectory, (Robot::Trajectory()), "Trajectory", Prop_None, "Trajectory object");
ADD_PROPERTY_TYPE(Base,
(Base::Placement()),
"Trajectory",
Prop_None,
"Base frame of the trajectory");
ADD_PROPERTY_TYPE(Trajectory,
(Robot::Trajectory()),
"Trajectory",
Prop_None,
"Trajectory object");
}
short TrajectoryObject::mustExecute() const
@@ -47,13 +54,13 @@ short TrajectoryObject::mustExecute() const
return 0;
}
PyObject *TrajectoryObject::getPyObject()
PyObject* TrajectoryObject::getPyObject()
{
if (PythonObject.is(Py::_None())){
if (PythonObject.is(Py::_None())) {
// ref counter is set to 1
PythonObject = Py::Object(new DocumentObjectPy(this),true);
PythonObject = Py::Object(new DocumentObjectPy(this), true);
}
return Py::new_reference_to(PythonObject);
return Py::new_reference_to(PythonObject);
}
void TrajectoryObject::onChanged(const Property* prop)