示例#1
0
void FemGuiExport initFemGui()  
{
    if (!Gui::Application::Instance) {
        PyErr_SetString(PyExc_ImportError, "Cannot load Gui module in console application.");
        return;
    }

    (void) Py_InitModule("FemGui", FemGui_Import_methods);   /* mod name, table ptr */
    Base::Console().Log("Loading GUI of Fem module... done\n");

    // instantiating the commands
    CreateFemCommands();

    // addition objects
    FemGui::Workbench                          ::init();
    FemGui::ViewProviderAnalysis               ::init();
    FemGui::ViewProviderFemMesh                ::init();
    FemGui::ViewProviderFemMeshShape           ::init();
    FemGui::ViewProviderFemMeshShapeNetgen     ::init();
    FemGui::ViewProviderSetNodes               ::init();
    FemGui::ViewProviderSetElements            ::init();
    FemGui::ViewProviderSetFaces               ::init();
    FemGui::ViewProviderSetGeometry            ::init();
    FemGui::ViewProviderFemConstraint          ::init();
    FemGui::ViewProviderFemConstraintBearing   ::init();
    FemGui::ViewProviderFemConstraintFixed     ::init();
    FemGui::ViewProviderFemConstraintForce     ::init();
    FemGui::ViewProviderFemConstraintGear      ::init();
    FemGui::ViewProviderFemConstraintPulley    ::init();

     // add resources and reloads the translators
    loadFemResource();
}
void FemGuiExport initFemGui()  
{
    if (!Gui::Application::Instance) {
        PyErr_SetString(PyExc_ImportError, "Cannot load Gui module in console application.");
        return;
    }

    (void) Py_InitModule("FemGui", FemGui_Import_methods);   /* mod name, table ptr */
    Base::Console().Log("Loading GUI of Fem module... done\n");

    // instantiating the commands
    CreateFemCommands();

    // addition objects
    FemGui::Workbench                          ::init();
    FemGui::ViewProviderFemAnalysis            ::init();
    FemGui::ViewProviderFemAnalysisPython      ::init();
    FemGui::ViewProviderFemMesh                ::init();
    FemGui::ViewProviderFemMeshShape           ::init();
    FemGui::ViewProviderFemMeshShapeNetgen     ::init();
    FemGui::ViewProviderSetNodes               ::init();
    FemGui::ViewProviderSetElements            ::init();
    FemGui::ViewProviderSetFaces               ::init();
    FemGui::ViewProviderSetGeometry            ::init();
    FemGui::ViewProviderFemConstraint          ::init();
    FemGui::ViewProviderFemConstraintBearing   ::init();
    FemGui::ViewProviderFemConstraintFixed     ::init();
    FemGui::ViewProviderFemConstraintForce     ::init();
    FemGui::ViewProviderFemConstraintPressure  ::init();
    FemGui::ViewProviderFemConstraintGear      ::init();
    FemGui::ViewProviderFemConstraintPulley    ::init();
    FemGui::ViewProviderResult                 ::init();
    FemGui::ViewProviderResultPython           ::init();

    Base::Interpreter().loadModule("MechanicalAnalysis");
    Base::Interpreter().loadModule("MechanicalMaterial");
    Base::Interpreter().loadModule("FemBeamSection");
    Base::Interpreter().loadModule("FemShellThickness");

    // register preferences pages
    new Gui::PrefPageProducer<FemGui::DlgSettingsFemImp> ("FEM");

     // add resources and reloads the translators
    loadFemResource();
}
示例#3
0
/* Python entry */
PyMODINIT_FUNC initFemGui()
{
    if (!Gui::Application::Instance) {
        PyErr_SetString(PyExc_ImportError, "Cannot load Gui module in console application.");
        return;
    }

    (void) FemGui::initModule();
    Base::Console().Log("Loading GUI of Fem module... done\n");

    // instantiating the commands
    CreateFemCommands();

    // addition objects
    FemGui::Workbench                             ::init();
    FemGui::ViewProviderFemAnalysis               ::init();
    FemGui::ViewProviderFemAnalysisPython         ::init();
    FemGui::ViewProviderFemMesh                   ::init();
    FemGui::ViewProviderFemMeshShape              ::init();
    FemGui::ViewProviderFemMeshShapeNetgen        ::init();
    FemGui::ViewProviderSolver                    ::init();
    FemGui::ViewProviderSolverPython              ::init();
    FemGui::ViewProviderSetNodes                  ::init();
    FemGui::ViewProviderSetElements               ::init();
    FemGui::ViewProviderSetFaces                  ::init();
    FemGui::ViewProviderSetGeometry               ::init();
    FemGui::ViewProviderFemConstraint             ::init();
    FemGui::ViewProviderFemConstraintBearing      ::init();
    FemGui::ViewProviderFemConstraintFixed        ::init();
    FemGui::ViewProviderFemConstraintForce        ::init();
    FemGui::ViewProviderFemConstraintPressure     ::init();
    FemGui::ViewProviderFemConstraintGear         ::init();
    FemGui::ViewProviderFemConstraintPulley       ::init();
    FemGui::ViewProviderFemConstraintDisplacement ::init();
    FemGui::ViewProviderResult                    ::init();
    FemGui::ViewProviderResultPython              ::init();
    FemGui::PropertyFemMeshItem                   ::init();

    // register preferences pages
    new Gui::PrefPageProducer<FemGui::DlgSettingsFemImp> ("FEM");

     // add resources and reloads the translators
    loadFemResource();
}
示例#4
0
/* Python entry */
PyMODINIT_FUNC initFemGui()
{
    if (!Gui::Application::Instance) {
        PyErr_SetString(PyExc_ImportError, "Cannot load Gui module in console application.");
        return;
    }

    (void) FemGui::initModule();
    Base::Console().Log("Loading GUI of Fem module... done\n");

    // instantiating the commands
    CreateFemCommands();

    // addition objects
    FemGui::Workbench                             ::init();
    FemGui::ViewProviderFemAnalysis               ::init();
    FemGui::ViewProviderFemAnalysisPython         ::init();
    FemGui::ViewProviderFemMesh                   ::init();
    FemGui::ViewProviderFemMeshPython                   ::init();
    FemGui::ViewProviderFemMeshShape              ::init();
    FemGui::ViewProviderFemMeshShapeNetgen        ::init();
    FemGui::ViewProviderSolver                    ::init();
    FemGui::ViewProviderSolverPython              ::init();
    FemGui::ViewProviderSetNodes                  ::init();
    FemGui::ViewProviderSetElements               ::init();
    FemGui::ViewProviderSetFaces                  ::init();
    FemGui::ViewProviderSetGeometry               ::init();
    FemGui::ViewProviderFemConstraint             ::init();
    FemGui::ViewProviderFemConstraintBearing      ::init();
    FemGui::ViewProviderFemConstraintFixed        ::init();
    FemGui::ViewProviderFemConstraintForce        ::init();
    FemGui::ViewProviderFemConstraintFluidBoundary          ::init();
    FemGui::ViewProviderFemConstraintPressure     ::init();
    FemGui::ViewProviderFemConstraintGear         ::init();
    FemGui::ViewProviderFemConstraintPulley       ::init();
    FemGui::ViewProviderFemConstraintDisplacement ::init();
    FemGui::ViewProviderFemConstraintHeatflux     ::init();
    FemGui::ViewProviderFemConstraintTemperature  ::init();
    FemGui::ViewProviderFemConstraintInitialTemperature  ::init();
    FemGui::ViewProviderFemConstraintPlaneRotation::init();
    FemGui::ViewProviderFemConstraintContact      ::init();
    FemGui::ViewProviderFemConstraintTransform    ::init();
    FemGui::ViewProviderResult                    ::init();
    FemGui::ViewProviderResultPython              ::init();
    FemGui::PropertyFemMeshItem                   ::init();

#ifdef FC_USE_VTK
    FemGui::ViewProviderFemPostObject          ::init();
    FemGui::ViewProviderFemPostPipeline        ::init();
    FemGui::ViewProviderFemPostFunction        ::init();
    FemGui::ViewProviderFemPostFunctionProvider::init();
    FemGui::ViewProviderFemPostPlaneFunction   ::init();
    FemGui::ViewProviderFemPostSphereFunction  ::init();
    FemGui::ViewProviderFemPostClip            ::init();
    FemGui::ViewProviderFemPostScalarClip      ::init();
    FemGui::ViewProviderFemPostWarpVector      ::init();
    FemGui::ViewProviderFemPostCut             ::init();
#endif


    // register preferences pages
    new Gui::PrefPageProducer<FemGui::DlgSettingsFemGeneralImp> (QT_TRANSLATE_NOOP("QObject","FEM"));
    new Gui::PrefPageProducer<FemGui::DlgSettingsFemCcxImp> (QT_TRANSLATE_NOOP("QObject","FEM"));
    new Gui::PrefPageProducer<FemGui::DlgSettingsFemGmshImp> (QT_TRANSLATE_NOOP("QObject","FEM"));
    new Gui::PrefPageProducer<FemGui::DlgSettingsFemZ88Imp> (QT_TRANSLATE_NOOP("QObject","FEM"));

     // add resources and reloads the translators
    loadFemResource();
}