Salome HOME
Exlude the user input during process events by application (Bug #325).
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Poly3DOp.cxx
index 7a4bd951fb8a8848fdcfd4c9ba5e24b6836ff792..8259381af1ee2d4767cf1fdd1a0842c11ec95a49 100644 (file)
@@ -89,9 +89,9 @@ void HYDROGUI_Poly3DOp::startOperation()
     if( !aPoly.IsNull() )
       aPolyName = aPoly->GetName();
 
-    Handle(HYDROData_Bathymetry) aBathymetry = myEditedObject->GetBathymetry();
-    if( !aBathymetry.IsNull() )
-      aBathName = aBathymetry->GetName();
+    Handle(HYDROData_IAltitudeObject) anAltitudeObj = myEditedObject->GetAltitudeObject();
+    if( !anAltitudeObj.IsNull() )
+      aBathName = anAltitudeObj->GetName();
 
     aPanel->setSelectedObjects( aPolyName, aProfileName, aBathName );
   }
@@ -167,7 +167,7 @@ bool HYDROGUI_Poly3DOp::processApply( int& theUpdateFlags,
   }
   else
   {
-    aResult->SetBathymetry( aBath );
+    aResult->SetAltitudeObject( aBath );
   }
 
   if( !myIsEdit )
@@ -184,7 +184,8 @@ bool HYDROGUI_Poly3DOp::processApply( int& theUpdateFlags,
     module()->setObjectVisible( aViewId, aProfile, false );
     module()->setObjectVisible( aViewId, aResult, true );
   }
+  module()->setIsToUpdate( aResult );
 
-  theUpdateFlags = UF_Model | UF_Viewer | UF_GV_Forced | UF_OCCViewer | UF_OCC_Forced;
+  theUpdateFlags = UF_Model | UF_Viewer | UF_GV_Forced | UF_OCCViewer | UF_OCC_Forced | UF_VTKViewer;
   return true;
 }