X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_Poly3DOp.cxx;h=8259381af1ee2d4767cf1fdd1a0842c11ec95a49;hb=f34b90e9e4e02ba65419134d5d37a2e42aecfabf;hp=7a4bd951fb8a8848fdcfd4c9ba5e24b6836ff792;hpb=2205c7977ef77f5d62d91997811ec1c79590d6ad;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_Poly3DOp.cxx b/src/HYDROGUI/HYDROGUI_Poly3DOp.cxx index 7a4bd951..8259381a 100644 --- a/src/HYDROGUI/HYDROGUI_Poly3DOp.cxx +++ b/src/HYDROGUI/HYDROGUI_Poly3DOp.cxx @@ -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; }