Handle(HYDROData_Channel) aChannelObj =
Handle(HYDROData_Channel)::DownCast( aDataObj );
- Handle(HYDROData_Profile) aProfile = aChannelObj->GetProfile();
+ LightApp_DataObject* aGuideLineSect =
+ createObject( aGuiObj, tr( "CHANNEL_GUIDE_LINE" ), aGuiObj->entry() );
Handle(HYDROData_Polyline3D) aGuideLine = aChannelObj->GetGuideLine();
+ if ( !aGuideLine.IsNull() && !aGuideLine->IsRemoved() ) {
+ createObject( aGuideLineSect, aGuideLine, aGuiObj->entry(), false );
+ }
+
+ LightApp_DataObject* aProfileSect =
+ createObject( aGuiObj, tr( "CHANNEL_PROFILE" ), aGuiObj->entry() );
+ Handle(HYDROData_Profile) aProfile = aChannelObj->GetProfile();
+ if ( !aProfile.IsNull() && !aProfile->IsRemoved() ) {
+ createObject( aProfileSect, aProfile, aGuiObj->entry(), false );
+ }
+ }
+ else if ( anObjectKind == KIND_STREAM )
+ {
+ Handle(HYDROData_Stream) aStreamObj =
+ Handle(HYDROData_Stream)::DownCast( aDataObj );
+
+ LightApp_DataObject* aHydraulicAxisSect =
+ createObject( aGuiObj, tr( "STREAM_HYDRAULIC_AXIS" ), aGuiObj->entry() );
+ Handle(HYDROData_PolylineXY) aHydraulicAxis = aStreamObj->GetHydraulicAxis();
+ if ( !aHydraulicAxis.IsNull() && !aHydraulicAxis->IsRemoved() ) {
+ createObject( aHydraulicAxisSect, aHydraulicAxis, aGuiObj->entry(), false );
+ }
- createObject( aGuiObj, aProfile, aGuiObj->entry(), false );
- createObject( aGuiObj, aGuideLine, aGuiObj->entry(), false );
+ HYDROData_SequenceOfObjects aProfiles = aStreamObj->GetProfiles();
+ buildObjectPartition( aGuiObj, aProfiles, tr( "STREAM_PROFILES" ), true );
}
}
<source>POLYLINE3D_BATHYMETRY</source>
<translation>Bathymetry</translation>
</message>
+ <message>
+ <source>CHANNEL_GUIDE_LINE</source>
+ <translation>Guide line</translation>
+ </message>
+ <message>
+ <source>CHANNEL_PROFILE</source>
+ <translation>Profile</translation>
+ </message>
+ <message>
+ <source>STREAM_HYDRAULIC_AXIS</source>
+ <translation>Hydraulic axis</translation>
+ </message>
+ <message>
+ <source>STREAM_PROFILES</source>
+ <translation>Profiles</translation>
+ </message>
</context>
<context>