-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-
-// File: PartSet_ResultSketchPrs.h
-// Created: 25 March 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_ResultSketchPrs_H
#define PartSet_ResultSketchPrs_H
/// \param theResult a result object
Standard_EXPORT PartSet_ResultSketchPrs(ResultPtr theResult);
- /// Returns true if the checked type can be accepted for the base selection type
- /// It returns true if they are coicide or if the base type is face and the checked type is wire
- /// @return boolean result
- static Standard_EXPORT bool isValidShapeType(const TopAbs_ShapeEnum& theBaseType,
- const TopAbs_ShapeEnum& theCheckedType);
-
- 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
/// \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