Version: 9.16.0
SMESHGUI_FindElemByPointDlg.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#ifndef SMESHGUI_FindElemByPointDLG_H
21#define SMESHGUI_FindElemByPointDLG_H
22
23// SMESH includes
24#include "SMESH_SMESHGUI.hxx"
25
26#include "SMESHGUI_Dialog.h"
28
29#include CORBA_SERVER_HEADER(SMESH_Mesh)
30
31class QLineEdit;
32class QPushButton;
33class QListWidget;
34class QtxComboBox;
38
43{
44 Q_OBJECT
45
46public:
49
50 virtual LightApp_Dialog* dlg() const;
51
52protected:
53
54 virtual void startOperation();
55 virtual void stopOperation();
56
57 virtual void activateSelection();
58
59protected slots:
60
61 virtual void onFind();
62 virtual bool onApply();
63
64private slots:
65
66 void onRejectedDlg();
67 void onSelectionDone();
68 void onElemSelected();
69 void onElemTypeChange(int);
70 void redisplayPreview();
71 void onOpenView();
72 void onCloseView();
73
74private:
76
79 SMESHGUI_MeshEditPreview* mySimulation; // to show point coordinates
80 SMESH::SMESH_IDSource_var myMeshOrPart;
81 SMESH::MeshPreviewStruct_var myPreview;
82 Handle(SALOME_InteractiveObject) myMeshIO;
83};
84
90{
91 Q_OBJECT
92
93public:
95
96 void setTypes(SMESH::array_of_ElementType_var & types);
97
98private:
99 QWidget* createMainFrame( QWidget* );
100
101 QLineEdit* myMeshName;
105 QtxComboBox* myElemTypeCombo;
106 QPushButton* myFindBtn;
107 QListWidget* myFoundList;
108
110
112
113signals:
115
116protected slots:
117 virtual void reject();
118
119private slots:
120//void ButtonToggled( bool );
121};
122
123#endif // SMESHGUI_FindElemByPointDLG_H
#define SMESHGUI_EXPORT
Definition: SMESH_SMESHGUI.hxx:36
Definition: SMESHGUI_Dialog.h:44
Dialog to find elements by a point coordinates.
Definition: SMESHGUI_FindElemByPointDlg.h:90
SMESHGUI_SpinBox * myY
Definition: SMESHGUI_FindElemByPointDlg.h:103
QLineEdit * myMeshName
Definition: SMESHGUI_FindElemByPointDlg.h:101
SMESHGUI_SpinBox * myZ
Definition: SMESHGUI_FindElemByPointDlg.h:104
SMESHGUI_SpinBox * myX
Definition: SMESHGUI_FindElemByPointDlg.h:102
QString myHelpFileName
Definition: SMESHGUI_FindElemByPointDlg.h:109
QPushButton * myFindBtn
Definition: SMESHGUI_FindElemByPointDlg.h:106
QListWidget * myFoundList
Definition: SMESHGUI_FindElemByPointDlg.h:107
QtxComboBox * myElemTypeCombo
Definition: SMESHGUI_FindElemByPointDlg.h:105
Operation to find elements by a point coordinates.
Definition: SMESHGUI_FindElemByPointDlg.h:43
SMESH::SMESH_IDSource_var myMeshOrPart
Definition: SMESHGUI_FindElemByPointDlg.h:80
SUIT_SelectionFilter * myFilter
Definition: SMESHGUI_FindElemByPointDlg.h:77
SMESHGUI_FindElemByPointDlg * myDlg
Definition: SMESHGUI_FindElemByPointDlg.h:75
SMESH::MeshPreviewStruct_var myPreview
Definition: SMESHGUI_FindElemByPointDlg.h:81
SMESHGUI_MeshEditPreview * mySimulation
Definition: SMESHGUI_FindElemByPointDlg.h:79
Handle(SALOME_InteractiveObject) myMeshIO
SMESHGUI * mySMESHGUI
Definition: SMESHGUI_FindElemByPointDlg.h:78
Displayer of the mesh edition preview.
Definition: SMESHGUI_MeshEditPreview.h:47
virtual bool onApply()
Definition: SMESHGUI_Operation.cxx:166
Definition: SMESHGUI_SelectionOp.h:58
virtual void startOperation()
This enumeration is used in typeById method to distinguish objects, mesh nodes and mesh elements,...
Definition: SMESHGUI_SelectionOp.cxx:79
Definition: SMESHGUI_SpinBox.h:48
Definition: SMESHGUI.h:84