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
7 // This file is part of Open CASCADE Technology software library.
9 // This library is free software; you can redistribute it and/or modify it under
10 // the terms of the GNU Lesser General Public License 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.
15 // Alternatively, this file may be used under the terms of Open CASCADE
16 // commercial license or contractual agreement.
18 //=======================================================================
21 //=======================================================================
22 inline BOPDS_FaceInfo::BOPDS_FaceInfo()
24 myAllocator(NCollection_BaseAllocator::CommonBaseAllocator()),
26 myPaveBlocksIn(100, myAllocator),
27 myVerticesIn(100, myAllocator),
28 myPaveBlocksOn(100, myAllocator),
29 myVerticesOn(100, myAllocator),
30 myPaveBlocksSc(100, myAllocator),
31 myVerticesSc(100, myAllocator)
34 //=======================================================================
37 //=======================================================================
38 inline BOPDS_FaceInfo::BOPDS_FaceInfo(const Handle(NCollection_BaseAllocator)& theAllocator)
40 myAllocator(theAllocator),
42 myPaveBlocksIn(100, myAllocator),
43 myVerticesIn(100, myAllocator),
44 myPaveBlocksOn(100, myAllocator),
45 myVerticesOn(100, myAllocator),
46 myPaveBlocksSc(100, myAllocator),
47 myVerticesSc(100, myAllocator)
50 //=======================================================================
53 //=======================================================================
54 inline BOPDS_FaceInfo::~BOPDS_FaceInfo()
58 //=======================================================================
61 //=======================================================================
62 inline void BOPDS_FaceInfo::Clear()
64 myPaveBlocksIn.Clear();
66 myPaveBlocksOn.Clear();
69 //=======================================================================
72 //=======================================================================
73 inline void BOPDS_FaceInfo::SetIndex(const Standard_Integer theI)
77 //=======================================================================
80 //=======================================================================
81 inline Standard_Integer BOPDS_FaceInfo::Index()const
85 //=======================================================================
86 //function : PaveBlockIn
88 //=======================================================================
89 inline const BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::PaveBlocksIn()const
91 return myPaveBlocksIn;
93 //=======================================================================
94 //function : ChangePaveBlocksIn
96 //=======================================================================
97 inline BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::ChangePaveBlocksIn()
99 return myPaveBlocksIn;
101 //=======================================================================
102 //function : VerticesIn
104 //=======================================================================
105 inline const BOPCol_MapOfInteger& BOPDS_FaceInfo::VerticesIn()const
109 //=======================================================================
110 //function : ChangeVerticesIn
112 //=======================================================================
113 inline BOPCol_MapOfInteger& BOPDS_FaceInfo::ChangeVerticesIn()
118 //=======================================================================
119 //function : PaveBlocksOn
121 //=======================================================================
122 inline const BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::PaveBlocksOn()const
124 return myPaveBlocksOn;
126 //=======================================================================
127 //function : ChangePaveBlocksOn
129 //=======================================================================
130 inline BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::ChangePaveBlocksOn()
132 return myPaveBlocksOn;
134 //=======================================================================
135 //function : VerticesOn
137 //=======================================================================
138 inline const BOPCol_MapOfInteger& BOPDS_FaceInfo::VerticesOn()const
142 //=======================================================================
143 //function : ChangeVerticesOn
145 //=======================================================================
146 inline BOPCol_MapOfInteger& BOPDS_FaceInfo::ChangeVerticesOn()
151 //=======================================================================
152 //function : PaveBlocksSc
154 //=======================================================================
155 inline const BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::PaveBlocksSc()const
157 return myPaveBlocksSc;
159 //=======================================================================
160 //function : ChangePaveBlocksSc
162 //=======================================================================
163 inline BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::ChangePaveBlocksSc()
165 return myPaveBlocksSc;
167 //=======================================================================
168 //function : VerticesSc
170 //=======================================================================
171 inline const BOPCol_MapOfInteger& BOPDS_FaceInfo::VerticesSc()const
175 //=======================================================================
176 //function : ChangeVerticesSc
178 //=======================================================================
179 inline BOPCol_MapOfInteger& BOPDS_FaceInfo::ChangeVerticesSc()