IF(SALOME_USE_QXGRAPHVIEWER)
LIST(APPEND _link_LIBRARIES QxScene)
ENDIF()
+IF(SALOME_USE_PVVIEWER)
+ LIST(APPEND _link_LIBRARIES PVViewer)
+ENDIF()
IF(SALOME_USE_PYCONSOLE)
LIST(APPEND _link_LIBRARIES PyInterp PyConsole SUITApp)
ENDIF()
ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
SET(_link_LIBRARIES
- ${KERNEL_LDFLAGS} ${KERNEL_SALOMELocalTrace}
- ${GUI_LDFLAGS} ${GUI_SalomeApp} ${GUI_LightApp} ${GUI_suit} ${GUI_Event}
+ ${KERNEL_LDFLAGS} ${KERNEL_SALOMELocalTrace} ${KERNEL_OpUtil}
+ ${GUI_LDFLAGS} suit Event PyInterp
${_PARAVIEW_APP_COMPO_LIB}
)
#include <SUIT_MessageBox.h>
#include <SUIT_Desktop.h>
#include <SUIT_Session.h>
+#include <SUIT_Study.h>
#include <SUIT_ResourceMgr.h>
#include <PyInterp_Interp.h>
#include <PyConsole_Interp.h>
new pqTabbedMultiViewWidget(); // registers a "MULTIVIEW_WIDGET" on creation
- // At this stage, the pqPythonManager has been initialized, i.e. the current process has
- // activated the embedded Python interpreter. "paraview" package has also been imported once already.
- // Make sure the current process executes paraview's Python command with the "fromGUI" flag.
- // This is used in pvsimple.py to avoid reconnecting the GUI thread to the pvserver (when
- // user types "import pvsimple" in SALOME's console).
- SalomeApp_Application* app =
- dynamic_cast< SalomeApp_Application* >(SUIT_Session::session()->activeApplication());
- PyConsole_Interp* pyInterp = app->pythonConsole()->getInterp();
- {
- PyLockWrapper aGil;
- std::string cmd = "import paraview;paraview.fromGUI = True";
- pyInterp->run(cmd.c_str());
- }
-
for (int i = 0; i < argc; i++)
free(argv[i]);
delete[] argv;