Back to index

salome-geom  6.5.0
NMTTools_Tools.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 // File:        NMTTools_Tools.hxx
00024 // Created:     Mon Dec  8 10:35:15 2003
00025 // Author:      Peter KURNEV
00026 //              <pkv@irinox>
00027 
00028 #ifndef _NMTTools_Tools_HeaderFile
00029 #define _NMTTools_Tools_HeaderFile
00030 
00031 #include <Standard.hxx>
00032 #include <Standard_Macro.hxx>
00033 #include <Standard_Boolean.hxx>
00034 #include <Handle_IntTools_Context.hxx>
00035 #include <Handle_Geom2d_Curve.hxx>
00036 #include <Standard_Real.hxx>
00037 #include <TopTools_ListOfShape.hxx>
00038 #include <TopoDS_Vertex.hxx>
00039 #include <BOPTools_CArray1OfVVInterference.hxx>
00040 #include <BOPTColStd_IndexedDataMapOfIntegerIndexedMapOfInteger.hxx>
00041 #include <BOPTools_CArray1OfSSInterference.hxx>
00042 #include <TopoDS_Edge.hxx>
00043 #include <TopoDS_Face.hxx>
00044 #include <IntTools_Context.hxx>
00045 #include <NMTTools_ListOfCoupleOfShape.hxx>
00046 #include <NMTTools_IndexedDataMapOfShapeIndexedMapOfShape.hxx>
00047 #include <Geom2d_Curve.hxx>
00048 
00049 //=======================================================================
00050 //function : NMTTools_Tools
00051 //purpose  :
00052 //=======================================================================
00053 class NMTTools_Tools  {
00054  public:
00055   Standard_EXPORT
00056     static  void MakeNewVertex(const TopTools_ListOfShape& aLV,
00057                             TopoDS_Vertex& aNewVertex) ;
00058 
00059   Standard_EXPORT
00060     static  void FindChains(const BOPTools_CArray1OfVVInterference& aVVs,
00061                          BOPTColStd_IndexedDataMapOfIntegerIndexedMapOfInteger& aMCX) ;
00062 
00063   Standard_EXPORT
00064     static  void FindChains(const BOPTools_CArray1OfSSInterference& aVVs,
00065                          BOPTColStd_IndexedDataMapOfIntegerIndexedMapOfInteger& aMCX) ;
00066 
00067   Standard_EXPORT
00068     static  void FindChains(const BOPTColStd_IndexedDataMapOfIntegerIndexedMapOfInteger& aMCV,
00069                          BOPTColStd_IndexedDataMapOfIntegerIndexedMapOfInteger& aMCX) ;
00070 
00071   Standard_EXPORT
00072     static  Standard_Boolean IsSplitInOnFace(const TopoDS_Edge& aE,
00073                                         const TopoDS_Face& aF,
00074                                         const Handle(IntTools_Context)& aCtx) ;
00075 
00076   Standard_EXPORT
00077     static  Standard_Boolean AreFacesSameDomain(const TopoDS_Face& aF1,
00078                                           const TopoDS_Face& aF2,
00079                                           const Handle(IntTools_Context)& aCtx) ;
00080 
00081   Standard_EXPORT
00082     static  void FindChains(const NMTTools_ListOfCoupleOfShape& aLCS,
00083                          NMTTools_IndexedDataMapOfShapeIndexedMapOfShape& aM) ;
00084 
00085   Standard_EXPORT
00086     static  void FindChains(const NMTTools_IndexedDataMapOfShapeIndexedMapOfShape& aM1,
00087                          NMTTools_IndexedDataMapOfShapeIndexedMapOfShape& aM2) ;
00088 
00089   Standard_EXPORT
00090     static  void MakePCurve(const TopoDS_Edge& aE,
00091                          const TopoDS_Face& aF,
00092                          const Handle(Geom2d_Curve)& aC2D) ;
00093 
00094   Standard_EXPORT
00095     static  void UpdateEdge(const TopoDS_Edge& aE,
00096                          const Standard_Real aTol) ;
00097 
00098 };
00099 #endif