Version: 9.16.0
SMESHGUI_MakeNodeAtPointDlg.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_MakeNodeAtPointDlg.h
24// Author : Edward AGAPOV, Open CASCADE S.A.S.
25//
26#ifndef SMESHGUI_MAKENODEATPOINTDLG_H
27#define SMESHGUI_MAKENODEATPOINTDLG_H
28
29// SMESH includes
30#include "SMESH_SMESHGUI.hxx"
31
32#include "SMESHGUI_Dialog.h"
34
35#include <vtkSmartPointer.h>
36
37class QButtonGroup;
38class QCheckBox;
39class QGroupBox;
40class QLineEdit;
41class QPushButton;
42class QRadioButton;
46
47
52{
53 Q_OBJECT
54
55public:
56 SMESHGUI_MakeNodeAtPointOp(int defaultConstructor = 0);
58
59 virtual LightApp_Dialog* dlg() const;
60
61protected:
62
63 virtual void startOperation() override;
64 virtual void stopOperation() override;
65
66 virtual void activateSelection() override;
67
68 bool isValid( QString& );
69
70 virtual void processStyleEvents(unsigned long event,
71 void* calldata) override;
72
73 virtual void processInteractorEvents(unsigned long event,
74 void* calldata) override;
75
76protected slots:
77 virtual bool onApply();
78
79private slots:
80 void onSelectionDone();
81 void redisplayPreview();
82 void onTextChange( const QString& );
83 void onUpdateDestination();
84 void onDestCoordChanged();
85 void onOpenView();
86 void onCloseView();
87 void constructorChanged();
88
89private:
90 int GetConstructorId();
91
94
102};
103
109{
110 Q_OBJECT
111
112public:
114
115private:
116 QWidget* createMainFrame( QWidget* );
117
119
120 QButtonGroup* myButtonGroup;
121 QRadioButton* myRButNodeToMove;
124 QPushButton* myDestBtn;
125 QPushButton* myUpdateBtn;
128 QPushButton* myIdBtn;
129 QLineEdit* myId;
142 QCheckBox* myPreviewChkBox;
143
145
147
148private slots:
149 void ButtonToggled( bool );
150 void ConstructorsClicked( int );
151};
152
153#endif // SMESHGUI_MAKENODEATPOINTDLG_H
#define SMESHGUI_EXPORT
Definition: SMESH_SMESHGUI.hxx:36
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
Dialog to make a mesh pass through a point.
Definition: SMESHGUI_MakeNodeAtPointDlg.h:109
QCheckBox * myPreviewChkBox
Definition: SMESHGUI_MakeNodeAtPointDlg.h:142
QPushButton * myUpdateBtn
Definition: SMESHGUI_MakeNodeAtPointDlg.h:125
QLabel * myDestDXLabel
Definition: SMESHGUI_MakeNodeAtPointDlg.h:136
SMESHGUI_SpinBox * myCurrentZ
Definition: SMESHGUI_MakeNodeAtPointDlg.h:132
QLabel * myDestDZLabel
Definition: SMESHGUI_MakeNodeAtPointDlg.h:138
SMESHGUI_SpinBox * myDestDX
Definition: SMESHGUI_MakeNodeAtPointDlg.h:139
SMESHGUI_SpinBox * myDestDY
Definition: SMESHGUI_MakeNodeAtPointDlg.h:140
SMESHGUI_SpinBox * myDestinationX
Definition: SMESHGUI_MakeNodeAtPointDlg.h:133
QGroupBox * myNodeToMoveGrp
Definition: SMESHGUI_MakeNodeAtPointDlg.h:127
SMESHGUI_SpinBox * myDestinationY
Definition: SMESHGUI_MakeNodeAtPointDlg.h:134
QString myHelpFileName
Definition: SMESHGUI_MakeNodeAtPointDlg.h:144
QLineEdit * myId
Definition: SMESHGUI_MakeNodeAtPointDlg.h:129
QRadioButton * myRButNodeToMove
Definition: SMESHGUI_MakeNodeAtPointDlg.h:121
SMESHGUI_SpinBox * myDestinationZ
Definition: SMESHGUI_MakeNodeAtPointDlg.h:135
QLabel * myDestDYLabel
Definition: SMESHGUI_MakeNodeAtPointDlg.h:137
QRadioButton * myRButMoveWithoutNode
Definition: SMESHGUI_MakeNodeAtPointDlg.h:122
SMESHGUI_SpinBox * myDestDZ
Definition: SMESHGUI_MakeNodeAtPointDlg.h:141
QWidget * myMainFrame
Definition: SMESHGUI_MakeNodeAtPointDlg.h:118
QPushButton * myIdBtn
Definition: SMESHGUI_MakeNodeAtPointDlg.h:128
SMESHGUI_SpinBox * myCurrentY
Definition: SMESHGUI_MakeNodeAtPointDlg.h:131
QButtonGroup * myButtonGroup
Definition: SMESHGUI_MakeNodeAtPointDlg.h:120
QRadioButton * myRButMoveInteractive
Definition: SMESHGUI_MakeNodeAtPointDlg.h:123
QPushButton * myDestBtn
Definition: SMESHGUI_MakeNodeAtPointDlg.h:124
QGroupBox * myDestinationGrp
Definition: SMESHGUI_MakeNodeAtPointDlg.h:126
SMESHGUI_SpinBox * myCurrentX
Definition: SMESHGUI_MakeNodeAtPointDlg.h:130
Operation to make a mesh pass through a point.
Definition: SMESHGUI_MakeNodeAtPointDlg.h:52
SUIT_SelectionFilter * myFilter
Definition: SMESHGUI_MakeNodeAtPointDlg.h:95
bool myDestCoordChanged
Definition: SMESHGUI_MakeNodeAtPointDlg.h:101
bool myUpdateDestination
Definition: SMESHGUI_MakeNodeAtPointDlg.h:100
SMESH_Actor * myMeshActor
Definition: SMESHGUI_MakeNodeAtPointDlg.h:98
bool myNoPreview
Definition: SMESHGUI_MakeNodeAtPointDlg.h:99
int myDefaultConstructor
Definition: SMESHGUI_MakeNodeAtPointDlg.h:92
SMESHGUI_MeshEditPreview * mySimulation
Definition: SMESHGUI_MakeNodeAtPointDlg.h:97
SMESHGUI * mySMESHGUI
Definition: SMESHGUI_MakeNodeAtPointDlg.h:96
SMESHGUI_MakeNodeAtPointDlg * myDlg
Definition: SMESHGUI_MakeNodeAtPointDlg.h:93
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