X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_OperationPrs.h;h=d7d8af92ad2dc1acf000f6fab9a2929055f448ad;hb=fc72d43b677baa05ae7fd317346fd8b723b799ed;hp=4577d7b7756dc38693e5638ec7ef8cab63894c58;hpb=d4229cf0e4819ef684866a59e18a82e57f0092b0;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_OperationPrs.h b/src/PartSet/PartSet_OperationPrs.h old mode 100755 new mode 100644 index 4577d7b77..d7d8af92a --- a/src/PartSet/PartSet_OperationPrs.h +++ b/src/PartSet/PartSet_OperationPrs.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: PartSet_OperationPrs.h -// Created: 01 Jul 2015 -// Author: Natalia ERMOLAEVA +// Copyright (C) 2014-2023 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 +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #ifndef PartSet_OperationPrs_H #define PartSet_OperationPrs_H @@ -23,6 +36,9 @@ #include #include +#include +#include +#include #include #include @@ -32,7 +48,7 @@ DEFINE_STANDARD_HANDLE(PartSet_OperationPrs, ViewerData_AISShape) class XGUI_Displayer; -class Handle_AIS_InteractiveObject; +class SelectMgr_Selection; /** * \ingroup GUI @@ -58,7 +74,7 @@ public: /// Switch on using of the AIS presentation with of the shape object increased on the delta void useAISWidth(); - DEFINE_STANDARD_RTTI(PartSet_OperationPrs) + DEFINE_STANDARD_RTTIEXT(PartSet_OperationPrs, ViewerData_AISShape) protected: /// Redefinition of virtual function @@ -73,7 +89,7 @@ protected: protected: /// list of visualized shapes /// \return a map of shapes - NCollection_DataMap& shapesMap(); + NCollection_DataMap& shapesMap(); private: /// Fills the map by the feature object and shapes, which should be visuaziled @@ -97,6 +113,16 @@ private: QMap >& theObjectShapes, const bool theListShouldBeCleared = true); + /// Fills the map by the feature presentation if the feature is presentable + /// \param theFeature a current feature + /// \param theWorkshop a current workshop + /// \param theObjectShapes an output map + /// \param theObjectShape an output map of objects + static void getPresentationShapes(const FeaturePtr& theFeature, + ModuleBase_IWorkshop* theWorkshop, + QMap >& theObjectShapes, + const bool theListShouldBeCleared = true); + /// Fills the map by the feature object and shapes, which should be visuaziled /// Gets the active widget, obtain the highlighted presentations if it has such and /// fill map by object and shapes