+ make FEM beam section and shell thickness ready for drag and drop
This commit is contained in:
@@ -118,6 +118,7 @@ void AppFemExport initFem()
|
||||
|
||||
Fem::FemAnalysis ::init();
|
||||
Fem::FemAnalysisPython ::init();
|
||||
Fem::FeaturePython ::init();
|
||||
Fem::FemMesh ::init();
|
||||
Fem::FemMeshObject ::init();
|
||||
Fem::FemMeshShapeObject ::init();
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
|
||||
#include "FemAnalysis.h"
|
||||
#include <App/DocumentObjectPy.h>
|
||||
#include <App/FeaturePythonPyImp.h>
|
||||
#include <Base/Placement.h>
|
||||
#include <Base/Uuid.h>
|
||||
|
||||
@@ -88,4 +89,24 @@ template<> const char* Fem::FemAnalysisPython::getViewProviderName(void) const {
|
||||
|
||||
// explicit template instantiation
|
||||
template class AppFemExport FeaturePythonT<Fem::FemAnalysis>;
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
namespace App {
|
||||
/// @cond DOXERR
|
||||
PROPERTY_SOURCE_TEMPLATE(Fem::FeaturePython, App::DocumentObject)
|
||||
template<> const char* Fem::FeaturePython::getViewProviderName(void) const {
|
||||
return "Gui::ViewProviderPythonFeature";
|
||||
}
|
||||
template<> PyObject* Fem::FeaturePython::getPyObject(void) {
|
||||
if (PythonObject.is(Py::_None())) {
|
||||
// ref counter is set to 1
|
||||
PythonObject = Py::Object(new App::FeaturePythonPyT<App::DocumentObjectPy>(this),true);
|
||||
}
|
||||
return Py::new_reference_to(PythonObject);
|
||||
}
|
||||
// explicit template instantiation
|
||||
template class AppFemExport FeaturePythonT<App::DocumentObject>;
|
||||
/// @endcond
|
||||
}
|
||||
|
||||
@@ -65,6 +65,7 @@ protected:
|
||||
};
|
||||
|
||||
typedef App::FeaturePythonT<FemAnalysis> FemAnalysisPython;
|
||||
typedef App::FeaturePythonT<App::DocumentObject> FeaturePython;
|
||||
|
||||
|
||||
} //namespace Fem
|
||||
|
||||
Reference in New Issue
Block a user