X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_IViewer.h;h=8e00d69b84def1a8143034bb318788c4c5ec2cf6;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=d7f1a32c53973ab0f3386df88640ae72d2835fa3;hpb=3c987a8d1b88765224e3ac1388afb91eae17e4d3;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_IViewer.h b/src/ModuleBase/ModuleBase_IViewer.h index d7f1a32c5..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;