Salome HOME
Merge from BR_phase16 branch (09/12/09)
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_MeshInfosBox.h
1 //  Copyright (C) 2007-2008  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 // File   : SMESHGUI_MeshInfosBox.h
23 // Author : Edward AGAPOV, Open CASCADE S.A.S.
24 //
25 #ifndef SMESHGUI_MeshInfosBox_H
26 #define SMESHGUI_MeshInfosBox_H
27
28 // SMESH includes
29 #include "SMESH_SMESHGUI.hxx"
30
31 // Qt includes
32 #include <QGroupBox>
33
34 // IDL includes
35 #include <SALOMEconfig.h>
36 #include CORBA_SERVER_HEADER(SMESH_Mesh)
37
38 class QLabel;
39
40 /*!
41  * \brief Box showing mesh info
42  */
43
44 class SMESHGUI_EXPORT SMESHGUI_MeshInfosBox : public QGroupBox
45 {
46   Q_OBJECT
47
48 public:
49   SMESHGUI_MeshInfosBox( const bool, QWidget* );
50
51   void    SetMeshInfo( const SMESH::long_array& theInfo );
52
53 private:
54   bool    myFull;
55   QLabel* myNbNode;
56   QLabel* my0DElem;
57   QLabel* myNbEdge;
58   QLabel* myNbLinEdge;
59   QLabel* myNbQuadEdge;
60   QLabel* myNbTrai;
61   QLabel* myNbLinTrai;
62   QLabel* myNbQuadTrai;
63   QLabel* myNbQuad;
64   QLabel* myNbLinQuad;
65   QLabel* myNbQuadQuad;
66   QLabel* myNbFace;
67   QLabel* myNbLinFace;
68   QLabel* myNbQuadFace;
69   QLabel* myNbPolyg;
70   QLabel* myNbHexa;
71   QLabel* myNbLinHexa;
72   QLabel* myNbQuadHexa;
73   QLabel* myNbTetra;
74   QLabel* myNbLinTetra;
75   QLabel* myNbQuadTetra;
76   QLabel* myNbPyra;
77   QLabel* myNbLinPyra;
78   QLabel* myNbQuadPyra;
79   QLabel* myNbPrism;
80   QLabel* myNbLinPrism;
81   QLabel* myNbQuadPrism;
82   QLabel* myNbVolum;
83   QLabel* myNbLinVolum;
84   QLabel* myNbQuadVolum;
85   QLabel* myNbPolyh;
86 };
87
88 #endif // SMESHGUI_MeshInfosBox_H