X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FNewGeom%2FNewGeom_SalomeViewer.cpp;h=8fe9bd862ce0662f02e3b90a5385616ca6f2b78d;hb=9cea92b08d17ed1cb784b7ed774b947d03a348e1;hp=ef6d6c539b87bca1b16f6a6850c9a54f12a3bc41;hpb=8320afe7fc596d4ad32c00f59ce83de2039a14e6;p=modules%2Fshaper.git diff --git a/src/NewGeom/NewGeom_SalomeViewer.cpp b/src/NewGeom/NewGeom_SalomeViewer.cpp index ef6d6c539..8fe9bd862 100644 --- a/src/NewGeom/NewGeom_SalomeViewer.cpp +++ b/src/NewGeom/NewGeom_SalomeViewer.cpp @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + #include "NewGeom_SalomeViewer.h" #include "NewGeom_OCCSelector.h" @@ -231,7 +233,7 @@ void NewGeom_SalomeViewer::setViewProjection(double theX, double theY, double th Handle(V3d_View) aView3d = aVFrame->getViewPort()->getView(); if (!aView3d.IsNull()) { aView3d->SetProj(theX, theY, theZ); - aView3d->FitAll(0.01, true, true); + aView3d->FitAll(0.01, true); aView3d->SetZSize(0.); } } @@ -263,3 +265,12 @@ void NewGeom_SalomeViewer::clearSelectionFilters() aContext->RemoveFilters(); } } + +//*************************************** +void NewGeom_SalomeViewer::update() +{ + Handle(AIS_InteractiveContext) aContext = AISContext(); + if (!aContext.IsNull()) { + aContext->UpdateCurrentViewer(); + } +}