+ Handle(HYDROData_PolylineXY) aRefPolyline = GetPolylineXY();
+ setPythonReferenceObject( theTreatedObjects, aResList, aRefPolyline, "SetPolylineXY" );
+
+ Handle(HYDROData_ProfileUZ) aRefProfileUZ = GetProfileUZ();
+ if ( !aRefProfileUZ.IsNull() )
+ {
+ Handle(HYDROData_Profile) aProfile =
+ Handle(HYDROData_Profile)::DownCast( aRefProfileUZ->GetFatherObject() );
+ if ( checkObjectPythonDefinition( theTreatedObjects, aResList, aProfile ) )
+ {
+ QString aProfileName = aProfile->GetObjPyName();
+ if ( !aProfileName.isEmpty() )
+ {
+ aResList << QString( "%1.SetProfileUZ( %2.GetProfileUZ() );" )
+ .arg( aPolylineName ).arg( aProfileName );
+ }
+ }
+ }
+ else
+ {
+ Handle(HYDROData_IAltitudeObject) aRefBathymetry = GetAltitudeObject();
+ if ( !aRefBathymetry.IsNull() )
+ {
+ Handle(HYDROData_ProfileUZ) aChildProfileUZ = GetChildProfileUZ();
+ if ( !aChildProfileUZ.IsNull() )
+ {
+ Handle(HYDROData_Profile) aProfile =
+ Handle(HYDROData_Profile)::DownCast( aChildProfileUZ->GetFatherObject() );
+ if ( checkObjectPythonDefinition( theTreatedObjects, aResList, aProfile ) )
+ {
+ QString aProfileName = aProfile->GetObjPyName();
+ if ( !aProfileName.isEmpty() )
+ {
+ aResList << QString( "%1.SetChildProfileUZ( %2.GetProfileUZ() );" )
+ .arg( aPolylineName ).arg( aProfileName );
+ }
+ }
+ }
+
+ setPythonReferenceObject( theTreatedObjects, aResList, aRefBathymetry, "SetAltitudeObject" );
+ }
+ }
+
+ aResList << QString( "" );
+ aResList << QString( "%1.Update();" ).arg( aPolylineName );
+ aResList << QString( "" );