Back to index

salome-geom  6.5.0
NMTTools_DEProcessor.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_DEProcessor.hxx
00024 // Created:     Wed Sep 12 12:10:52 2001
00025 // Author:      Peter KURNEV
00026 //              <pkv@irinox>
00027 
00028 #ifndef _NMTTools_DEProcessor_HeaderFile
00029 #define _NMTTools_DEProcessor_HeaderFile
00030 
00031 #include <Standard.hxx>
00032 #include <Standard_Macro.hxx>
00033 #include <NMTTools_PPaveFiller.hxx>
00034 #include <NMTDS_PShapesDataStructure.hxx>
00035 #include <Standard_Boolean.hxx>
00036 #include <BOPTools_IndexedDataMapOfIntegerDEInfo.hxx>
00037 #include <NMTTools_PaveFiller.hxx>
00038 #include <Standard_Integer.hxx>
00039 #include <Standard_Real.hxx>
00040 
00041 
00050 //=======================================================================
00051 //class    : NMTTools_DEProcessor
00052 //purpose  :
00053 //=======================================================================
00054 class NMTTools_DEProcessor  {
00055 public:
00056 
00057 
00058 
00063   Standard_EXPORT
00064     NMTTools_DEProcessor(NMTTools_PaveFiller& aFiller);
00065 
00067   Standard_EXPORT
00068     void Do() ;
00069 
00071   Standard_EXPORT
00072     Standard_Boolean IsDone() const;
00073 
00074 
00075 
00076 protected:
00077   Standard_EXPORT
00078     void FindDegeneratedEdges() ;
00079 
00080   Standard_EXPORT
00081     void DoPaves() ;
00082 
00083   Standard_EXPORT
00084     void FindPaveBlocks(const Standard_Integer nED,
00085                      const Standard_Integer nVD,
00086                      const Standard_Integer nFD,
00087                      BOPTools_ListOfPaveBlock& aLPB) ;
00088 
00089   Standard_EXPORT
00090     void FillPaveSet(const Standard_Integer nED,
00091                    const Standard_Integer nVD,
00092                    const Standard_Integer nFD,
00093                    const BOPTools_ListOfPaveBlock& aLPB) ;
00094 
00095   Standard_EXPORT
00096     void FillSplitEdgesPool(const Standard_Integer nED) ;
00097 
00098   Standard_EXPORT
00099     void MakeSplitEdges(const Standard_Integer nED,
00100                      const Standard_Integer nFD) ;
00101 
00102   Standard_EXPORT
00103     void MakeSplitEdge(const TopoDS_Edge& aS1,
00104                      const TopoDS_Face& aF,
00105                      const TopoDS_Vertex& aV1,
00106                      const Standard_Real aP1,
00107                      const TopoDS_Vertex& aV2,
00108                      const Standard_Real aP2,
00109                      TopoDS_Edge& aNewEdge) ;
00110 
00111 
00112   NMTTools_PPaveFiller myFiller;
00113   NMTDS_PShapesDataStructure myDS;
00114   Standard_Boolean myIsDone;
00115   BOPTools_IndexedDataMapOfIntegerDEInfo myDEMap;
00116 };
00117 #endif