Salome HOME
CMake porting.
[modules/geom.git] / src / NMTDS / NMTDS_InterfPool.hxx
1 // Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
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.
7 //
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.
12 //
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
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 // File:        NMTDS_InterfPool.hxx
21 //
22 // Author:      Peter KURNEV
23
24 #ifndef _NMTDS_InterfPool_HeaderFile
25 #define _NMTDS_InterfPool_HeaderFile
26
27 #include <Standard.hxx>
28 #include <Standard_Macro.hxx>
29
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>
42
43 //=======================================================================
44 //class    : NMTDS_InterfPool
45 //purpose  : 
46 //=======================================================================
47 class NMTDS_InterfPool  {
48  public:
49   Standard_EXPORT 
50     NMTDS_InterfPool();
51   Standard_EXPORT 
52     virtual ~NMTDS_InterfPool();
53   
54   Standard_EXPORT
55     Standard_Boolean Add(const NMTDS_PairBoolean& aPKB,
56                          const NMTDS_InterfType aType) ;
57   
58   Standard_EXPORT
59     Standard_Boolean Add(const Standard_Integer aInd1,
60                          const Standard_Integer aInd2,
61                          const NMTDS_InterfType aType) ;
62   
63   Standard_EXPORT
64     Standard_Boolean Add(const Standard_Integer aInd1,
65                          const Standard_Integer aInd2,
66                          const Standard_Boolean bFlag,
67                          const NMTDS_InterfType aType) ;
68   
69   Standard_EXPORT
70     Standard_Boolean Contains(const NMTDS_PairBoolean& aPKB) const;
71   
72   Standard_EXPORT
73     Standard_Boolean Contains(const Standard_Integer aInd1,
74                               const Standard_Integer aInd2) const;
75   
76   Standard_EXPORT
77     const NMTDS_ListOfPairBoolean& Get() const;
78   
79   Standard_EXPORT
80     const NMTDS_ListOfPairBoolean& Get(const NMTDS_InterfType aType) const;
81   
82   Standard_EXPORT
83     const NMTDS_ListOfPairBoolean& Get(const Standard_Integer aInd) const;
84   
85   Standard_EXPORT
86     const NMTDS_ListOfPairBoolean& Get(const Standard_Integer aInd,
87                                        const NMTDS_InterfType aType) const;
88   
89   //! Returns the reference to array Of F/F interferences <br>
90   Standard_EXPORT     BOPTools_CArray1OfSSInterference& SSInterferences() ;
91   
92   //! Returns the reference to array Of E/F interferences <br>
93   Standard_EXPORT     BOPTools_CArray1OfESInterference& ESInterferences() ;
94   
95   //! Returns the reference to array Of V/F interferences <br>
96   Standard_EXPORT     BOPTools_CArray1OfVSInterference& VSInterferences() ;
97   
98   //! Returns the reference to arrray Of E/E interferences <br>
99   Standard_EXPORT     BOPTools_CArray1OfEEInterference& EEInterferences() ;
100   
101   //! Returns the reference to arrray Of  V/E interferences <br>
102   Standard_EXPORT     BOPTools_CArray1OfVEInterference& VEInterferences() ;
103   
104   //! Returns the reference to arrray Of  V/V interferences <br>
105   Standard_EXPORT     BOPTools_CArray1OfVVInterference& VVInterferences() ;
106   
107   Standard_EXPORT     void Purge() ;
108
109 protected:
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;
119
120 private:
121 };
122
123 #endif