From: rkv Date: Thu, 16 Jan 2014 08:03:35 +0000 (+0000) Subject: Dump of profile is implemented. X-Git-Tag: BR_hydro_v_1_0~89 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=32ee8843415498268b9544232a2c7107ab695e08;p=modules%2Fhydro.git Dump of profile is implemented. --- diff --git a/src/HYDROData/HYDROData_Profile.cxx b/src/HYDROData/HYDROData_Profile.cxx index ec1b9d7f..8efcf23b 100755 --- a/src/HYDROData/HYDROData_Profile.cxx +++ b/src/HYDROData/HYDROData_Profile.cxx @@ -95,6 +95,19 @@ QStringList HYDROData_Profile::DumpToPython( MapOfTreatedObjects& theTreatedObje aResList << QString( "];" ); aResList << QString( "%1.SetParametricPoints( points )" ).arg( aName ); } + + // Set a polyline type if it is not default + Handle(HYDROData_ProfileUZ) aPrf = GetProfileUZ( false ); + if ( !aPrf.IsNull() ) + { + HYDROData_IPolyline::SectionType aSecType = aPrf->GetSectionType( 0 ); + if ( aSecType != HYDROData_IPolyline::SECTION_POLYLINE ) + { + aResList << QString( "%1.GetProfileUZ().SetSectionType( 0, %2 );" ).arg( aName ) + .arg( "HYDROData_IPolyline.SECTION_SPLINE" ); + } + } + aResList << QString( "" ); aResList << QString( "%1.Update();" ).arg( aName ); aResList << QString( "" );