From: eap Date: Wed, 25 May 2005 09:51:04 +0000 (+0000) Subject: IPAL8877: fix table dump, make dump more compact X-Git-Tag: smh_merge_poly~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=65a2c404b2e336f7d61025c7662379aa31b25acf;p=modules%2Fvisu.git IPAL8877: fix table dump, make dump more compact --- diff --git a/src/VISU_I/VISU_DumpPython.cc b/src/VISU_I/VISU_DumpPython.cc index 2b2bf1ac..1474d24e 100644 --- a/src/VISU_I/VISU_DumpPython.cc +++ b/src/VISU_I/VISU_DumpPython.cc @@ -282,28 +282,60 @@ namespace VISU{ theStr<GetNbRows(); - theStr<HasValue(i,j)){ - CORBA::Double aValue = theTableAttr->GetValue(i,j); - theStr< 0; j--){ + if(theTableAttr->HasValue(j,i)){ + values << comma << theTableAttr->GetValue(j,i); + rows << comma << j; + columns << comma << i; + if ( comma.empty() ) + comma = ","; } } } - - SALOMEDS::StringSeq_var aRowTitles = theTableAttr->GetRowTitles(); + // push titles and units into streams + strstream rowUnits, rowTitles, colTitles; SALOMEDS::StringSeq_var aRowUnits = theTableAttr->GetRowUnits(); + SALOMEDS::StringSeq_var aRowTitles = theTableAttr->GetRowTitles(); + comma = ""; for(CORBA::Long j = 1; j <= aNbRows; j++){ - theStr<GetColumnTitles(); - for(CORBA::Long i = 1; i <= aNbColumns; i++){ - theStr<FindAttribute(anAttr,"AttributeIOR")){ theStr<(GetServant(anObj).in())){ - theStr<GetHRow()<< - ","<GetVRow()<< - ")"<GetTitle()<<"')"<(GetServant(anObj).in())) + { + theStr << thePrefix << "aName2ObjectMap['" << aName << "'] = visu.CreateCurve(" << + theArgumentName<< // table + ","<GetHRow()<< // H row + ","<GetVRow()<< // V row + ",'"<GetTitle()<<"'"; // title SALOMEDS::Color aColor = aServant->GetColor(); - theStr<GetMarker()){ - case Curve::NONE: - aParam = "VISU.Curve.NONE"; - break; - case Curve::CIRCLE: - aParam = "VISU.Curve.CIRCLE"; - break; - case Curve::RECTANGLE: - aParam = "VISU.Curve.RECTANGLE"; - break; - case Curve::DIAMOND: - aParam = "VISU.Curve.DIAMOND"; - break; - case Curve::DTRIANGLE: - aParam = "VISU.Curve.DTRIANGLE"; - break; - case Curve::UTRIANGLE: - aParam = "VISU.Curve.UTRIANGLE"; - break; - case Curve::LTRIANGLE: - aParam = "VISU.Curve.LTRIANGLE"; - break; - case Curve::RTRIANGLE: - aParam = "VISU.Curve.RTRIANGLE"; - break; - case Curve::CROSS: - aParam = "VISU.Curve.CROSS"; - break; - case Curve::XCROSS: - aParam = "VISU.Curve.XCROSS"; - break; + case Curve::NONE: aParam = "VISU.Curve.NONE"; break; + case Curve::CIRCLE: aParam = "VISU.Curve.CIRCLE"; break; + case Curve::RECTANGLE: aParam = "VISU.Curve.RECTANGLE"; break; + case Curve::DIAMOND: aParam = "VISU.Curve.DIAMOND"; break; + case Curve::DTRIANGLE: aParam = "VISU.Curve.DTRIANGLE"; break; + case Curve::UTRIANGLE: aParam = "VISU.Curve.UTRIANGLE"; break; + case Curve::LTRIANGLE: aParam = "VISU.Curve.LTRIANGLE"; break; + case Curve::RTRIANGLE: aParam = "VISU.Curve.RTRIANGLE"; break; + case Curve::CROSS: aParam = "VISU.Curve.CROSS"; break; + case Curve::XCROSS: aParam = "VISU.Curve.XCROSS"; break; } - theStr<GetLine()){ - case Curve::VOIDLINE: - aParam = "VISU.Curve.VOIDLINE"; - break; - case Curve::SOLIDLINE: - aParam = "VISU.Curve.SOLIDLINE"; - break; - case Curve::DASHLINE: - aParam = "VISU.Curve.DASHLINE"; - break; - case Curve::DOTLINE: - aParam = "VISU.Curve.DOTLINE"; - break; - case Curve::DASHDOTLINE: - aParam = "VISU.Curve.DASHDOTLINE"; - break; - case Curve::DASHDOTDOTLINE: - aParam = "VISU.Curve.DASHDOTDOTLINE"; - break; + case Curve::VOIDLINE: aParam = "VISU.Curve.VOIDLINE"; break; + case Curve::SOLIDLINE: aParam = "VISU.Curve.SOLIDLINE"; break; + case Curve::DASHLINE: aParam = "VISU.Curve.DASHLINE"; break; + case Curve::DOTLINE: aParam = "VISU.Curve.DOTLINE"; break; + case Curve::DASHDOTLINE: aParam = "VISU.Curve.DASHDOTLINE"; break; + case Curve::DASHDOTDOTLINE: aParam = "VISU.Curve.DASHDOTDOTLINE"; break; } - theStr<GetLineWidth()<<")"<GetLineWidth()<<")"<