+ need dummy class for FeaturePython class to work
This commit is contained in:
parent
a3cd03ac03
commit
15a6a463b3
|
@ -118,6 +118,7 @@ void AppFemExport initFem()
|
|||
|
||||
Fem::FemAnalysis ::init();
|
||||
Fem::FemAnalysisPython ::init();
|
||||
Fem::DocumentObject ::init();
|
||||
Fem::FeaturePython ::init();
|
||||
Fem::FemMesh ::init();
|
||||
Fem::FemMeshObject ::init();
|
||||
|
|
|
@ -69,6 +69,8 @@ void FemAnalysis::onChanged(const Property* prop)
|
|||
}
|
||||
|
||||
|
||||
// Dummy class 'DocumentObject' in Fem namespace
|
||||
PROPERTY_SOURCE_ABSTRACT(Fem::DocumentObject, App::DocumentObject)
|
||||
|
||||
// Python feature ---------------------------------------------------------
|
||||
|
||||
|
@ -95,7 +97,7 @@ template class AppFemExport FeaturePythonT<Fem::FemAnalysis>;
|
|||
|
||||
namespace App {
|
||||
/// @cond DOXERR
|
||||
PROPERTY_SOURCE_TEMPLATE(Fem::FeaturePython, App::DocumentObject)
|
||||
PROPERTY_SOURCE_TEMPLATE(Fem::FeaturePython, Fem::DocumentObject)
|
||||
template<> const char* Fem::FeaturePython::getViewProviderName(void) const {
|
||||
return "Gui::ViewProviderPythonFeature";
|
||||
}
|
||||
|
|
|
@ -64,8 +64,13 @@ protected:
|
|||
virtual void onChanged (const App::Property* prop);
|
||||
};
|
||||
|
||||
class AppFemExport DocumentObject : public App::DocumentObject
|
||||
{
|
||||
PROPERTY_HEADER(Fem::DocumentObject);
|
||||
};
|
||||
|
||||
typedef App::FeaturePythonT<FemAnalysis> FemAnalysisPython;
|
||||
typedef App::FeaturePythonT<App::DocumentObject> FeaturePython;
|
||||
typedef App::FeaturePythonT<DocumentObject> FeaturePython;
|
||||
|
||||
|
||||
} //namespace Fem
|
||||
|
|
Loading…
Reference in New Issue
Block a user