Fem: Add Tool property to solvers and meshers
(cherry picked from commit 6f8e9f1a9e)
This commit is contained in:
@@ -46,6 +46,22 @@ FemMeshShapeBaseObject::FemMeshShapeBaseObject()
|
||||
Prop_None,
|
||||
"Geometry object, the mesh is made from. The geometry object has to have a Shape."
|
||||
);
|
||||
ADD_PROPERTY_TYPE(
|
||||
Tool,
|
||||
(Py::Object()),
|
||||
"FEM Mesh",
|
||||
App::PropertyType(
|
||||
App::Prop_Transient | App::Prop_Hidden | App::Prop_ReadOnly | App::Prop_Output
|
||||
),
|
||||
"Tool object for run the mesher"
|
||||
);
|
||||
ADD_PROPERTY_TYPE(
|
||||
WorkingDirectory,
|
||||
(""),
|
||||
"FEM Mesh",
|
||||
App::PropertyType(App::Prop_Transient | App::Prop_Hidden | App::Prop_Output),
|
||||
"Mesher working directory"
|
||||
);
|
||||
|
||||
Shape.setScope(LinkScope::Global);
|
||||
}
|
||||
|
||||
@@ -39,6 +39,8 @@ public:
|
||||
~FemMeshShapeBaseObject() override;
|
||||
|
||||
App::PropertyLink Shape;
|
||||
App::PropertyPythonObject Tool;
|
||||
App::PropertyPath WorkingDirectory;
|
||||
|
||||
/// returns the type name of the ViewProvider
|
||||
const char* getViewProviderName() const override
|
||||
|
||||
@@ -50,6 +50,15 @@ FemSolverObject::FemSolverObject()
|
||||
App::PropertyType(App::Prop_Transient | App::Prop_Hidden | App::Prop_Output),
|
||||
"Solver working directory"
|
||||
);
|
||||
ADD_PROPERTY_TYPE(
|
||||
Tool,
|
||||
(Py::Object()),
|
||||
"Solver",
|
||||
App::PropertyType(
|
||||
App::Prop_Transient | App::Prop_Hidden | App::Prop_ReadOnly | App::Prop_Output
|
||||
),
|
||||
"Tool for run the solver"
|
||||
);
|
||||
}
|
||||
|
||||
FemSolverObject::~FemSolverObject() = default;
|
||||
|
||||
@@ -42,6 +42,7 @@ public:
|
||||
~FemSolverObject() override;
|
||||
|
||||
App::PropertyLinkList Results;
|
||||
App::PropertyPythonObject Tool;
|
||||
App::PropertyPath WorkingDirectory;
|
||||
// Attributes are implemented in the FemSolverObjectPython
|
||||
|
||||
|
||||
Reference in New Issue
Block a user