Salome HOME
Fix for Bug IPAL8945
[modules/visu.git] / src / ENGINE / VISU_Engine_i.cc
index 0edb9acc90f9f451edcb151180b283946f728754..45dc68bcc768c0fe181b93ffa050a39ba6c49ed8 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);
   } 
 
@@ -162,6 +162,11 @@ namespace VISU{
   }
 
 
+  Result_ptr VISU_Gen_i::CreateResult(const char* theFileName){
+    return myVisuGen->CreateResult(theFileName);
+  }
+
+
   Result_ptr VISU_Gen_i::CopyAndImportFile(const char* theFileName){
     return myVisuGen->CopyAndImportFile(theFileName);
   }
@@ -212,6 +217,16 @@ namespace VISU{
   }
 
 
+  GaussPoints_ptr VISU_Gen_i::GaussPointsOnField(Result_ptr theResult, 
+                                                const char* theMeshName, 
+                                                VISU::Entity theEntity, 
+                                                const char* theFieldName, 
+                                                CORBA::Double theIteration)
+  {
+    return myVisuGen->GaussPointsOnField(theResult,theMeshName,theEntity,theFieldName,theIteration);
+  }
+
+
   DeformedShape_ptr VISU_Gen_i::DeformedShapeOnField(Result_ptr theResult, 
                                                     const char* theMeshName, 
                                                     VISU::Entity theEntity, 
@@ -271,6 +286,16 @@ namespace VISU{
   }
 
 
+  Plot3D_ptr VISU_Gen_i::Plot3DOnField(Result_ptr theResult, 
+                                      const char* theMeshName, 
+                                      VISU::Entity theEntity, 
+                                      const char* theFieldName, 
+                                      CORBA::Double theIteration)
+  {
+    return myVisuGen->Plot3DOnField(theResult,theMeshName,theEntity,theFieldName,theIteration);
+  }
+
+
   Table_ptr VISU_Gen_i::CreateTable(const char* theTableEntry){
     return myVisuGen->CreateTable(theTableEntry);
   }
@@ -350,5 +375,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);
+  }     
 
 };