Warning, /include/opencascade/BOPDS_FaceInfo.lxx is written in an unsupported language. File is not indexed.
0001 // Created by: Peter KURNEV
0002 // Copyright (c) 2010-2014 OPEN CASCADE SAS
0003 // Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
0004 // Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT,
0005 // EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
0006 //
0007 // This file is part of Open CASCADE Technology software library.
0008 //
0009 // This library is free software; you can redistribute it and/or modify it under
0010 // the terms of the GNU Lesser General Public License version 2.1 as published
0011 // by the Free Software Foundation, with special exception defined in the file
0012 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0013 // distribution for complete text of the license and disclaimer of any warranty.
0014 //
0015 // Alternatively, this file may be used under the terms of Open CASCADE
0016 // commercial license or contractual agreement.
0017
0018 //=======================================================================
0019 // function :
0020 // purpose :
0021 //=======================================================================
0022 inline BOPDS_FaceInfo::BOPDS_FaceInfo()
0023 : myAllocator(NCollection_BaseAllocator::CommonBaseAllocator()),
0024 myIndex(-1),
0025 myPaveBlocksIn(100, myAllocator),
0026 myVerticesIn(100, myAllocator),
0027 myPaveBlocksOn(100, myAllocator),
0028 myVerticesOn(100, myAllocator),
0029 myPaveBlocksSc(100, myAllocator),
0030 myVerticesSc(100, myAllocator)
0031 {
0032 }
0033
0034 //=======================================================================
0035 // function :
0036 // purpose :
0037 //=======================================================================
0038 inline BOPDS_FaceInfo::BOPDS_FaceInfo(const Handle(NCollection_BaseAllocator)& theAllocator)
0039 : myAllocator(theAllocator),
0040 myIndex(-1),
0041 myPaveBlocksIn(100, myAllocator),
0042 myVerticesIn(100, myAllocator),
0043 myPaveBlocksOn(100, myAllocator),
0044 myVerticesOn(100, myAllocator),
0045 myPaveBlocksSc(100, myAllocator),
0046 myVerticesSc(100, myAllocator)
0047 {
0048 }
0049
0050 //=======================================================================
0051 // function : ~
0052 // purpose :
0053 //=======================================================================
0054 inline BOPDS_FaceInfo::~BOPDS_FaceInfo()
0055 {
0056 Clear();
0057 }
0058
0059 //=======================================================================
0060 // function : Clear
0061 // purpose :
0062 //=======================================================================
0063 inline void BOPDS_FaceInfo::Clear()
0064 {
0065 myPaveBlocksIn.Clear();
0066 myVerticesIn.Clear();
0067 myPaveBlocksOn.Clear();
0068 myVerticesOn.Clear();
0069 }
0070
0071 //=======================================================================
0072 // function : SetIndex
0073 // purpose :
0074 //=======================================================================
0075 inline void BOPDS_FaceInfo::SetIndex(const Standard_Integer theI)
0076 {
0077 myIndex = theI;
0078 }
0079
0080 //=======================================================================
0081 // function : Index
0082 // purpose :
0083 //=======================================================================
0084 inline Standard_Integer BOPDS_FaceInfo::Index() const
0085 {
0086 return myIndex;
0087 }
0088
0089 //=======================================================================
0090 // function : PaveBlockIn
0091 // purpose :
0092 //=======================================================================
0093 inline const BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::PaveBlocksIn() const
0094 {
0095 return myPaveBlocksIn;
0096 }
0097
0098 //=======================================================================
0099 // function : ChangePaveBlocksIn
0100 // purpose :
0101 //=======================================================================
0102 inline BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::ChangePaveBlocksIn()
0103 {
0104 return myPaveBlocksIn;
0105 }
0106
0107 //=======================================================================
0108 // function : VerticesIn
0109 // purpose :
0110 //=======================================================================
0111 inline const TColStd_MapOfInteger& BOPDS_FaceInfo::VerticesIn() const
0112 {
0113 return myVerticesIn;
0114 }
0115
0116 //=======================================================================
0117 // function : ChangeVerticesIn
0118 // purpose :
0119 //=======================================================================
0120 inline TColStd_MapOfInteger& BOPDS_FaceInfo::ChangeVerticesIn()
0121 {
0122 return myVerticesIn;
0123 }
0124
0125 // On
0126 //=======================================================================
0127 // function : PaveBlocksOn
0128 // purpose :
0129 //=======================================================================
0130 inline const BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::PaveBlocksOn() const
0131 {
0132 return myPaveBlocksOn;
0133 }
0134
0135 //=======================================================================
0136 // function : ChangePaveBlocksOn
0137 // purpose :
0138 //=======================================================================
0139 inline BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::ChangePaveBlocksOn()
0140 {
0141 return myPaveBlocksOn;
0142 }
0143
0144 //=======================================================================
0145 // function : VerticesOn
0146 // purpose :
0147 //=======================================================================
0148 inline const TColStd_MapOfInteger& BOPDS_FaceInfo::VerticesOn() const
0149 {
0150 return myVerticesOn;
0151 }
0152
0153 //=======================================================================
0154 // function : ChangeVerticesOn
0155 // purpose :
0156 //=======================================================================
0157 inline TColStd_MapOfInteger& BOPDS_FaceInfo::ChangeVerticesOn()
0158 {
0159 return myVerticesOn;
0160 }
0161
0162 // Sc
0163 //=======================================================================
0164 // function : PaveBlocksSc
0165 // purpose :
0166 //=======================================================================
0167 inline const BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::PaveBlocksSc() const
0168 {
0169 return myPaveBlocksSc;
0170 }
0171
0172 //=======================================================================
0173 // function : ChangePaveBlocksSc
0174 // purpose :
0175 //=======================================================================
0176 inline BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::ChangePaveBlocksSc()
0177 {
0178 return myPaveBlocksSc;
0179 }
0180
0181 //=======================================================================
0182 // function : VerticesSc
0183 // purpose :
0184 //=======================================================================
0185 inline const TColStd_MapOfInteger& BOPDS_FaceInfo::VerticesSc() const
0186 {
0187 return myVerticesSc;
0188 }
0189
0190 //=======================================================================
0191 // function : ChangeVerticesSc
0192 // purpose :
0193 //=======================================================================
0194 inline TColStd_MapOfInteger& BOPDS_FaceInfo::ChangeVerticesSc()
0195 {
0196 return myVerticesSc;
0197 }