0024428: Implementation of LGPL license
[occt.git] / src / BOPDS / BOPDS_FaceInfo.lxx
1 // Created by: Peter KURNEV
2 // Copyright (c) 2010-2014 OPEN CASCADE SAS
3 // Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
4 // Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT,
5 //                         EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 //
7 // This file is part of Open CASCADE Technology software library.
8 //
9 // This library is free software; you can redistribute it and / or modify it
10 // under the terms of the GNU Lesser General Public version 2.1 as published
11 // by the Free Software Foundation, with special exception defined in the file
12 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
13 // distribution for complete text of the license and disclaimer of any warranty.
14 //
15 // Alternatively, this file may be used under the terms of Open CASCADE
16 // commercial license or contractual agreement.
17
18 //=======================================================================
19 //function : 
20 //purpose  : 
21 //=======================================================================
22   inline BOPDS_FaceInfo::BOPDS_FaceInfo()
23 :
24   myAllocator(NCollection_BaseAllocator::CommonBaseAllocator()),
25   myIndex(-1),
26   myPaveBlocksIn(100, myAllocator),
27   myVerticesIn(100, myAllocator),
28   myPaveBlocksOn(100, myAllocator),
29   myVerticesOn(100, myAllocator),
30   myPaveBlocksSc(100, myAllocator),
31   myVerticesSc(100, myAllocator)
32 {
33 }
34 //=======================================================================
35 //function : 
36 //purpose  : 
37 //=======================================================================
38   inline BOPDS_FaceInfo::BOPDS_FaceInfo(const Handle(NCollection_BaseAllocator)& theAllocator)
39 :
40   myAllocator(theAllocator),
41   myIndex(-1),
42   myPaveBlocksIn(100, myAllocator),
43   myVerticesIn(100, myAllocator),
44   myPaveBlocksOn(100, myAllocator),
45   myVerticesOn(100, myAllocator),
46   myPaveBlocksSc(100, myAllocator),
47   myVerticesSc(100, myAllocator)
48 {
49 }
50 //=======================================================================
51 //function : ~
52 //purpose  : 
53 //=======================================================================
54   inline BOPDS_FaceInfo::~BOPDS_FaceInfo()
55 {
56   Clear();
57 }
58 //=======================================================================
59 //function : Clear
60 //purpose  : 
61 //=======================================================================
62   inline void BOPDS_FaceInfo::Clear()
63 {
64   myPaveBlocksIn.Clear();
65   myVerticesIn.Clear();
66   myPaveBlocksOn.Clear();
67   myVerticesOn.Clear();
68 }
69 //=======================================================================
70 //function : SetIndex
71 //purpose  : 
72 //=======================================================================
73   inline void BOPDS_FaceInfo::SetIndex(const Standard_Integer theI)
74 {
75   myIndex=theI;
76 }
77 //=======================================================================
78 //function : Index
79 //purpose  : 
80 //=======================================================================
81   inline Standard_Integer BOPDS_FaceInfo::Index()const
82 {
83   return myIndex;
84 }
85 //=======================================================================
86 //function : PaveBlockIn
87 //purpose  : 
88 //=======================================================================
89   inline const BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::PaveBlocksIn()const
90 {
91   return myPaveBlocksIn;
92 }
93 //=======================================================================
94 //function : ChangePaveBlocksIn
95 //purpose  : 
96 //=======================================================================
97   inline BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::ChangePaveBlocksIn()
98 {
99   return myPaveBlocksIn;
100 }
101 //=======================================================================
102 //function : VerticesIn
103 //purpose  : 
104 //=======================================================================
105   inline const BOPCol_MapOfInteger& BOPDS_FaceInfo::VerticesIn()const
106 {
107   return myVerticesIn;
108 }
109 //=======================================================================
110 //function : ChangeVerticesIn
111 //purpose  : 
112 //=======================================================================
113   inline  BOPCol_MapOfInteger& BOPDS_FaceInfo::ChangeVerticesIn()
114 {
115   return myVerticesIn;
116 }
117 // On
118 //=======================================================================
119 //function : PaveBlocksOn
120 //purpose  : 
121 //=======================================================================
122   inline const BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::PaveBlocksOn()const
123 {
124   return myPaveBlocksOn;
125 }
126 //=======================================================================
127 //function : ChangePaveBlocksOn
128 //purpose  : 
129 //=======================================================================
130   inline BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::ChangePaveBlocksOn()
131 {
132   return myPaveBlocksOn;
133 }
134 //=======================================================================
135 //function : VerticesOn
136 //purpose  : 
137 //=======================================================================
138   inline const BOPCol_MapOfInteger& BOPDS_FaceInfo::VerticesOn()const
139 {
140   return myVerticesOn;
141 }
142 //=======================================================================
143 //function : ChangeVerticesOn
144 //purpose  : 
145 //=======================================================================
146   inline BOPCol_MapOfInteger& BOPDS_FaceInfo::ChangeVerticesOn()
147 {
148   return myVerticesOn;
149 }
150 // Sc
151 //=======================================================================
152 //function : PaveBlocksSc
153 //purpose  : 
154 //=======================================================================
155   inline const BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::PaveBlocksSc()const
156 {
157   return myPaveBlocksSc;
158 }
159 //=======================================================================
160 //function : ChangePaveBlocksSc
161 //purpose  : 
162 //=======================================================================
163   inline BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::ChangePaveBlocksSc()
164 {
165   return myPaveBlocksSc;
166 }
167 //=======================================================================
168 //function : VerticesSc
169 //purpose  : 
170 //=======================================================================
171   inline const BOPCol_MapOfInteger& BOPDS_FaceInfo::VerticesSc()const
172 {
173   return myVerticesSc;
174 }
175 //=======================================================================
176 //function : ChangeVerticesSc
177 //purpose  : 
178 //=======================================================================
179   inline BOPCol_MapOfInteger& BOPDS_FaceInfo::ChangeVerticesSc()
180 {
181   return myVerticesSc;
182 }