Salome HOME
SMH: 3.0.0 preparation - merged and adopted version (POLYWORK+HEAD)
[modules/visu.git] / src / ENGINE / VISU_Engine_i.cc
index 0edb9acc90f9f451edcb151180b283946f728754..ad4e921ad3a7f230012dc82a9c6c9b127b68d771 100644 (file)
@@ -62,7 +62,7 @@ namespace VISU{
     CORBA::Object_ptr anObject = aNamingService.Resolve("/Kernel/Session");
     SALOME::Session_var aSession = SALOME::Session::_narrow(anObject);
     //aSession->GetInterface(); 
-    Engines::Component_var aComponent = aSession->GetVisuComponent();
+    Engines::Component_var aComponent = aSession->GetComponent("libVISUEngineImpl.so");
     myVisuGen = VISU::VISU_Gen::_narrow(aComponent);
   } 
 
@@ -350,5 +350,11 @@ namespace VISU{
   {
     return myVisuGen->PasteInto(theStream,theObjectID,theObject);
   }
+  Engines::TMPFile* VISU_Gen_i::DumpPython(CORBA::Object_ptr theStudy,
+                                           CORBA::Boolean theIsPublished,
+                                          CORBA::Boolean& theIsValidScript)
+  {
+    return myVisuGen->DumpPython(theStudy, theIsPublished, theIsValidScript);
+  }     
 
 };