Points: apply clang-formatting
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
# include <vector>
|
||||
#include <vector>
|
||||
#endif
|
||||
|
||||
#include "PointsFeature.h"
|
||||
@@ -47,18 +47,18 @@ short Feature::mustExecute() const
|
||||
return 0;
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *Feature::execute()
|
||||
App::DocumentObjectExecReturn* Feature::execute()
|
||||
{
|
||||
this->Points.touch();
|
||||
return App::DocumentObject::StdReturn;
|
||||
}
|
||||
|
||||
void Feature::Restore(Base::XMLReader &reader)
|
||||
void Feature::Restore(Base::XMLReader& reader)
|
||||
{
|
||||
GeoFeature::Restore(reader);
|
||||
}
|
||||
|
||||
void Feature::RestoreDocFile(Base::Reader &reader)
|
||||
void Feature::RestoreDocFile(Base::Reader& reader)
|
||||
{
|
||||
// This gets only invoked if a points file has been added from Restore()
|
||||
Points.RestoreDocFile(reader);
|
||||
@@ -75,8 +75,9 @@ void Feature::onChanged(const App::Property* prop)
|
||||
try {
|
||||
Base::Placement p;
|
||||
p.fromMatrix(this->Points.getTransform());
|
||||
if (p != this->Placement.getValue())
|
||||
if (p != this->Placement.getValue()) {
|
||||
this->Placement.setValue(p);
|
||||
}
|
||||
}
|
||||
catch (const Base::ValueError&) {
|
||||
}
|
||||
@@ -87,26 +88,29 @@ void Feature::onChanged(const App::Property* prop)
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
namespace App {
|
||||
namespace App
|
||||
{
|
||||
/// @cond DOXERR
|
||||
PROPERTY_SOURCE_TEMPLATE(Points::FeatureCustom, Points::Feature)
|
||||
/// @endcond
|
||||
|
||||
// explicit template instantiation
|
||||
template class PointsExport FeatureCustomT<Points::Feature>;
|
||||
}
|
||||
}// namespace App
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
namespace App {
|
||||
namespace App
|
||||
{
|
||||
/// @cond DOXERR
|
||||
PROPERTY_SOURCE_TEMPLATE(Points::FeaturePython, Points::Feature)
|
||||
template<> const char* Points::FeaturePython::getViewProviderName() const {
|
||||
template<>
|
||||
const char* Points::FeaturePython::getViewProviderName() const
|
||||
{
|
||||
return "PointsGui::ViewProviderPython";
|
||||
}
|
||||
/// @endcond
|
||||
|
||||
// explicit template instantiation
|
||||
template class PointsExport FeaturePythonT<Points::Feature>;
|
||||
}
|
||||
|
||||
}// namespace App
|
||||
|
||||
Reference in New Issue
Block a user