Salome HOME
Selection for image presentation & updates for interpolated stream profiles and stream.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_RiverBottomOp.cxx
index ac898851bc8a424d6f6b3453fb45147f10f6f1b4..87ce6116616a8ad82d21f9b6ef1c8e3a123940e2 100644 (file)
@@ -63,25 +63,15 @@ void HYDROGUI_RiverBottomOp::startOperation()
   HYDROGUI_RiverBottomDlg* aPanel = ::qobject_cast<HYDROGUI_RiverBottomDlg*>( inputPanel() );
 
   aPanel->reset();
-  /*
-  QString aRiver;
-  Handle(HYDROData_River) aRiverObj = Handle(HYDROData_River)::DownCast( HYDROGUI_Tool::GetSelectedObject( module() ) );
-  if ( !aRiverObj.IsNull() )
-      aRiver = aRiverObj->GetName();
-
-  aPanel->setRiverName( aRiver );
-  */
 }
 
 void HYDROGUI_RiverBottomOp::abortOperation()
 {
-//  erasePreview();
   HYDROGUI_Operation::abortOperation();
 }
 
 void HYDROGUI_RiverBottomOp::commitOperation()
 {
-//  erasePreview();
   HYDROGUI_Operation::commitOperation();
 }
 
@@ -109,15 +99,6 @@ bool HYDROGUI_RiverBottomOp::processApply( int& theUpdateFlags, QString& theErro
 
   aRiver->GenerateBottomPolyline();
   aRiver->Update();
-//  Handle(HYDRO_RiverBottom) aBottom = createNewObject();
-//  aBottom->SetName( QString( "%1_Bottom" ).arg( aRiver->GetName() ) );
-
-//  erasePreview();
-
-//    module()->setObjectVisible( HYDROGUI_Tool::GetActiveOCCViewId( module() ), aBottom, true );
-//    theBrowseObjectsEntries.append( HYDROGUI_DataObject::dataObjectEntry( aBottom ) );
-
-//  module()->setIsToUpdate( aBottom );
 
   theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced | UF_VTKViewer;