X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_IViewer.h;h=8e00d69b84def1a8143034bb318788c4c5ec2cf6;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=e4c4a7dcc3c750d87f72603acc3483314d9f4274;hpb=010db3efe2e727c4f2cc2e99073e036c5ac07f46;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_IViewer.h b/src/ModuleBase/ModuleBase_IViewer.h index e4c4a7dcc..8e00d69b8 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-2023 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -187,6 +187,16 @@ Q_OBJECT // \param theText is a title virtual void setColorScaleTitle(const QString& theText) = 0; + //! Type for mapping from text to color to display the names lines in different colors + typedef std::list > > TextColor; + + //! Sets the text displayed in right-top corner of the 3D view + //! \param theText the text to display, or empty string to erase presentation; + //! the first item is the font name and text color + //! \param theSize size of the text font + virtual void setText(const TextColor& theText, const int theSize) = 0; + + /// Switches On additional highlight for objects preselection void showSelectionHighlight() { myShowHighlight = true; @@ -199,15 +209,12 @@ Q_OBJECT #ifdef HAVE_SALOME virtual void setFitter(OCCViewer_Fitter* theFitter) = 0; - virtual OCCViewer_Fitter* currentFitter() const = 0; + virtual OCCViewer_Fitter* fitter() const = 0; #else virtual void setFitter(AppElements_Fitter* theFitter) = 0; - virtual AppElements_Fitter* currentFitter() const = 0; + virtual AppElements_Fitter* fitter() const = 0; #endif - virtual void unsetFitter() = 0; - - static Handle(Prs3d_Drawer) DefaultHighlightDrawer;