Version: 9.16.0
SMESHGUI_AddNodeOnFaceDlg.h
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
3// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5//
6// This library is free software; you can redistribute it and/or
7// modify it under the terms of the GNU Lesser General Public
8// License as published by the Free Software Foundation; either
9// version 2.1 of the License, or (at your option) any later version.
10//
11// This library is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14// Lesser General Public License for more details.
15//
16// You should have received a copy of the GNU Lesser General Public
17// License along with this library; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19//
20// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21//
22
23// File : SMESHGUI_AddNodeOnFaceDlg.h
24// Author : Edward AGAPOV, Open CASCADE S.A.S.
25//
26#ifndef SMESHGUI_AddNodeOnFaceDLG_H
27#define SMESHGUI_AddNodeOnFaceDLG_H
28
29// SMESH includes
30#include "SMESH_SMESHGUI.hxx"
31
32#include "SMESHGUI_Dialog.h"
34
35class QButtonGroup;
36class QCheckBox;
37class QGroupBox;
38class QLineEdit;
39class QPushButton;
40class QRadioButton;
44class vtkCellPicker;
45
51{
52 Q_OBJECT
53
54public:
57
58 virtual LightApp_Dialog* dlg() const;
59
60protected:
61
62 virtual void startOperation() override;
63 virtual void stopOperation() override;
64
65 virtual void activateSelection() override;
66
67 bool isValid( QString& );
68
69 virtual void processStyleEvents(unsigned long event,
70 void* calldata) override;
71
72 virtual void processInteractorEvents(unsigned long event,
73 void* calldata) override;
74
75
76protected slots:
77 virtual bool onApply();
78
79private slots:
80 void onSelectionDone();
81 void redisplayPreview();
82 void onSelTypeChange();
83 void onTextChange( const QString& );
84// void onDestCoordChanged();
85 void onOpenView();
86 void onCloseView();
87 void pointLocationChanged(bool);
88 void onDestCoordChanged();
89
90private:
92
100 vtkCellPicker* myFacePicker;
101};
102
109{
110 Q_OBJECT
111
112public:
114
115private:
116 QWidget* createMainFrame( QWidget* );
117
119
120 QPushButton* myDestBtn;
121 QPushButton* myIdBtn;
122 QLineEdit* myId;
126 QCheckBox* myPointOnFace;
127 QCheckBox* myPreviewChkBox;
128
130
132
133signals:
135
136 private slots:
137 void ButtonToggled( bool );
138};
139
140#endif // SMESHGUI_AddNodeOnFaceDLG_H
#define SMESHGUI_EXPORT
Definition: SMESH_SMESHGUI.hxx:36
Dialog to split a face into triangles by creating a new node on the face and connecting it to the fac...
Definition: SMESHGUI_AddNodeOnFaceDlg.h:109
QLineEdit * myId
Definition: SMESHGUI_AddNodeOnFaceDlg.h:122
QCheckBox * myPreviewChkBox
Definition: SMESHGUI_AddNodeOnFaceDlg.h:127
SMESHGUI_SpinBox * myDestinationX
Definition: SMESHGUI_AddNodeOnFaceDlg.h:123
QString myHelpFileName
Definition: SMESHGUI_AddNodeOnFaceDlg.h:129
QPushButton * myIdBtn
Definition: SMESHGUI_AddNodeOnFaceDlg.h:121
SMESHGUI_SpinBox * myDestinationY
Definition: SMESHGUI_AddNodeOnFaceDlg.h:124
SMESHGUI_SpinBox * myDestinationZ
Definition: SMESHGUI_AddNodeOnFaceDlg.h:125
QWidget * myMainFrame
Definition: SMESHGUI_AddNodeOnFaceDlg.h:118
QPushButton * myDestBtn
Definition: SMESHGUI_AddNodeOnFaceDlg.h:120
QCheckBox * myPointOnFace
Definition: SMESHGUI_AddNodeOnFaceDlg.h:126
Operation to split a face into triangles by creating a new node on the face and connecting it to the ...
Definition: SMESHGUI_AddNodeOnFaceDlg.h:51
vtkCellPicker * myFacePicker
Definition: SMESHGUI_AddNodeOnFaceDlg.h:100
SMESHGUI_AddNodeOnFaceDlg * myDlg
Definition: SMESHGUI_AddNodeOnFaceDlg.h:91
SUIT_SelectionFilter * myFilter
Definition: SMESHGUI_AddNodeOnFaceDlg.h:93
SMESH_Actor * myMeshActor
Definition: SMESHGUI_AddNodeOnFaceDlg.h:96
SMESHGUI_MeshEditPreview * mySimulation
Definition: SMESHGUI_AddNodeOnFaceDlg.h:95
bool myDestCoordChanged
Definition: SMESHGUI_AddNodeOnFaceDlg.h:99
SMESHGUI * mySMESHGUI
Definition: SMESHGUI_AddNodeOnFaceDlg.h:94
bool myNoPreview
Definition: SMESHGUI_AddNodeOnFaceDlg.h:97
bool myUpdateDestination
Definition: SMESHGUI_AddNodeOnFaceDlg.h:98
Definition: SMESHGUI_Dialog.h:44
Definition: SMESHGUI_InteractiveOp.h:46
virtual void startOperation() override
This enumeration is used in typeById method to distinguish objects, mesh nodes and mesh elements,...
Definition: SMESHGUI_InteractiveOp.cxx:113
virtual void processStyleEvents(unsigned long event, void *calldata)
Process interactor style events () Virtual method.
Definition: SMESHGUI_InteractiveOp.cxx:159
virtual void processInteractorEvents(unsigned long event, void *calldata)
Process Generic Render Window Interactor events.
Definition: SMESHGUI_InteractiveOp.cxx:168
Displayer of the mesh edition preview.
Definition: SMESHGUI_MeshEditPreview.h:47
virtual bool isValid(SUIT_Operation *) const
Verifies whether given operator is valid for this one.
Definition: SMESHGUI_Operation.cxx:242
virtual bool onApply()
Definition: SMESHGUI_Operation.cxx:166
Definition: SMESHGUI_SpinBox.h:48
Definition: SMESHGUI.h:84
Definition: SMESH_Actor.h:56