1 // Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File: NMTDS_InterfPool.hxx
22 // Author: Peter KURNEV
24 #ifndef _NMTDS_InterfPool_HeaderFile
25 #define _NMTDS_InterfPool_HeaderFile
27 #include <Standard.hxx>
28 #include <Standard_Macro.hxx>
30 #include <Standard_Integer.hxx>
31 #include <BOPTools_CArray1OfSSInterference.hxx>
32 #include <BOPTools_CArray1OfESInterference.hxx>
33 #include <BOPTools_CArray1OfVSInterference.hxx>
34 #include <BOPTools_CArray1OfEEInterference.hxx>
35 #include <BOPTools_CArray1OfVEInterference.hxx>
36 #include <BOPTools_CArray1OfVVInterference.hxx>
37 #include <Standard_Boolean.hxx>
38 #include <NMTDS_InterfType.hxx>
39 #include <NMTDS_PairBoolean.hxx>
40 #include <NMTDS_MapOfPairBoolean.hxx>
41 #include <NMTDS_ListOfPairBoolean.hxx>
43 //=======================================================================
44 //class : NMTDS_InterfPool
46 //=======================================================================
47 class NMTDS_InterfPool {
52 virtual ~NMTDS_InterfPool();
55 Standard_Boolean Add(const NMTDS_PairBoolean& aPKB,
56 const NMTDS_InterfType aType) ;
59 Standard_Boolean Add(const Standard_Integer aInd1,
60 const Standard_Integer aInd2,
61 const NMTDS_InterfType aType) ;
64 Standard_Boolean Add(const Standard_Integer aInd1,
65 const Standard_Integer aInd2,
66 const Standard_Boolean bFlag,
67 const NMTDS_InterfType aType) ;
70 Standard_Boolean Contains(const NMTDS_PairBoolean& aPKB) const;
73 Standard_Boolean Contains(const Standard_Integer aInd1,
74 const Standard_Integer aInd2) const;
77 const NMTDS_ListOfPairBoolean& Get() const;
80 const NMTDS_ListOfPairBoolean& Get(const NMTDS_InterfType aType) const;
83 const NMTDS_ListOfPairBoolean& Get(const Standard_Integer aInd) const;
86 const NMTDS_ListOfPairBoolean& Get(const Standard_Integer aInd,
87 const NMTDS_InterfType aType) const;
89 //! Returns the reference to array Of F/F interferences <br>
90 Standard_EXPORT BOPTools_CArray1OfSSInterference& SSInterferences() ;
92 //! Returns the reference to array Of E/F interferences <br>
93 Standard_EXPORT BOPTools_CArray1OfESInterference& ESInterferences() ;
95 //! Returns the reference to array Of V/F interferences <br>
96 Standard_EXPORT BOPTools_CArray1OfVSInterference& VSInterferences() ;
98 //! Returns the reference to arrray Of E/E interferences <br>
99 Standard_EXPORT BOPTools_CArray1OfEEInterference& EEInterferences() ;
101 //! Returns the reference to arrray Of V/E interferences <br>
102 Standard_EXPORT BOPTools_CArray1OfVEInterference& VEInterferences() ;
104 //! Returns the reference to arrray Of V/V interferences <br>
105 Standard_EXPORT BOPTools_CArray1OfVVInterference& VVInterferences() ;
107 Standard_EXPORT void Purge() ;
110 NMTDS_MapOfPairBoolean myTable[6];
111 NMTDS_ListOfPairBoolean myList;
112 Standard_Integer myMaxInd;
113 BOPTools_CArray1OfSSInterference mySSInterferences;
114 BOPTools_CArray1OfESInterference myESInterferences;
115 BOPTools_CArray1OfVSInterference myVSInterferences;
116 BOPTools_CArray1OfEEInterference myEEInterferences;
117 BOPTools_CArray1OfVEInterference myVEInterferences;
118 BOPTools_CArray1OfVVInterference myVVInterferences;