X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_ProfileUZ.cxx;h=9e05e0a83fbe389129ecb72245064f9d6803a5f8;hb=81c9f5cdf82909d0aebd2c491c50fa7516cc80b7;hp=09fc5234de188ee49bcd28eb8e02cc8cac57873c;hpb=ba70cb7d5a35a6d311acc1b061fb450afe04d0f8;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_ProfileUZ.cxx b/src/HYDROData/HYDROData_ProfileUZ.cxx index 09fc5234..9e05e0a8 100755 --- a/src/HYDROData/HYDROData_ProfileUZ.cxx +++ b/src/HYDROData/HYDROData_ProfileUZ.cxx @@ -28,38 +28,8 @@ HYDROData_ProfileUZ::~HYDROData_ProfileUZ() { } -QStringList HYDROData_ProfileUZ::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const -{ - QStringList aResList = dumpObjectCreation( theTreatedObjects ); - QString aName = GetName(); - - // Set polilyne data - const TCollection_AsciiString& aSectName = GetSectionName( 0 ); - const SectionType& aSectType = GetSectionType( 0 ); - bool aSectClosure = IsClosedSection( 0 ); - - aResList << QString( "%1.AddSection( \"%2\", %3, %4 );" ).arg( aName ) - .arg( aSectName.ToCString() ).arg( aSectType ).arg( aSectClosure ); - - HYDROData_IPolyline::PointsList aSectPointsList = GetPoints( 0 ); - for ( int k = 1, aNbPoints = aSectPointsList.Size(); k <= aNbPoints; ++k ) - { - const Point& aSectPoint = aSectPointsList.Value( k ); - - aResList << QString( "%1.AddPoint( 0, QPointF( %2, %3 ) );" ).arg( aName ) - .arg( aSectPoint.X() ).arg( aSectPoint.Y() ); - } - - aResList << QString( "" ); - aResList << QString( "%1.Update();" ).arg( aName ); - aResList << QString( "" ); - - return aResList; -} - TopoDS_Shape HYDROData_ProfileUZ::GetShape() const { - // TODO return TopoDS_Shape(); }