From: rkv Date: Thu, 16 Jan 2014 12:13:57 +0000 (+0000) Subject: Stream dump is implemented. X-Git-Tag: BR_hydro_v_1_0~78 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b6d427be7e70aeec738aa90dde10a6862e554c1a;p=modules%2Fhydro.git Stream dump is implemented. --- diff --git a/src/HYDROData/HYDROData_Stream.cxx b/src/HYDROData/HYDROData_Stream.cxx index fbe9212b..f06f4c29 100644 --- a/src/HYDROData/HYDROData_Stream.cxx +++ b/src/HYDROData/HYDROData_Stream.cxx @@ -88,7 +88,15 @@ QStringList HYDROData_Stream::DumpToPython( MapOfTreatedObjects& theTreatedObjec QStringList aResList = dumpObjectCreation( theTreatedObjects ); QString aName = GetObjPyName(); - // TODO + Handle(HYDROData_PolylineXY) aHydAxis = GetHydraulicAxis(); + setPythonReferenceObject( theTreatedObjects, aResList, aHydAxis, "SetHydraulicAxis" ); + + HYDROData_SequenceOfObjects aSeqOfProfiles = GetProfiles(); + for ( int i = 1, aNb = aSeqOfProfiles.Size(); i <= aNb; ++i ) + { + const Handle(HYDROData_Entity) aProfile = aSeqOfProfiles.Value( i ); + setPythonReferenceObject( theTreatedObjects, aResList, aProfile, "AddProfile" ); + } aResList << QString( "" ); aResList << QString( "%1.Update();" ).arg( aName );