1 // Copyright (C) 2007-2020 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, 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
20 #ifndef SMESHGUI_FaceGroupsSeparatedByEdges_H
21 #define SMESHGUI_FaceGroupsSeparatedByEdges_H
24 #include "SMESH_SMESHGUI.hxx"
25 #include "SMESHGUI_PreviewDlg.h"
27 #include <SALOMEconfig.h>
28 #include CORBA_SERVER_HEADER(SMESH_MeshEditor)
29 #include CORBA_SERVER_HEADER(SMESH_Mesh)
31 class LightApp_SelectionMgr;
36 class SMESHGUI_SpinBox;
39 * \brief Dialog to create face groups divided by sharp edges
42 class SMESHGUI_EXPORT SMESHGUI_FaceGroupsSeparatedByEdgesDlg : public SMESHGUI_PreviewDlg
48 SMESHGUI_FaceGroupsSeparatedByEdgesDlg( SMESHGUI* theModule );
49 virtual ~SMESHGUI_FaceGroupsSeparatedByEdgesDlg();
55 void SelectionIntoArgument();
56 void DeactivateActiveDialog();
57 void ActivateThisDialog();
59 void onArgChange() { onDisplaySimulation( true ); }
60 virtual void onDisplaySimulation( bool = true );
64 LightApp_SelectionMgr* mySelectionMgr;
66 QWidget* GroupButtons;
68 QLineEdit* myMeshName;
69 SMESHGUI_SpinBox* myAngle;
70 QCheckBox* myCreateEdgesCheck;
71 QCheckBox* myUseExistingCheck;
73 QPushButton* buttonOk;
74 QPushButton* buttonCancel;
75 QPushButton* buttonApply;
76 QPushButton* buttonHelp;
78 SMESH::SMESH_Mesh_var myMesh;
81 #endif // SMESHGUI_FaceGroupsSeparatedByEdges_H