SHAPER  9.12.0
PartSet_ResultSketchPrs.h
1 // Copyright (C) 2014-2023 CEA, EDF
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 
20 #ifndef PartSet_ResultSketchPrs_H
21 #define PartSet_ResultSketchPrs_H
22 
23 #include "ModuleBase.h"
24 
25 #include <ModelAPI_Result.h>
26 
27 #include <ViewerData_AISShape.hxx>
28 
29 #include <TopoDS_Compound.hxx>
30 
31 DEFINE_STANDARD_HANDLE(PartSet_ResultSketchPrs, ViewerData_AISShape)
32 
33 
39 {
40 public:
43  Standard_EXPORT PartSet_ResultSketchPrs(ResultPtr theResult);
44 
45  DEFINE_STANDARD_RTTIEXT(PartSet_ResultSketchPrs, ViewerData_AISShape)
46 protected:
48  Standard_EXPORT virtual void Compute(
49  const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
50  const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode = 0);
51 
53  Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
54  const Standard_Integer theMode) ;
55 
56 private:
61  void appendShapeSelection(const Handle(SelectMgr_Selection)& theSelection,
62  const TopoDS_Shape& theShape,
63  const TopAbs_ShapeEnum& theTypeOfSelection);
64 
67  void setAuxiliaryPresentationStyle(const bool isAuxiliary);
68 
73  void fillShapes(TopoDS_Shape& aResultShape,
74  TopoDS_Compound& theAuxiliaryCompound,
75  NCollection_List<TopoDS_Shape>& theFaceList);
76 
78  ResultPtr myResult;
79 
81  TopoDS_Shape myOriginalShape;
82 
84  TopoDS_Compound myAuxiliaryCompound;
85 
87  //std::list<std::shared_ptr<GeomAPI_Shape> > myFacesList;
88  NCollection_List<TopoDS_Shape> mySketchFaceList;
89 };
90 
91 
92 #endif
A redefinition of standard AIS Interactive Object in order to provide specific behaviour for wire pre...
Definition: PartSet_ResultSketchPrs.h:39