- setPythonReferenceObject( theTreatedObjects, aResList, aRefBathymetry, "SetAltitudeObject" );
+ if ( !aRefBathymetry.IsNull() )
+ {
+ Handle(HYDROData_ProfileUZ) aChildProfileUZ = GetChildProfileUZ();
+ if ( !aChildProfileUZ.IsNull() )
+ {
+ Handle(HYDROData_Profile) aProfile =
+ Handle(HYDROData_Profile)::DownCast( aChildProfileUZ->GetFatherObject() );
+ if ( !aProfile.IsNull() )
+ {
+ QString aProfileName = aProfile->GetObjPyName();
+ if ( !aProfileName.isEmpty() )
+ {
+ aResList << QString( "%1.SetChildProfileUZ( %2.GetProfileUZ() );" )
+ .arg( aPolylineName ).arg( aProfileName );
+ }
+ }
+ }
+
+ setPythonReferenceObject( theTreatedObjects, aResList, aRefBathymetry, "SetAltitudeObject" );
+ }