bool anIsFusedImage = false;
bool anIsCutImage = false;
bool anIsSplittedImage = false;
- bool anIsMustBeUpdatedImage = false;
+ bool anIsMustobjectBeUpdated = false;
bool anIsPolyline = false;
bool anIsPolyline3D = false;
bool anIsProfile = false;
bool anIsZone = false;
bool anIsObstacle = false;
bool anIsStream = false;
+ bool anIsChannel = false;
bool anIsGeomObject = false;
// check the selected GEOM objects
anIsVisibleInSelection |= aVisibility;
anIsHiddenInSelection |= !aVisibility;
+ if ( anObject->IsMustBeUpdated() )
+ {
+ anIsMustobjectBeUpdated = true;
+ }
+
ObjectKind anObjectKind = anObject->GetKind();
if( anObjectKind == KIND_IMAGE )
{
anIsSplittedImage = true;
}
}
- if ( anImage->IsMustBeUpdated() )
- {
- anIsMustBeUpdatedImage = true;
- }
}
}
else if( anObjectKind == KIND_POLYLINEXY )
anIsObstacle = true;
else if( anObjectKind == KIND_STREAM )
anIsStream = true;
+ else if( anObjectKind == KIND_CHANNEL )
+ anIsChannel = true;
}
anIsGeomObject = HYDROData_Tool::IsGeometryObject( anObject );
theMenu->addAction( action( ImportBathymetryId ) );
break;
case KIND_ARTIFICIAL_OBJECT:
+ theMenu->addAction( action( CreateChannelId ) );
break;
case KIND_NATURAL_OBJECT:
theMenu->addAction( action( CreateImmersibleZoneId ) );
if( anIsSelectedDataObjects )
{
- if ( anIsMustBeUpdatedImage )
+ if ( anIsMustobjectBeUpdated )
{
- theMenu->addAction( action( UpdateImageId ) );
+ theMenu->addAction( action( UpdateObjectId ) );
theMenu->addSeparator();
}
theMenu->addAction( action( EditSplittedImageId ) );
}
- theMenu->addAction( action( ObserveImageId ) );
+ //RKV: BUG#98: theMenu->addAction( action( ObserveImageId ) );
theMenu->addAction( action( ExportImageId ) );
theMenu->addSeparator();
theMenu->addAction( action( SplitImageId ) );
theMenu->addSeparator();
}
+ else if( anIsBathymetry )
+ {
+ theMenu->addAction( action( EditImportedBathymetryId ) );
+ theMenu->addSeparator();
+ }
else if( anIsPolyline )
{
theMenu->addAction( action( EditPolylineId ) );
theMenu->addAction( action( EditStreamId ) );
theMenu->addSeparator();
}
+ else if( anIsChannel )
+ {
+ theMenu->addAction( action( EditChannelId ) );
+ theMenu->addSeparator();
+ }
else if( anIsVisualState && anIsObjectBrowser )
{
theMenu->addAction( action( SaveVisualStateId ) );
theMenu->addAction( action( DeleteId ) );
theMenu->addSeparator();
- if( anIsImage || anIsPolyline || anIsPolyline3D || anIsImmersibleZone || anIsZone ||
- anIsRegion || anIsBathymetry || anIsObstacle || anIsStream || anIsValidProfile )
+ if( anIsImage || anIsPolyline || anIsPolyline3D ||
+ anIsImmersibleZone || anIsZone || anIsRegion ||
+ anIsBathymetry || anIsObstacle || anIsStream ||
+ anIsChannel || anIsValidProfile )
{
if( anIsHiddenInSelection )
theMenu->addAction( action( ShowId ) );