1 // Copyright (C) 2007-2023 CEA, EDF, 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, or (at your option) any later version.
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
19 // File : SMESHGUI_MakeFull2DFrom3DOp.h
20 // Author : Cesar Conopoima, Open CASCADE S.A.S. (cesar.conopoima@opencascade.com)
22 #ifndef SMESHGUI_MakeFull2DFrom3DOp_H
23 #define SMESHGUI_MakeFull2DFrom3DOp_H
26 #include "SMESHGUI_Make2DFrom3DOp.h"
29 * \brief Dialog for options of generating 2D mesh from 3D.
32 class SMESHGUI_EXPORT SMESHGUI_MakeFull2DFrom3DDlg : public SMESHGUI_Make2DFrom3DDlg
37 SMESHGUI_MakeFull2DFrom3DDlg( QWidget* );
38 virtual ~SMESHGUI_MakeFull2DFrom3DDlg();
40 friend class SMESHGUI_MakeFull2DFrom3DOp;
44 * \brief Operation to compute 2D mesh from 3D mesh
47 class SMESHGUI_EXPORT SMESHGUI_MakeFull2DFrom3DOp : public SMESHGUI_SelectionOp
52 SMESHGUI_MakeFull2DFrom3DOp();
53 virtual ~SMESHGUI_MakeFull2DFrom3DOp();
55 virtual LightApp_Dialog* dlg() const;
58 virtual void startOperation();
59 virtual void selectionDone();
60 virtual SUIT_SelectionFilter* createFilter( const int ) const;
61 bool isValid( QString& ) const;
64 virtual bool onApply();
67 bool compute2DMesh( QStringList& );
70 SMESH::SMESH_Mesh_var mySrcMesh;
71 QPointer<SMESHGUI_MakeFull2DFrom3DDlg> myDlg;
73 SMESH_TypeFilter myMeshFilter;
74 SMESH_TypeFilter myGroupFilter;
77 #endif // SMESHGUI_MakeFull2DFrom3DOp_H