1 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : SMESHGUI_ComputeDlg.h
21 // Author : Edward AGAPOV, Open CASCADE S.A.S.
24 #ifndef SMESHGUI_COMPUTEDLG_H
25 #define SMESHGUI_COMPUTEDLG_H
28 #include "SMESH_SMESHGUI.hxx"
30 #include "SMESHGUI_Dialog.h"
31 #include "SMESHGUI_Operation.h"
37 #include <SALOMEconfig.h>
38 #include CORBA_SERVER_HEADER(SMESH_Mesh)
44 class SMESHGUI_ComputeDlg;
48 class TShapeDisplayer;
52 * \brief Operation to compute a mesh and show computation errors
54 class SMESHGUI_EXPORT SMESHGUI_ComputeOp: public SMESHGUI_Operation
60 virtual ~SMESHGUI_ComputeOp();
62 virtual LightApp_Dialog* dlg() const;
65 virtual void startOperation();
66 virtual void stopOperation();
69 virtual bool onApply();
72 void onPreviewShape();
73 void onPublishShape();
74 void currentCellChanged();
77 QTableWidget* table();
79 SMESHGUI_ComputeDlg* myDlg;
81 GEOM::GEOM_Object_var myMainShape;
82 SMESH::TShapeDisplayer* myTShapeDisplayer;
86 * \brief Box showing mesh info
89 class SMESHGUI_EXPORT SMESHGUI_MeshInfosBox : public QGroupBox
94 SMESHGUI_MeshInfosBox( const bool, QWidget* );
96 void SetInfoByMesh( SMESH::SMESH_Mesh_var );
103 QLabel* myNbQuadEdge;
106 QLabel* myNbQuadTrai;
109 QLabel* myNbQuadQuad;
112 QLabel* myNbQuadFace;
116 QLabel* myNbQuadHexa;
118 QLabel* myNbLinTetra;
119 QLabel* myNbQuadTetra;
122 QLabel* myNbQuadPyra;
124 QLabel* myNbLinPrism;
125 QLabel* myNbQuadPrism;
127 QLabel* myNbLinVolum;
128 QLabel* myNbQuadVolum;
133 * \brief Dialog to compute a mesh and show computation errors
136 class SMESHGUI_EXPORT SMESHGUI_ComputeDlg : public SMESHGUI_Dialog
141 SMESHGUI_ComputeDlg();
144 QFrame* createMainFrame( QWidget* );
147 QGroupBox* myMemoryLackGroup;
148 QGroupBox* myCompErrorGroup;
149 QGroupBox* myHypErrorGroup;
150 QLabel* myHypErrorLabel;
151 QTableWidget* myTable;
152 QPushButton* myShowBtn;
153 QPushButton* myPublishBtn;
155 SMESHGUI_MeshInfosBox* myBriefInfo;
156 SMESHGUI_MeshInfosBox* myFullInfo;
158 friend class SMESHGUI_ComputeOp;
161 #endif // SMESHGUI_COMPUTEDLG_H