X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ViewerProxy.cpp;h=cc73e969d09231ad0ad0395bbafac7ddddb253ee;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=1d8923579eae739d8eb62c4d777cdbd24fb45e85;hpb=1fd15bed1c62f994a3438bc4a12f44d0361f98c9;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ViewerProxy.cpp b/src/XGUI/XGUI_ViewerProxy.cpp index 1d8923579..cc73e969d 100644 --- a/src/XGUI/XGUI_ViewerProxy.cpp +++ b/src/XGUI/XGUI_ViewerProxy.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2021 CEA/DEN, EDF R&D +// Copyright (C) 2014-2024 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -726,24 +726,13 @@ void XGUI_ViewerProxy::setupColorScale() setColorScaleIntervals(aN); } - -//*************************************** -//void XGUI_ViewerProxy::Zfitall() -//{ -//#ifdef HAVE_SALOME -// myWorkshop->salomeConnector()->viewer()->Zfitall(); -//#else -// AppElements_Viewer* aViewer = myWorkshop->mainWindow()->viewer(); -// AppElements_ViewWindow* aView = aViewer->activeViewWindow(); -// if (aView) { -// Handle(V3d_View) aView3d = aView->v3dView(); -// aView3d->ZFitAll(); -// if (aView3d->Depth() < 0.1) -// aView3d->DepthFitAll(); -// } -//#endif -//} - +void XGUI_ViewerProxy::setText( + const ModuleBase_IViewer::TextColor& theText, const int theSize) +{ +#ifdef HAVE_SALOME + myWorkshop->salomeConnector()->viewer()->setText(theText, theSize); +#endif +} #ifdef HAVE_SALOME void XGUI_ViewerProxy::setFitter(OCCViewer_Fitter* theFitter)