X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_ResultSketchPrs.h;h=29a49dfbaa24f8b4050ac0846599c3a77e36f422;hb=047a6c0106078a9953f72510f4e204313f2bcf72;hp=ddf21d1ecd72d143e2a0bd0be691425b1daf6325;hpb=3d6815215e69b112a72b31d467cda60a6ca877c3;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_ResultSketchPrs.h b/src/PartSet/PartSet_ResultSketchPrs.h index ddf21d1ec..29a49dfba 100755 --- a/src/PartSet/PartSet_ResultSketchPrs.h +++ b/src/PartSet/PartSet_ResultSketchPrs.h @@ -1,8 +1,22 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: PartSet_ResultSketchPrs.h -// Created: 25 March 2015 -// Author: Natalia ERMOLAEVA +// Copyright (C) 2014-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 +// #ifndef PartSet_ResultSketchPrs_H #define PartSet_ResultSketchPrs_H @@ -29,15 +43,16 @@ public: /// \param theResult a result object Standard_EXPORT PartSet_ResultSketchPrs(ResultPtr theResult); - DEFINE_STANDARD_RTTI(PartSet_ResultSketchPrs) + DEFINE_STANDARD_RTTIEXT(PartSet_ResultSketchPrs, ViewerData_AISShape) protected: /// Redefinition of virtual function - Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager, + Standard_EXPORT virtual void Compute( + const Handle(PrsMgr_PresentationManager3d)& thePresentationManager, const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode = 0); /// Redefinition of virtual function Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection, - const Standard_Integer aMode) ; + const Standard_Integer theMode) ; private: /// Appens sensitive and owners for wires of the given shape into selection @@ -45,7 +60,8 @@ private: /// \param theShape a shape /// \param theTypeOfSelection type of selection: VERTEX, EDGE, WIRE void appendShapeSelection(const Handle(SelectMgr_Selection)& theSelection, - const TopoDS_Shape& theShape, const TopAbs_ShapeEnum& theTypeOfSelection); + const TopoDS_Shape& theShape, + const TopAbs_ShapeEnum& theTypeOfSelection); /// Sets color/line style/width of the presentation depending on the parameter state /// \param isAuxiliary a boolean value if the properties are for auxiliary objects