]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Stream dump is implemented.
authorrkv <rkv@opencascade.com>
Thu, 16 Jan 2014 12:13:57 +0000 (12:13 +0000)
committerrkv <rkv@opencascade.com>
Thu, 16 Jan 2014 12:13:57 +0000 (12:13 +0000)
src/HYDROData/HYDROData_Stream.cxx

index fbe9212b3b94d89cb156c23d547c3acd52d87759..f06f4c29b8473b035d61a65be9ae4f43f28c9ee8 100644 (file)
@@ -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 );