From: enk Date: Fri, 24 Nov 2006 14:38:36 +0000 (+0000) Subject: Fix for Bug IPAL13966 X-Git-Tag: mergeto_V3_2_0_maintainance_30Nov06 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d413a2424bd4779bffe8daf2cbd70802ccd264e2;p=modules%2Fvisu.git Fix for Bug IPAL13966 enk/PRSMERGER: dump python of presentations on groups works wrong --- 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);