Back to index

salome-geom  6.5.0
NMTDS_InterfPool.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 // File:        NMTDS_InterfPool.hxx
00021 //
00022 // Author:      Peter KURNEV
00023 
00024 #ifndef _NMTDS_InterfPool_HeaderFile
00025 #define _NMTDS_InterfPool_HeaderFile
00026 
00027 #include <Standard.hxx>
00028 #include <Standard_Macro.hxx>
00029 
00030 #include <Standard_Integer.hxx>
00031 #include <BOPTools_CArray1OfSSInterference.hxx>
00032 #include <BOPTools_CArray1OfESInterference.hxx>
00033 #include <BOPTools_CArray1OfVSInterference.hxx>
00034 #include <BOPTools_CArray1OfEEInterference.hxx>
00035 #include <BOPTools_CArray1OfVEInterference.hxx>
00036 #include <BOPTools_CArray1OfVVInterference.hxx>
00037 #include <Standard_Boolean.hxx>
00038 #include <NMTDS_InterfType.hxx>
00039 #include <NMTDS_PairBoolean.hxx>
00040 #include <NMTDS_MapOfPairBoolean.hxx>
00041 #include <NMTDS_ListOfPairBoolean.hxx>
00042 
00043 //=======================================================================
00044 //class    : NMTDS_InterfPool
00045 //purpose  : 
00046 //=======================================================================
00047 class NMTDS_InterfPool  {
00048  public:
00049   Standard_EXPORT 
00050     NMTDS_InterfPool();
00051   Standard_EXPORT 
00052     virtual ~NMTDS_InterfPool();
00053   
00054   Standard_EXPORT
00055     Standard_Boolean Add(const NMTDS_PairBoolean& aPKB,
00056                       const NMTDS_InterfType aType) ;
00057   
00058   Standard_EXPORT
00059     Standard_Boolean Add(const Standard_Integer aInd1,
00060                       const Standard_Integer aInd2,
00061                       const NMTDS_InterfType aType) ;
00062   
00063   Standard_EXPORT
00064     Standard_Boolean Add(const Standard_Integer aInd1,
00065                       const Standard_Integer aInd2,
00066                       const Standard_Boolean bFlag,
00067                       const NMTDS_InterfType aType) ;
00068   
00069   Standard_EXPORT
00070     Standard_Boolean Contains(const NMTDS_PairBoolean& aPKB) const;
00071   
00072   Standard_EXPORT
00073     Standard_Boolean Contains(const Standard_Integer aInd1,
00074                            const Standard_Integer aInd2) const;
00075   
00076   Standard_EXPORT
00077     const NMTDS_ListOfPairBoolean& Get() const;
00078   
00079   Standard_EXPORT
00080     const NMTDS_ListOfPairBoolean& Get(const NMTDS_InterfType aType) const;
00081   
00082   Standard_EXPORT
00083     const NMTDS_ListOfPairBoolean& Get(const Standard_Integer aInd) const;
00084   
00085   Standard_EXPORT
00086     const NMTDS_ListOfPairBoolean& Get(const Standard_Integer aInd,
00087                                    const NMTDS_InterfType aType) const;
00088   
00090   Standard_EXPORT     BOPTools_CArray1OfSSInterference& SSInterferences() ;
00091   
00093   Standard_EXPORT     BOPTools_CArray1OfESInterference& ESInterferences() ;
00094   
00096   Standard_EXPORT     BOPTools_CArray1OfVSInterference& VSInterferences() ;
00097   
00099   Standard_EXPORT     BOPTools_CArray1OfEEInterference& EEInterferences() ;
00100   
00102   Standard_EXPORT     BOPTools_CArray1OfVEInterference& VEInterferences() ;
00103   
00105   Standard_EXPORT     BOPTools_CArray1OfVVInterference& VVInterferences() ;
00106   
00107   Standard_EXPORT     void Purge() ;
00108 
00109 protected:
00110   NMTDS_MapOfPairBoolean myTable[6];
00111   NMTDS_ListOfPairBoolean myList;
00112   Standard_Integer myMaxInd;
00113   BOPTools_CArray1OfSSInterference mySSInterferences;
00114   BOPTools_CArray1OfESInterference myESInterferences;
00115   BOPTools_CArray1OfVSInterference myVSInterferences;
00116   BOPTools_CArray1OfEEInterference myEEInterferences;
00117   BOPTools_CArray1OfVEInterference myVEInterferences;
00118   BOPTools_CArray1OfVVInterference myVVInterferences;
00119 
00120 private:
00121 };
00122 
00123 #endif