From: enk Date: Mon, 11 Dec 2006 07:11:41 +0000 (+0000) Subject: Fix for Bug IPAL13966: X-Git-Tag: V3_2_4~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8c4694273127f951f583c071b0e1cfd6c53998d7;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 bea5a546..64ac9f50 100644 --- a/src/VISU_I/VISU_DumpPython.cc +++ b/src/VISU_I/VISU_DumpPython.cc @@ -281,7 +281,7 @@ namespace VISU const std::string& theArgumentName, std::string thePrefix) { - thePrefix = ScalarMapToPython(theSObject,theServant,theStr,theName,theConstructorName,theArgumentName,thePrefix); + thePrefix = PrsMergerToPython(theSObject,theServant,theStr,theName,theConstructorName,theArgumentName,thePrefix); theStr<GetScale()<<")"<IsColored()<<")"<GetColor(); @@ -736,18 +736,13 @@ namespace VISU return; } break; + case VISU::TSCALARMAP: case VISU::TPRSMERGER: if(PrsMerger_i* aServant = dynamic_cast(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); - theStr<(GetServant(anObj).in())){ thePrefix = DeformedShapeToPython(theSObject,aServant,theStr,aName,"DeformedShapeOnField",theArgumentName,thePrefix); @@ -798,7 +793,7 @@ namespace VISU return; case VISU::TSCALARMAPONDEFORMEDSHAPE: if(ScalarMapOnDeformedShape_i* aServant = dynamic_cast(GetServant(anObj).in())){ - thePrefix = ScalarMapToPython(theSObject,aServant,theStr,aName,"ScalarMapOnDeformedShapeOnField",theArgumentName,thePrefix); + thePrefix = PrsMergerToPython(theSObject,aServant,theStr,aName,"ScalarMapOnDeformedShapeOnField",theArgumentName,thePrefix); theStr<GetSourceRangeMin()<<","<GetSourceRangeMax()<<")"<GetScale()<<")"<(GetServant(anObj).in())){ - thePrefix = ScalarMapToPython(theSObject,aServant,theStr,aName,"IsoSurfacesOnField",theArgumentName,thePrefix); + thePrefix = PrsMergerToPython(theSObject,aServant,theStr,aName,"IsoSurfacesOnField",theArgumentName,thePrefix); theStr<GetNbSurfaces()<<")"<(GetServant(anObj).in())){ - thePrefix = ScalarMapToPython(theSObject,aServant,theStr,aName,"CutPlanesOnField",theArgumentName,thePrefix); + thePrefix = PrsMergerToPython(theSObject,aServant,theStr,aName,"CutPlanesOnField",theArgumentName,thePrefix); std::string aParam; switch(aServant->GetOrientationType()){ @@ -908,7 +903,7 @@ namespace VISU return; case VISU::TCUTLINES: if(CutLines_i* aServant = dynamic_cast(GetServant(anObj).in())){ - thePrefix = ScalarMapToPython(theSObject,aServant,theStr,aName,"CutLinesOnField",theArgumentName,thePrefix); + thePrefix = PrsMergerToPython(theSObject,aServant,theStr,aName,"CutLinesOnField",theArgumentName,thePrefix); std::string aParam; switch(aServant->GetOrientationType()){ @@ -971,7 +966,7 @@ namespace VISU return; case VISU::TPLOT3D: if (Plot3D_i* aServant = dynamic_cast(GetServant(anObj).in())) { - thePrefix = ScalarMapToPython(theSObject, aServant, theStr, aName,"Plot3DOnField", theArgumentName, thePrefix); + thePrefix = PrsMergerToPython(theSObject, aServant, theStr, aName,"Plot3DOnField", theArgumentName, thePrefix); std::string aParam; switch(aServant->GetOrientationType()){