From: vsv Date: Thu, 12 Sep 2019 07:17:38 +0000 (+0300) Subject: Corrections according to remarks X-Git-Tag: V9_4_0a2~4^2~108 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=477e03eb76ddf2afd8f0bed218d7627a3f840a24;p=modules%2Fshaper.git Corrections according to remarks --- diff --git a/src/SHAPERGUI/SHAPERGUI_SalomeViewer.cpp b/src/SHAPERGUI/SHAPERGUI_SalomeViewer.cpp index 92113150b..1f0d054f4 100644 --- a/src/SHAPERGUI/SHAPERGUI_SalomeViewer.cpp +++ b/src/SHAPERGUI/SHAPERGUI_SalomeViewer.cpp @@ -582,19 +582,13 @@ void SHAPERGUI_SalomeViewer::setFitter(OCCViewer_Fitter* theFitter) mySelector->viewer()->setFitter(theFitter); } -OCCViewer_Fitter* SHAPERGUI_SalomeViewer::currentFitter() const +OCCViewer_Fitter* SHAPERGUI_SalomeViewer::fitter() const { if (mySelector) - return mySelector->viewer()->currentFitter(); + return mySelector->viewer()->fitter(); return 0; } -void SHAPERGUI_SalomeViewer::unsetFitter() -{ - if (mySelector) - mySelector->viewer()->unsetFitter(); -} - //void SHAPERGUI_SalomeViewer::Zfitall() //{ diff --git a/src/SHAPERGUI/SHAPERGUI_SalomeViewer.h b/src/SHAPERGUI/SHAPERGUI_SalomeViewer.h index ba778d1df..97df56cdc 100644 --- a/src/SHAPERGUI/SHAPERGUI_SalomeViewer.h +++ b/src/SHAPERGUI/SHAPERGUI_SalomeViewer.h @@ -209,8 +209,7 @@ Q_OBJECT virtual void setColorScaleTitle(const QString& theText); virtual void setFitter(OCCViewer_Fitter* theFitter); - virtual OCCViewer_Fitter* currentFitter() const; - virtual void unsetFitter(); + virtual OCCViewer_Fitter* fitter() const; // Fit all along Z (perpendicular to display) //virtual void Zfitall();