From d413a2424bd4779bffe8daf2cbd70802ccd264e2 Mon Sep 17 00:00:00 2001 From: enk Date: Fri, 24 Nov 2006 14:38:36 +0000 Subject: [PATCH] Fix for Bug IPAL13966 enk/PRSMERGER: dump python of presentations on groups works wrong --- src/VISU_I/VISU_DumpPython.cc | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/VISU_I/VISU_DumpPython.cc b/src/VISU_I/VISU_DumpPython.cc index 6b839711..98e197c8 100644 --- a/src/VISU_I/VISU_DumpPython.cc +++ b/src/VISU_I/VISU_DumpPython.cc @@ -30,6 +30,7 @@ #include "VISU_Prs3d_i.hh" #include "VISU_Mesh_i.hh" +#include "VISU_PrsMerger_i.hh" #include "VISU_ScalarMap_i.hh" #include "VISU_IsoSurfaces_i.hh" #include "VISU_DeformedShape_i.hh" @@ -249,7 +250,27 @@ namespace VISU return thePrefix; } - + //=========================================================================== + std::string + PrsMergerToPython(SALOMEDS::SObject_ptr theSObject, + VISU::PrsMerger_i* theServant, + std::ostream& theStr, + std::string& theName, + const std::string& theConstructorName, + const std::string& theArgumentName, + std::string thePrefix) + { + thePrefix = ScalarMapToPython(theSObject,theServant,theStr,theName,theConstructorName,theArgumentName,thePrefix); + string_array_var aGroupNames = theServant->getGroupNames(); + for(int i=0; ilength(); i++) + { + theStr<GetMeshName()<<"','" + <(GetServant(anObj).in())){ + thePrefix = PrsMergerToPython(theSObject,aServant,theStr,aName,"ScalarMapOnField",theArgumentName,thePrefix); + theStr<(GetServant(anObj).in())){ thePrefix = ScalarMapToPython(theSObject,aServant,theStr,aName,"ScalarMapOnField",theArgumentName,thePrefix); -- 2.39.2