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)
42 class SMESHGUI_ComputeDlg;
46 class TShapeDisplayer;
50 * \brief Operation to compute a mesh and show computation errors
52 class SMESHGUI_ComputeOp: public SMESHGUI_Operation
58 virtual ~SMESHGUI_ComputeOp();
60 virtual LightApp_Dialog* dlg() const;
64 virtual void startOperation();
65 virtual void stopOperation();
68 virtual bool onApply();
72 void onPreviewShape();
73 void onPublishShape();
74 void currentCellChanged();
80 SMESHGUI_ComputeDlg* myDlg;
82 GEOM::GEOM_Object_var myMainShape;
83 SMESH::TShapeDisplayer* myTShapeDisplayer;
87 * \brief Dialog to compute a mesh and show computation errors
90 class SMESHGUI_ComputeDlg : public SMESHGUI_Dialog
95 SMESHGUI_ComputeDlg();
97 void SetMeshInfo(int nbNodes, int nbEdges, int nbFaces, int nbVolums);
101 QFrame* createMainFrame (QWidget*);
104 QPushButton* myShowBtn;
105 QPushButton* myPublishBtn;
107 QLabel* myNbNodesLabel;
108 QLabel* myNbEdgesLabel;
109 QLabel* myNbFacesLabel;
110 QLabel* myNbVolumLabel;
112 QString myHelpFileName;
114 friend class SMESHGUI_ComputeOp;