X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_IViewer.h;h=1ffd75c5c874c70be62afb036f9bf6979e4567dc;hb=63d86e00e1e6a482fcad527ae0b883deccceed11;hp=77c10a45c230c8979cf5615156aa9ba47a1b8af3;hpb=605aa7248932dd2a0c68e74cac76dffb5a12c27d;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_IViewer.h b/src/ModuleBase/ModuleBase_IViewer.h index 77c10a45c..1ffd75c5c 100644 --- a/src/ModuleBase/ModuleBase_IViewer.h +++ b/src/ModuleBase/ModuleBase_IViewer.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2020 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -21,6 +21,7 @@ #define ModuleBase_IViewer_H #include "ModuleBase.h" + #include #include #include @@ -31,6 +32,11 @@ class QMouseEvent; class QKeyEvent; class QContextMenuEvent; class ModuleBase_IViewWindow; +#ifdef HAVE_SALOME +class OCCViewer_Fitter; +#else +class AppElements_Fitter; +#endif /** * \ingroup GUI @@ -181,8 +187,27 @@ Q_OBJECT // \param theText is a title virtual void setColorScaleTitle(const QString& theText) = 0; + /// Switches On additional highlight for objects preselection + void showSelectionHighlight() { + myShowHighlight = true; + } + + /// Switches Off additional highlight for objects preselection + void hideSelectionHighlight() { + myShowHighlight = false; + } + +#ifdef HAVE_SALOME + virtual void setFitter(OCCViewer_Fitter* theFitter) = 0; + virtual OCCViewer_Fitter* fitter() const = 0; +#else + virtual void setFitter(AppElements_Fitter* theFitter) = 0; + virtual AppElements_Fitter* fitter() const = 0; +#endif + static Handle(Prs3d_Drawer) DefaultHighlightDrawer; + signals: /// Signal emited when last view window is closed void lastViewClosed(); @@ -235,6 +260,8 @@ signals: QMap myWindowScale; bool myIs2dMode; + + bool myShowHighlight; }; #endif