1 // Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // SMESH SMESHGUI : GUI for SMESH component
21 // File : SMESHGUI_Make2DFrom3D.h
22 // Author : Open CASCADE S.A.S.
24 #ifndef SMESHGUI_Make2DFrom3DOp_H
25 #define SMESHGUI_Make2DFrom3DOp_H
28 #include "SMESH_SMESHGUI.hxx"
30 #include "SMESHGUI_Dialog.h"
31 #include "SMESHGUI_Operation.h"
34 #include <SALOMEconfig.h>
35 #include CORBA_SERVER_HEADER(SMESH_Mesh)
38 class SMESHGUI_MeshInfosBox;
41 * \brief Dialog to show result mesh statistic
44 class SMESHGUI_Make2DFrom3DDlg : public SMESHGUI_Dialog
49 SMESHGUI_Make2DFrom3DDlg( QWidget* );
50 virtual ~SMESHGUI_Make2DFrom3DDlg();
52 void SetMeshName(const QString& theName);
53 void SetMeshInfo(const SMESH::long_array& theInfo);
56 QFrame* createMainFrame( QWidget* );
60 SMESHGUI_MeshInfosBox* myFullInfo;
65 * \brief Operation to compute 2D mesh on 3D
68 class SMESHGUI_Make2DFrom3DOp : public SMESHGUI_Operation
71 SMESHGUI_Make2DFrom3DOp();
72 virtual ~SMESHGUI_Make2DFrom3DOp();
75 virtual void startOperation();
81 SMESH::SMESH_Mesh_var myMesh;
82 QPointer<SMESHGUI_Make2DFrom3DDlg> myDlg;
85 #endif // SMESHGUI_Make2DFrom3DOp_H