]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Update the genaration of VISUAL parameters
authorsrn <srn@opencascade.com>
Wed, 15 Feb 2006 09:09:11 +0000 (09:09 +0000)
committersrn <srn@opencascade.com>
Wed, 15 Feb 2006 09:09:11 +0000 (09:09 +0000)
src/VISU_I/VISU_DumpPython.cc

index 67296b9dbf1f8d3bbd771163b6871811d746c5a9..078f17665aea3f0be9253693902e311590631620 100644 (file)
 #include <qstring.h>
 #include <qfileinfo.h>
 
-#include <SALOMEDSClient.hxx>
-#include <SALOMEDS_IParameters.hxx>
-#include <SALOMEDS_Study.hxx>
-
 //#define COUT
 
 using namespace std;
@@ -1176,9 +1172,11 @@ namespace VISU{
 
     //Output the script that sets up the visul parameters.
     if(theIsPublished) {
-      _PTR(Study) study(new SALOMEDS_Study(aStudy));
-      string defScript = SALOMEDS_IParameters::getDefaultScript(study, "Interface Applicative", "Post-Pro", aPrefix);
-      if(defScript != "") aStr << defScript;
+      char* script = aStudy->GetDefaultScript("Post-Pro", aPrefix.c_str());
+      if(script && strlen(script) > 0) {
+       aStr << script;
+       CORBA::string_free(script);
+      }
     }
 
     aStr<<aPrefix<<"pass"<<endl;