1 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 #ifndef _NMTTools_FaceInfo_HeaderFile
24 #define _NMTTools_FaceInfo_HeaderFile
26 #ifndef _Standard_Integer_HeaderFile
27 #include <Standard_Integer.hxx>
29 #ifndef _NMTTools_MapOfPaveBlock_HeaderFile
30 #include <NMTTools_MapOfPaveBlock.hxx>
32 #ifndef _TColStd_MapOfInteger_HeaderFile
33 #include <TColStd_MapOfInteger.hxx>
35 class NMTTools_MapOfPaveBlock;
36 class TColStd_MapOfInteger;
39 #ifndef _Standard_HeaderFile
40 #include <Standard.hxx>
42 #ifndef _Standard_Macro_HeaderFile
43 #include <Standard_Macro.hxx>
47 class NMTTools_FaceInfo {
51 void* operator new(size_t,void* anAddress)
55 void* operator new(size_t size)
57 return Standard::Allocate(size);
59 void operator delete(void *anAddress)
61 if (anAddress) Standard::Free((Standard_Address&)anAddress);
66 //! Empty contructor <br>
69 virtual ~NMTTools_FaceInfo();
72 //! Clears the contents <br>
73 Standard_EXPORT void Clear() ;
76 //! Sets the index of the face <theI> <br>
77 void SetIndex(const Standard_Integer theI) ;
80 //! Returns the index of the face <br>
84 Standard_Integer Index() const;
87 //! Returns the pave blocks of the face <br>
88 //! that have state In <br>
89 const NMTTools_MapOfPaveBlock& PaveBlocksIn() const;
91 //! Selector/Modifier <br>
92 //! Returns the pave blocks <br>
94 //! that have state In <br>
95 NMTTools_MapOfPaveBlock& ChangePaveBlocksIn() ;
98 //! Returns the list of indices for vertices <br>
100 //! that have state In <br>
101 const TColStd_MapOfInteger& VerticesIn() const;
103 //! Selector/Modifier <br>
104 //! Returns the list of indices for vertices <br>
106 //! that have state In <br>
110 TColStd_MapOfInteger& ChangeVerticesIn() ;
113 //! Returns the pave blocks of the face <br>
114 //! that have state On <br>
115 const NMTTools_MapOfPaveBlock& PaveBlocksOn() const;
117 //! Selector/Modifier <br>
118 //! Returns the pave blocks <br>
120 //! that have state On <br>
121 NMTTools_MapOfPaveBlock& ChangePaveBlocksOn() ;
124 //! Returns the list of indices for vertices <br>
126 //! that have state On <br>
127 const TColStd_MapOfInteger& VerticesOn() const;
129 //! Selector/Modifier <br>
130 //! Returns the list of indices for vertices <br>
132 //! that have state On <br>
133 TColStd_MapOfInteger& ChangeVerticesOn() ;
147 Standard_Integer myIndex;
148 NMTTools_MapOfPaveBlock myPaveBlocksIn;
149 TColStd_MapOfInteger myVerticesIn;
150 NMTTools_MapOfPaveBlock myPaveBlocksOn;
151 TColStd_MapOfInteger myVerticesOn;
167 #include <NMTTools_FaceInfo.lxx>
171 // other Inline functions and methods (like "C++: function call" methods)