00001 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE 00002 // 00003 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, 00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 00005 // 00006 // This library is free software; you can redistribute it and/or 00007 // modify it under the terms of the GNU Lesser General Public 00008 // License as published by the Free Software Foundation; either 00009 // version 2.1 of the License. 00010 // 00011 // This library is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 // Lesser General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU Lesser General Public 00017 // License along with this library; if not, write to the Free Software 00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 // 00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00021 // 00022 00023 #ifndef _NMTTools_FaceInfo_HeaderFile 00024 #define _NMTTools_FaceInfo_HeaderFile 00025 00026 #ifndef _Standard_Integer_HeaderFile 00027 #include <Standard_Integer.hxx> 00028 #endif 00029 #ifndef _NMTTools_MapOfPaveBlock_HeaderFile 00030 #include <NMTTools_MapOfPaveBlock.hxx> 00031 #endif 00032 #ifndef _TColStd_MapOfInteger_HeaderFile 00033 #include <TColStd_MapOfInteger.hxx> 00034 #endif 00035 class NMTTools_MapOfPaveBlock; 00036 class TColStd_MapOfInteger; 00037 00038 00039 #ifndef _Standard_HeaderFile 00040 #include <Standard.hxx> 00041 #endif 00042 #ifndef _Standard_Macro_HeaderFile 00043 #include <Standard_Macro.hxx> 00044 #endif 00045 00046 00047 class NMTTools_FaceInfo { 00048 00049 public: 00050 00051 void* operator new(size_t,void* anAddress) 00052 { 00053 return anAddress; 00054 } 00055 void* operator new(size_t size) 00056 { 00057 return Standard::Allocate(size); 00058 } 00059 void operator delete(void *anAddress) 00060 { 00061 if (anAddress) Standard::Free((Standard_Address&)anAddress); 00062 } 00063 // Methods PUBLIC 00064 // 00065 00068 NMTTools_FaceInfo(); 00069 virtual ~NMTTools_FaceInfo(); 00070 00071 00073 Standard_EXPORT void Clear() ; 00074 00077 void SetIndex(const Standard_Integer theI) ; 00078 00084 Standard_Integer Index() const; 00085 00089 const NMTTools_MapOfPaveBlock& PaveBlocksIn() const; 00090 00095 NMTTools_MapOfPaveBlock& ChangePaveBlocksIn() ; 00096 00101 const TColStd_MapOfInteger& VerticesIn() const; 00102 00110 TColStd_MapOfInteger& ChangeVerticesIn() ; 00111 00115 const NMTTools_MapOfPaveBlock& PaveBlocksOn() const; 00116 00121 NMTTools_MapOfPaveBlock& ChangePaveBlocksOn() ; 00122 00127 const TColStd_MapOfInteger& VerticesOn() const; 00128 00133 TColStd_MapOfInteger& ChangeVerticesOn() ; 00134 00135 00136 00137 00138 00139 protected: 00140 00141 // Methods PROTECTED 00142 // 00143 00144 00145 // Fields PROTECTED 00146 // 00147 Standard_Integer myIndex; 00148 NMTTools_MapOfPaveBlock myPaveBlocksIn; 00149 TColStd_MapOfInteger myVerticesIn; 00150 NMTTools_MapOfPaveBlock myPaveBlocksOn; 00151 TColStd_MapOfInteger myVerticesOn; 00152 00153 00154 private: 00155 00156 // Methods PRIVATE 00157 // 00158 00159 00160 // Fields PRIVATE 00161 // 00162 00163 00164 }; 00165 00166 00167 #include <NMTTools_FaceInfo.lxx> 00168 00169 00170 00171 // other Inline functions and methods (like "C++: function call" methods) 00172 // 00173 00174 00175 #endif