Version: 9.12.0
GEOMAlgo_GetInPlaceAPI.hxx
Go to the documentation of this file.
1 // Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 // File: GEOMAlgo_GetInPlaceAPI.hxx
23 // Created:
24 // Author: Sergey KHROMOV
25 
26 #ifndef _GEOMAlgo_GetInPlaceAPI_HeaderFile
27 #define _GEOMAlgo_GetInPlaceAPI_HeaderFile
28 
29 #include <GEOM_Function.hxx>
30 
31 #include <TopTools_IndexedMapOfShape.hxx>
32 #include <TopTools_ListOfShape.hxx>
33 #include <gp_Vec.hxx>
34 
35 #include <vector>
36 
38 class BRepExtrema_DistShapeShape;
39 class TopoDS_Face;
40 class TopoDS_Shape;
41 
49 {
50 
51 public:
52 
59  Standard_EXPORT static Standard_Boolean GetInPlace
60  (const TopoDS_Shape &theWhere,
61  const TopoDS_Shape &theWhat,
62  GEOMAlgo_GetInPlace &theGIP);
63 
75  Standard_EXPORT static Standard_Integer GetInPlaceOld
76  (const TopoDS_Shape &theWhere,
77  const TopoDS_Shape &theWhat,
78  TopTools_ListOfShape &theShapesInPlace);
79 
80 
86  Standard_EXPORT static Standard_Boolean GetInPlaceByHistory
87  (const Handle(GEOM_Function) &theWhereFunction,
88  const TopTools_IndexedMapOfShape &theWhereIndices,
89  const TopoDS_Shape &theWhat,
90  TopTools_ListOfShape &theShapesInPlace);
91 
97  Standard_EXPORT static Standard_Boolean GetInPlaceMap
98  (const Handle(GEOM_Function) &theWhereFunction,
99  const TopoDS_Shape &theWhat,
100  std::vector< std::vector< int > > &theResVec);
101 
102 protected:
103 
107  static gp_Vec GetNormal(const TopoDS_Face &theFace,
108  const BRepExtrema_DistShapeShape &theExtrema);
109 
114  static void GetShapeProperties(const TopoDS_Shape &theShape,
115  Standard_Real theTab[],
116  gp_Pnt &theVertex);
117 
118 };
119 
120 
121 
122 #endif
Handle(TColStd_HSequenceOfTransient) AdvancedEngine_IOperations
Create a T-shape object with specified caracteristics for the main and the incident pipes (radius,...
Definition: AdvancedEngine_IOperations.cxx:1907
This is an API class for all GetInPlace algorithm.
Definition: GEOMAlgo_GetInPlaceAPI.hxx:49
static Standard_EXPORT Standard_Boolean GetInPlace(const TopoDS_Shape &theWhere, const TopoDS_Shape &theWhat, GEOMAlgo_GetInPlace &theGIP)
New GetInPlace method implementation.
Definition: GEOMAlgo_GetInPlaceAPI.cxx:55
static Standard_EXPORT Standard_Integer GetInPlaceOld(const TopoDS_Shape &theWhere, const TopoDS_Shape &theWhat, TopTools_ListOfShape &theShapesInPlace)
Old implementation of GetInPlace algorithm. This method searches among sub shapes of the shape theWhe...
Definition: GEOMAlgo_GetInPlaceAPI.cxx:116
static void GetShapeProperties(const TopoDS_Shape &theShape, Standard_Real theTab[], gp_Pnt &theVertex)
Definition: GEOMAlgo_GetInPlaceAPI.cxx:272
static Standard_EXPORT Standard_Boolean GetInPlaceByHistory(const Handle(GEOM_Function) &theWhereFunction, const TopTools_IndexedMapOfShape &theWhereIndices, const TopoDS_Shape &theWhat, TopTools_ListOfShape &theShapesInPlace)
GetInPlaceByHistory method implementation.
Definition: GEOMAlgo_GetInPlaceAPI.cxx:309
static Standard_EXPORT Standard_Boolean GetInPlaceMap(const Handle(GEOM_Function) &theWhereFunction, const TopoDS_Shape &theWhat, std::vector< std::vector< int > > &theResVec)
GetInPlaceMap method implementation.
Definition: GEOMAlgo_GetInPlaceAPI.cxx:437
static gp_Vec GetNormal(const TopoDS_Face &theFace, const BRepExtrema_DistShapeShape &theExtrema)
Return normal to face at extrema point.
Definition: GEOMAlgo_GetInPlaceAPI.cxx:231
The implementation of Get In Place Algorithm.
Definition: GEOMAlgo_GetInPlace.hxx:142