Salome HOME
This commit was generated by cvs2git to create tag 'TRIPOLI_323'.
[modules/geom.git] / src / NMTTools / NMTTools_FaceInfo.hxx
1 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
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.
10 //
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.
15 //
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
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 // File:        NMTTools_FaceInfo.hxx
24 // Created:     Tue Dec  9 12:23:29 2003
25 // Author:      Peter KURNEV
26 //              <pkv@irinox>
27 //
28 #ifndef _NMTTools_FaceInfo_HeaderFile
29 #define _NMTTools_FaceInfo_HeaderFile
30
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>
38
39 //=======================================================================
40 //class    : NMTTools_FaceInfo
41 //purpose  :
42 //=======================================================================
43 class NMTTools_FaceInfo  {
44  public:
45
46   //! Empty contructor <br>
47   //! <br>
48   NMTTools_FaceInfo();
49
50   virtual ~NMTTools_FaceInfo();
51
52   //!  Clears the contents <br>
53       Standard_EXPORT     void Clear() ;
54
55   //! Modifier <br>
56   //! Sets the index of the face <theI> <br>
57   void SetIndex(const Standard_Integer theI) ;
58
59   //! Selector <br>
60   //! Returns the index of the face <br>
61   //! <br>
62   //! In <br>
63   //! <br>
64   Standard_Integer Index() const;
65
66   //! Selector <br>
67   //! Returns the pave blocks of the face <br>
68   //! that  have state In <br>
69   const NMTTools_MapOfPaveBlock& PaveBlocksIn() const;
70
71 //! Selector/Modifier <br>
72   //! Returns the pave blocks <br>
73   //!  of the face <br>
74   //! that  have state In <br>
75   NMTTools_MapOfPaveBlock& ChangePaveBlocksIn() ;
76
77   //! Selector <br>
78   //! Returns the list of indices for vertices <br>
79   //!  of the face <br>
80   //! that have state In <br>
81   const TColStd_MapOfInteger& VerticesIn() const;
82
83   //! Selector/Modifier <br>
84   //! Returns the list of indices for vertices <br>
85   //!  of the face <br>
86   //! that have state In <br>
87   //! <br>
88   //! On <br>
89   //! <br>
90   TColStd_MapOfInteger& ChangeVerticesIn() ;
91
92   //! Selector <br>
93   //! Returns the pave blocks of the face <br>
94   //! that  have state On <br>
95   const NMTTools_MapOfPaveBlock& PaveBlocksOn() const;
96
97   //! Selector/Modifier <br>
98   //! Returns the pave blocks <br>
99   //!  of the face <br>
100   //! that  have state On <br>
101   NMTTools_MapOfPaveBlock& ChangePaveBlocksOn() ;
102
103   //! Selector <br>
104   //! Returns the list of indices for vertices <br>
105   //!  of the face <br>
106   //! that have state On <br>
107   const TColStd_MapOfInteger& VerticesOn() const;
108
109   //! Selector/Modifier <br>
110   //! Returns the list of indices for vertices <br>
111   //!  of the face <br>
112   //! that have state On <br>
113   TColStd_MapOfInteger& ChangeVerticesOn() ;
114
115  protected:
116   Standard_Integer myIndex;
117   NMTTools_MapOfPaveBlock myPaveBlocksIn;
118   TColStd_MapOfInteger myVerticesIn;
119   NMTTools_MapOfPaveBlock myPaveBlocksOn;
120       TColStd_MapOfInteger myVerticesOn;
121 };
122
123 #include <NMTTools_FaceInfo.lxx>
124 #endif