Back to index

salome-geom  6.5.0
NMTTools_CommonBlock.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_CommonBlock.hxx
00024 // Created:     Tue Dec  9 12:23:29 2003
00025 // Author:      Peter KURNEV
00026 //              <pkv@irinox>
00027 //
00028 
00029 #ifndef _NMTTools_CommonBlock_HeaderFile
00030 #define _NMTTools_CommonBlock_HeaderFile
00031 
00032 #include <Standard.hxx>
00033 #include <Standard_Macro.hxx>
00034 #include <BOPTools_ListOfPaveBlock.hxx>
00035 #include <TColStd_ListOfInteger.hxx>
00036 #include <Standard_Integer.hxx>
00037 #include <Standard_Boolean.hxx>
00038 #include <BOPTools_PaveBlock.hxx>
00039 
00040 
00041 //=======================================================================
00042 //function : NMTTools_CommonBlock
00043 //purpose  :
00044 //=======================================================================
00045 class NMTTools_CommonBlock  {
00046  public:
00047   Standard_EXPORT
00048     NMTTools_CommonBlock();
00049 
00050   Standard_EXPORT
00051     void AddPaveBlock(const BOPTools_PaveBlock& aPB) ;
00052 
00053   Standard_EXPORT
00054     void AddFace(const Standard_Integer aF) ;
00055 
00056   Standard_EXPORT
00057     void AddFaces(const TColStd_ListOfInteger& aLF) ;
00058 
00059   Standard_EXPORT
00060     const BOPTools_ListOfPaveBlock& PaveBlocks() const;
00061 
00062   Standard_EXPORT
00063     const TColStd_ListOfInteger& Faces() const;
00064 
00065   Standard_EXPORT
00066     const BOPTools_PaveBlock& PaveBlock1() const;
00067 
00068   Standard_EXPORT
00069     BOPTools_PaveBlock& PaveBlock1(const Standard_Integer anIx) ;
00070 
00071   Standard_EXPORT
00072     BOPTools_PaveBlock& PaveBlockOnEdge(const Standard_Integer anIndex) ;
00073 
00074   Standard_EXPORT
00075     Standard_Boolean IsPaveBlockOnFace(const Standard_Integer anIndex) const;
00076 
00077   Standard_EXPORT
00078     Standard_Boolean IsPaveBlockOnEdge(const Standard_Integer anIndex) const;
00079 
00080   Standard_EXPORT
00081     Standard_Boolean IsEqual(const NMTTools_CommonBlock& aCB) const;
00082 
00083   Standard_EXPORT
00084     Standard_Boolean Contains(const BOPTools_PaveBlock& aPB) const;
00085 
00086  protected:
00087   BOPTools_ListOfPaveBlock myPaveBlocks;
00088   TColStd_ListOfInteger myFaces;
00089 };
00090 
00091 #endif