1 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
\r
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
\r
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
\r
6 // This library is free software; you can redistribute it and/or
\r
7 // modify it under the terms of the GNU Lesser General Public
\r
8 // License as published by the Free Software Foundation; either
\r
9 // version 2.1 of the License.
\r
11 // This library is distributed in the hope that it will be useful,
\r
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
\r
14 // Lesser General Public License for more details.
\r
16 // You should have received a copy of the GNU Lesser General Public
\r
17 // License along with this library; if not, write to the Free Software
\r
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
\r
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
\r
23 // File: NMTTools_FaceInfo.hxx
\r
24 // Created: Tue Dec 9 12:23:29 2003
\r
25 // Author: Peter KURNEV
\r
28 #ifndef _NMTTools_FaceInfo_HeaderFile
\r
29 #define _NMTTools_FaceInfo_HeaderFile
\r
31 #include <Standard.hxx>
\r
32 #include <Standard_Macro.hxx>
\r
33 #include <Standard_Integer.hxx>
\r
34 #include <NMTTools_MapOfPaveBlock.hxx>
\r
35 #include <TColStd_MapOfInteger.hxx>
\r
36 #include <NMTTools_MapOfPaveBlock.hxx>
\r
37 #include <TColStd_MapOfInteger.hxx>
\r
39 //=======================================================================
\r
40 //class : NMTTools_FaceInfo
\r
42 //=======================================================================
\r
43 class NMTTools_FaceInfo {
\r
46 //! Empty contructor <br>
\r
48 NMTTools_FaceInfo();
\r
50 virtual ~NMTTools_FaceInfo();
\r
52 //! Clears the contents <br>
\r
53 Standard_EXPORT void Clear() ;
\r
56 //! Sets the index of the face <theI> <br>
\r
57 void SetIndex(const Standard_Integer theI) ;
\r
60 //! Returns the index of the face <br>
\r
64 Standard_Integer Index() const;
\r
67 //! Returns the pave blocks of the face <br>
\r
68 //! that have state In <br>
\r
69 const NMTTools_MapOfPaveBlock& PaveBlocksIn() const;
\r
71 //! Selector/Modifier <br>
\r
72 //! Returns the pave blocks <br>
\r
73 //! of the face <br>
\r
74 //! that have state In <br>
\r
75 NMTTools_MapOfPaveBlock& ChangePaveBlocksIn() ;
\r
78 //! Returns the list of indices for vertices <br>
\r
79 //! of the face <br>
\r
80 //! that have state In <br>
\r
81 const TColStd_MapOfInteger& VerticesIn() const;
\r
83 //! Selector/Modifier <br>
\r
84 //! Returns the list of indices for vertices <br>
\r
85 //! of the face <br>
\r
86 //! that have state In <br>
\r
90 TColStd_MapOfInteger& ChangeVerticesIn() ;
\r
93 //! Returns the pave blocks of the face <br>
\r
94 //! that have state On <br>
\r
95 const NMTTools_MapOfPaveBlock& PaveBlocksOn() const;
\r
97 //! Selector/Modifier <br>
\r
98 //! Returns the pave blocks <br>
\r
99 //! of the face <br>
\r
100 //! that have state On <br>
\r
101 NMTTools_MapOfPaveBlock& ChangePaveBlocksOn() ;
\r
104 //! Returns the list of indices for vertices <br>
\r
105 //! of the face <br>
\r
106 //! that have state On <br>
\r
107 const TColStd_MapOfInteger& VerticesOn() const;
\r
109 //! Selector/Modifier <br>
\r
110 //! Returns the list of indices for vertices <br>
\r
111 //! of the face <br>
\r
112 //! that have state On <br>
\r
113 TColStd_MapOfInteger& ChangeVerticesOn() ;
\r
116 Standard_Integer myIndex;
\r
117 NMTTools_MapOfPaveBlock myPaveBlocksIn;
\r
118 TColStd_MapOfInteger myVerticesIn;
\r
119 NMTTools_MapOfPaveBlock myPaveBlocksOn;
\r
120 TColStd_MapOfInteger myVerticesOn;
\r
123 #include <NMTTools_FaceInfo.lxx>
\r