Version: 9.16.0
SMESHGUI_AddNodeOnSegmentDlg.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_AddNodeOnSegmentDlg.h
24// Author : Edward AGAPOV, Open CASCADE S.A.S.
25//
26#ifndef SMESHGUI_AddNodeOnSegmentDLG_H
27#define SMESHGUI_AddNodeOnSegmentDLG_H
28
29#include "SMESHGUI_Dialog.h"
31
32class QButtonGroup;
33class QCheckBox;
34class QGroupBox;
35class QLineEdit;
36class QPushButton;
37class QRadioButton;
41
46{
47 Q_OBJECT
48
49public:
52
53 virtual LightApp_Dialog* dlg() const;
54
55protected:
56
57 virtual void startOperation() override;
58 virtual void stopOperation() override;
59
60 virtual void activateSelection();
61
62 bool isValid( QString&, SMESH::smIdType& n1, SMESH::smIdType& n2 );
63
64 virtual void processStyleEvents(unsigned long event,
65 void* calldata) override;
66
67 virtual void processInteractorEvents(unsigned long event,
68 void* calldata) override;
69
70
71protected slots:
72 virtual bool onApply() override;
73
74
75private slots:
76 void onSelectionDone();
77 void redisplayPreview();
78 void onTextChange( const QString& );
79 void onSelTypeChange();
80 void onOpenView();
81 void onCloseView();
82
83private:
84
86
91};
92
98{
99 Q_OBJECT
100
101public:
103
104signals:
105
107
108private:
109 QWidget* createMainFrame( QWidget* );
110
111 QPushButton* mySegmentBtn;
112 QLineEdit* mySegment;
113 QPushButton* myPositionBtn;
115 QCheckBox* myPreviewChkBox;
116
118
120
121private slots:
122 void ButtonToggled( bool );
123};
124
125#endif // SMESHGUI_AddNodeOnSegmentDLG_H
#define SMESHGUI_EXPORT
Definition: SMESH_SMESHGUI.hxx:36
Dialog to make a mesh pass through a point.
Definition: SMESHGUI_AddNodeOnSegmentDlg.h:98
QPushButton * mySegmentBtn
Definition: SMESHGUI_AddNodeOnSegmentDlg.h:111
QCheckBox * myPreviewChkBox
Definition: SMESHGUI_AddNodeOnSegmentDlg.h:115
QString myHelpFileName
Definition: SMESHGUI_AddNodeOnSegmentDlg.h:117
SMESHGUI_SpinBox * myPositionSpin
Definition: SMESHGUI_AddNodeOnSegmentDlg.h:114
QLineEdit * mySegment
Definition: SMESHGUI_AddNodeOnSegmentDlg.h:112
QPushButton * myPositionBtn
Definition: SMESHGUI_AddNodeOnSegmentDlg.h:113
Operation to make a mesh pass through a point.
Definition: SMESHGUI_AddNodeOnSegmentDlg.h:46
SMESH_Actor * myMeshActor
Definition: SMESHGUI_AddNodeOnSegmentDlg.h:89
bool myNoPreview
Definition: SMESHGUI_AddNodeOnSegmentDlg.h:90
SMESHGUI_AddNodeOnSegmentDlg * myDlg
Definition: SMESHGUI_AddNodeOnSegmentDlg.h:85
SMESHGUI * mySMESHGUI
Definition: SMESHGUI_AddNodeOnSegmentDlg.h:87
SMESHGUI_MeshEditPreview * mySimulation
Definition: SMESHGUI_AddNodeOnSegmentDlg.h:88
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