1 // Copyright (C) 2007-2012 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 // File: NMTTools_FaceInfo.hxx
24 // Created: Tue Dec 9 12:23:29 2003
25 // Author: Peter KURNEV
28 #ifndef _NMTTools_FaceInfo_HeaderFile
29 #define _NMTTools_FaceInfo_HeaderFile
31 #include <Standard.hxx>
32 #include <Standard_Macro.hxx>
33 #include <Standard_Integer.hxx>
34 #include <NMTTools_MapOfPaveBlock.hxx>
35 #include <TColStd_MapOfInteger.hxx>
36 #include <NMTTools_MapOfPaveBlock.hxx>
37 #include <TColStd_MapOfInteger.hxx>
39 //=======================================================================
40 //class : NMTTools_FaceInfo
42 //=======================================================================
43 class NMTTools_FaceInfo {
46 //! Empty contructor <br>
50 virtual ~NMTTools_FaceInfo();
52 //! Clears the contents <br>
53 Standard_EXPORT void Clear() ;
56 //! Sets the index of the face <theI> <br>
57 void SetIndex(const Standard_Integer theI) ;
60 //! Returns the index of the face <br>
64 Standard_Integer Index() const;
67 //! Returns the pave blocks of the face <br>
68 //! that have state In <br>
69 const NMTTools_MapOfPaveBlock& PaveBlocksIn() const;
71 //! Selector/Modifier <br>
72 //! Returns the pave blocks <br>
74 //! that have state In <br>
75 NMTTools_MapOfPaveBlock& ChangePaveBlocksIn() ;
78 //! Returns the list of indices for vertices <br>
80 //! that have state In <br>
81 const TColStd_MapOfInteger& VerticesIn() const;
83 //! Selector/Modifier <br>
84 //! Returns the list of indices for vertices <br>
86 //! that have state In <br>
90 TColStd_MapOfInteger& ChangeVerticesIn() ;
93 //! Returns the pave blocks of the face <br>
94 //! that have state On <br>
95 const NMTTools_MapOfPaveBlock& PaveBlocksOn() const;
97 //! Selector/Modifier <br>
98 //! Returns the pave blocks <br>
100 //! that have state On <br>
101 NMTTools_MapOfPaveBlock& ChangePaveBlocksOn() ;
104 //! Returns the list of indices for vertices <br>
106 //! that have state On <br>
107 const TColStd_MapOfInteger& VerticesOn() const;
109 //! Selector/Modifier <br>
110 //! Returns the list of indices for vertices <br>
112 //! that have state On <br>
113 TColStd_MapOfInteger& ChangeVerticesOn() ;
116 Standard_Integer myIndex;
117 NMTTools_MapOfPaveBlock myPaveBlocksIn;
118 TColStd_MapOfInteger myVerticesIn;
119 NMTTools_MapOfPaveBlock myPaveBlocksOn;
120 TColStd_MapOfInteger myVerticesOn;
123 #include <NMTTools_FaceInfo.lxx>