Salome HOME
0021672: [CEA 565] Dump Study from script
[modules/geom.git] / src / NMTTools / NMTTools_Tools.hxx
1 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, 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.
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
23 // File:        NMTTools_Tools.hxx
24 // Created:     Mon Dec  8 10:35:15 2003
25 // Author:      Peter KURNEV
26 //              <pkv@irinox>
27
28 #ifndef _NMTTools_Tools_HeaderFile
29 #define _NMTTools_Tools_HeaderFile
30
31 #include <Standard.hxx>
32 #include <Standard_Macro.hxx>
33 #include <Standard_Boolean.hxx>
34 #include <Handle_IntTools_Context.hxx>
35 #include <Handle_Geom2d_Curve.hxx>
36 #include <Standard_Real.hxx>
37 #include <TopTools_ListOfShape.hxx>
38 #include <TopoDS_Vertex.hxx>
39 #include <BOPTools_CArray1OfVVInterference.hxx>
40 #include <BOPTColStd_IndexedDataMapOfIntegerIndexedMapOfInteger.hxx>
41 #include <BOPTools_CArray1OfSSInterference.hxx>
42 #include <TopoDS_Edge.hxx>
43 #include <TopoDS_Face.hxx>
44 #include <IntTools_Context.hxx>
45 #include <NMTTools_ListOfCoupleOfShape.hxx>
46 #include <NMTTools_IndexedDataMapOfShapeIndexedMapOfShape.hxx>
47 #include <Geom2d_Curve.hxx>
48
49 //=======================================================================
50 //function : NMTTools_Tools
51 //purpose  :
52 //=======================================================================
53 class NMTTools_Tools  {
54  public:
55   Standard_EXPORT
56     static  void MakeNewVertex(const TopTools_ListOfShape& aLV,
57                                TopoDS_Vertex& aNewVertex) ;
58
59   Standard_EXPORT
60     static  void FindChains(const BOPTools_CArray1OfVVInterference& aVVs,
61                             BOPTColStd_IndexedDataMapOfIntegerIndexedMapOfInteger& aMCX) ;
62
63   Standard_EXPORT
64     static  void FindChains(const BOPTools_CArray1OfSSInterference& aVVs,
65                             BOPTColStd_IndexedDataMapOfIntegerIndexedMapOfInteger& aMCX) ;
66
67   Standard_EXPORT
68     static  void FindChains(const BOPTColStd_IndexedDataMapOfIntegerIndexedMapOfInteger& aMCV,
69                             BOPTColStd_IndexedDataMapOfIntegerIndexedMapOfInteger& aMCX) ;
70
71   Standard_EXPORT
72     static  Standard_Boolean IsSplitInOnFace(const TopoDS_Edge& aE,
73                                              const TopoDS_Face& aF,
74                                              const Handle(IntTools_Context)& aCtx) ;
75
76   Standard_EXPORT
77     static  Standard_Boolean AreFacesSameDomain(const TopoDS_Face& aF1,
78                                                 const TopoDS_Face& aF2,
79                                                 const Handle(IntTools_Context)& aCtx) ;
80
81   Standard_EXPORT
82     static  void FindChains(const NMTTools_ListOfCoupleOfShape& aLCS,
83                             NMTTools_IndexedDataMapOfShapeIndexedMapOfShape& aM) ;
84
85   Standard_EXPORT
86     static  void FindChains(const NMTTools_IndexedDataMapOfShapeIndexedMapOfShape& aM1,
87                             NMTTools_IndexedDataMapOfShapeIndexedMapOfShape& aM2) ;
88
89   Standard_EXPORT
90     static  void MakePCurve(const TopoDS_Edge& aE,
91                             const TopoDS_Face& aF,
92                             const Handle(Geom2d_Curve)& aC2D) ;
93
94   Standard_EXPORT
95     static  void UpdateEdge(const TopoDS_Edge& aE,
96                             const Standard_Real aTol) ;
97
98 };
99 #endif