Version: 9.16.0
SMESHGUI_GroupOnShapeDlg.h
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
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.
7//
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.
12//
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
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20// SMESH SMESHGUI : GUI for SMESH component
21// File : SMESHGUI_GroupOnShapeDlg.h
22// Author : Edard AGAPOV
23// Module : SMESH
24//
25#ifndef SMESHGUI_GroupOnShapeDlg_H_H
26#define SMESHGUI_GroupOnShapeDlg_H_H
27
28#include "SMESH_SMESHGUI.hxx"
29
31
32class QLineEdit;
33class QListWidget;
34class QPushButton;
36
37//=================================================================================
38// class : SMESHGUI_GroupOnShapeOp
39// purpose : create groups on shapes of nodes and element at once, Issue 19970
40//=================================================================================
41
43{
44 Q_OBJECT
45
46public:
49
50 virtual LightApp_Dialog* dlg() const;
51 static QString GetDefaultName(const QString& theOperation);
52 static SMESH::ElementType ElementType(GEOM::GEOM_Object_var geom);
53
54public slots:
55
56protected:
57
58 virtual void startOperation();
59 virtual void selectionDone();
60 virtual SUIT_SelectionFilter* createFilter( const int ) const;
61
62private slots:
63
64 bool onApply();
65 void onButtonClick();
66
67private:
68
69 void init();
70
71private:
72
74
75 QString myMeshID;
76 QStringList myElemGeoIDs, myNodeGeoIDs;
77};
78
80{
81 Q_OBJECT
82
83public:
86
87public slots:
88
89 void updateButtons();
90 void init();
91
92private:
93
94 QPushButton* myMeshBtn;
95 QLineEdit* myMeshLine;
96
97 QPushButton* myElemGeomBtn;
98 QListWidget* myElemGeomList;
99
100 QPushButton* myNodeGeomBtn;
101 QListWidget* myNodeGeomList;
102
104};
105
106#endif // SMESHGUI_GroupOnShapeDlg_H_H
#define SMESHGUI_EXPORT
Definition: SMESH_SMESHGUI.hxx:36
Definition: SMESHGUI_Dialog.h:44
Definition: SMESHGUI_GroupOnShapeDlg.h:80
QPushButton * myNodeGeomBtn
Definition: SMESHGUI_GroupOnShapeDlg.h:100
QListWidget * myNodeGeomList
Definition: SMESHGUI_GroupOnShapeDlg.h:101
QLineEdit * myMeshLine
Definition: SMESHGUI_GroupOnShapeDlg.h:95
QListWidget * myElemGeomList
Definition: SMESHGUI_GroupOnShapeDlg.h:98
QPushButton * myMeshBtn
Definition: SMESHGUI_GroupOnShapeDlg.h:94
QPushButton * myElemGeomBtn
Definition: SMESHGUI_GroupOnShapeDlg.h:97
Definition: SMESHGUI_GroupOnShapeDlg.h:43
QStringList myElemGeoIDs
Definition: SMESHGUI_GroupOnShapeDlg.h:76
QString myMeshID
Definition: SMESHGUI_GroupOnShapeDlg.h:75
SMESHGUI_GroupOnShapeDlg * myDlg
Definition: SMESHGUI_GroupOnShapeDlg.h:73
static QString GetDefaultName(const QString &theOperation)
virtual bool onApply()
Definition: SMESHGUI_Operation.cxx:166
Definition: SMESHGUI_SelectionOp.h:58
virtual void selectionDone()
Definition: SMESHGUI_SelectionOp.cxx:143
virtual void startOperation()
This enumeration is used in typeById method to distinguish objects, mesh nodes and mesh elements,...
Definition: SMESHGUI_SelectionOp.cxx:79
virtual SUIT_SelectionFilter * createFilter(const int) const
Creates filter being used when certain object selection widget is active If no filter must be used,...
Definition: SMESHGUI_SelectionOp.cxx:170
ElementType
Enumeration for element type, like in SMDS.
Definition: SMESH_Mesh.idl:128