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
22 // File : SMESHGUI_ComputeDlg.h
23 // Author : Edward AGAPOV
27 #ifndef SMESHGUI_ComputeDlg_H
28 #define SMESHGUI_ComputeDlg_H
30 #include "SMESHGUI_Dialog.h"
31 #include "SMESHGUI_SelectionOp.h"
33 #include "VTKViewer.h"
35 #include "SALOMEconfig.h"
36 #include CORBA_SERVER_HEADER(GEOM_Gen)
38 #include <qgroupbox.h>
44 class SMESHGUI_ComputeDlg;
48 class TShapeDisplayer;
52 * \brief Operation to compute a mesh and show computation errors
54 class SMESHGUI_ComputeOp: public SMESHGUI_Operation
60 virtual ~SMESHGUI_ComputeOp();
62 virtual LightApp_Dialog* dlg() const;
66 virtual void startOperation();
67 virtual void stopOperation();
70 virtual bool onApply();
74 void onPreviewShape();
75 void onPublishShape();
76 void currentCellChanged();
82 SMESHGUI_ComputeDlg* myDlg;
84 GEOM::GEOM_Object_var myMainShape;
85 SMESH::TShapeDisplayer* myTShapeDisplayer;
89 * \brief Box showing mesh info
92 class SMESHGUI_MeshInfosBox : public QGroupBox
97 SMESHGUI_MeshInfosBox(const bool full, QWidget* theParent);
98 void SetInfoByMesh(SMESH::SMESH_Mesh_var mesh);
104 QLabel* myNbEdge, *myNbLinEdge, *myNbQuadEdge;
105 QLabel* myNbTrai, *myNbLinTrai, *myNbQuadTrai;
106 QLabel* myNbQuad, *myNbLinQuad, *myNbQuadQuad;
107 QLabel* myNbFace, *myNbLinFace, *myNbQuadFace;
109 QLabel* myNbHexa, *myNbLinHexa, *myNbQuadHexa;
110 QLabel* myNbTetra, *myNbLinTetra, *myNbQuadTetra;
111 QLabel* myNbPyra, *myNbLinPyra, *myNbQuadPyra;
112 QLabel* myNbPrism, *myNbLinPrism, *myNbQuadPrism;
113 QLabel* myNbVolum, *myNbLinVolum, *myNbQuadVolum;
118 * \brief Dialog to compute a mesh and show computation errors
121 class SMESHGUI_ComputeDlg : public SMESHGUI_Dialog
126 SMESHGUI_ComputeDlg();
130 QFrame* createMainFrame (QWidget*);
133 QGroupBox* myMemoryLackGroup;
134 QGroupBox* myCompErrorGroup;
135 QGroupBox* myHypErrorGroup;
136 QLabel* myHypErrorLabel;
138 QPushButton* myShowBtn;
139 QPushButton* myPublishBtn;
141 SMESHGUI_MeshInfosBox* myBriefInfo;
142 SMESHGUI_MeshInfosBox* myFullInfo;
144 friend class SMESHGUI_ComputeOp;