X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_CenterPrs.h;h=91a5387cd5a57d3a66f50e613b7809a7664fbf20;hb=485284976089df895e261395518201ccd85dae4d;hp=f9cf9232fb5a91052ca2172a0393d5b73c16f584;hpb=8cb8a4f0900b8527fdb9aeb9f05cc3ef6d877dc9;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_CenterPrs.h b/src/PartSet/PartSet_CenterPrs.h index f9cf9232f..91a5387cd 100644 --- a/src/PartSet/PartSet_CenterPrs.h +++ b/src/PartSet/PartSet_CenterPrs.h @@ -1,4 +1,22 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D +// Copyright (C) 2017 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 +// // File: PartSet_CenterPrs.h // Created: 25 April 2017 @@ -14,6 +32,7 @@ #include #include #include +#include DEFINE_STANDARD_HANDLE(PartSet_CenterPrs, AIS_Point) @@ -43,9 +62,16 @@ public: /// Returns type of the center ModelAPI_AttributeSelection::CenterType centerType() const { return myCenterType; } + virtual void HilightSelected(const Handle(PrsMgr_PresentationManager3d)& PM, const SelectMgr_SequenceOfOwner& Seq); + virtual void HilightOwnerWithColor (const Handle(PrsMgr_PresentationManager3d)&, + const Handle(Graphic3d_HighlightStyle)&, + const Handle(SelectMgr_EntityOwner)&); + DEFINE_STANDARD_RTTIEXT(PartSet_CenterPrs, AIS_Point) private: + void drawPoint(const Handle(Prs3d_Presentation)& thePrs, Quantity_Color theColor); + ObjectPtr myObject; GeomEdgePtr myEdge; ModelAPI_AttributeSelection::CenterType myCenterType;