Fem: Apply clang-format

This commit is contained in:
wmayer
2023-09-22 12:38:37 +02:00
committed by wwmayer
parent 800006a505
commit 91a40b2007
79 changed files with 3674 additions and 2787 deletions

View File

@@ -62,17 +62,20 @@ PROPERTY_SOURCE_ABSTRACT(Fem::DocumentObject, App::DocumentObject)
// Python feature ---------------------------------------------------------
namespace App {
namespace App
{
/// @cond DOXERR
PROPERTY_SOURCE_TEMPLATE(Fem::FemAnalysisPython, Fem::FemAnalysis)
template<> const char* Fem::FemAnalysisPython::getViewProviderName() const {
template<>
const char* Fem::FemAnalysisPython::getViewProviderName() const
{
return "FemGui::ViewProviderFemAnalysisPython";
}
// template<> void Fem::FemAnalysisPython::Restore(Base::XMLReader& reader) {
// FemAnalysis::Restore(reader);
// }
//template<> PyObject* Fem::FemAnalysisPython::getPyObject(void) {
// template<> PyObject* Fem::FemAnalysisPython::getPyObject(void) {
// if (PythonObject.is(Py::_None())) {
// // ref counter is set to 1
// PythonObject = Py::Object(new App::DocumentObjectPy(this),true);
@@ -83,17 +86,22 @@ template<> const char* Fem::FemAnalysisPython::getViewProviderName() const {
// explicit template instantiation
template class FemExport FeaturePythonT<Fem::FemAnalysis>;
}
} // namespace App
// ---------------------------------------------------------
namespace App {
namespace App
{
/// @cond DOXERR
PROPERTY_SOURCE_TEMPLATE(Fem::FeaturePython, Fem::DocumentObject)
template<> const char* Fem::FeaturePython::getViewProviderName() const {
template<>
const char* Fem::FeaturePython::getViewProviderName() const
{
return "Gui::ViewProviderPythonFeature";
}
template<> PyObject* Fem::FeaturePython::getPyObject() {
template<>
PyObject* Fem::FeaturePython::getPyObject()
{
if (PythonObject.is(Py::_None())) {
// ref counter is set to 1
PythonObject = Py::Object(new App::FeaturePythonPyT<App::DocumentObjectPy>(this), true);
@@ -103,4 +111,4 @@ template<> PyObject* Fem::FeaturePython::getPyObject() {
// explicit template instantiation
template class FemExport FeaturePythonT<Fem::DocumentObject>;
/// @endcond
}
} // namespace App