+ aBathymetryObj->Update();
+
+ // Activate VTK viewer and show the bathymetry
+ SUIT_ViewManager* aVTKMgr = 0;
+ SUIT_ViewManager* aViewMgr = module()->getApp()->activeViewManager();
+ // Try to get a VTK viewer as an active or existing one
+ if ( aViewMgr )
+ {
+ if ( aViewMgr->getType() == SVTK_Viewer::Type() )
+ {
+ aVTKMgr = aViewMgr;
+ }
+ else
+ {
+ aVTKMgr = module()->getApp()->viewManager( SVTK_Viewer::Type() );
+ }
+ }
+ // If there is no VTK viewer yet then create a new one
+ if ( !aVTKMgr )
+ {
+ aVTKMgr = module()->getApp()->createViewManager( SVTK_Viewer::Type() );
+ }
+ // Set the bathymetry visible in the VTK viewer
+ if ( aVTKMgr )
+ {
+ module()->setObjectVisible( (size_t)aVTKMgr->getViewModel(), aBathymetryObj, true );
+ }
+
+ theUpdateFlags = UF_Model | UF_VTKViewer | UF_VTK_Init | UF_VTK_Forced;
+
+ if( !myIsEdit )
+ {
+ QString anEntry = HYDROGUI_DataObject::dataObjectEntry( aBathymetryObj );
+ theBrowseObjectsEntries.append( anEntry );
+ }
+