1 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : SMESHGUI_MakeNodeAtPointDlg.h
21 // Author : Edward AGAPOV, Open CASCADE S.A.S.
24 #ifndef SMESHGUI_MAKENODEATPOINTDLG_H
25 #define SMESHGUI_MAKENODEATPOINTDLG_H
28 #include "SMESH_SMESHGUI.hxx"
30 #include "SMESHGUI_Dialog.h"
31 #include "SMESHGUI_SelectionOp.h"
38 class SMESHGUI_SpinBox;
39 class SMESHGUI_MeshEditPreview;
40 class SMESHGUI_MakeNodeAtPointDlg;
43 * \brief Operation to make a mesh pass through a point
45 class SMESHGUI_EXPORT SMESHGUI_MakeNodeAtPointOp: public SMESHGUI_SelectionOp
50 SMESHGUI_MakeNodeAtPointOp();
51 virtual ~SMESHGUI_MakeNodeAtPointOp();
53 virtual LightApp_Dialog* dlg() const;
57 virtual void startOperation();
58 virtual void stopOperation();
60 virtual void activateSelection();
65 virtual bool onApply();
68 void onSelectionDone();
69 void redisplayPreview();
72 SMESHGUI_MakeNodeAtPointDlg* myDlg;
74 SUIT_SelectionFilter* myFilter;
75 int myMeshOldDisplayMode;
76 SMESHGUI_MeshEditPreview* mySimulation;
77 SMESH_Actor* myMeshActor;
82 * \brief Dialog to make a mesh pass through a point
85 class SMESHGUI_EXPORT SMESHGUI_MakeNodeAtPointDlg : public SMESHGUI_Dialog
90 SMESHGUI_MakeNodeAtPointDlg();
93 QWidget* createMainFrame( QWidget* );
95 QPushButton* myCoordBtn;
96 SMESHGUI_SpinBox* myX;
97 SMESHGUI_SpinBox* myY;
98 SMESHGUI_SpinBox* myZ;
99 QRadioButton* myMoveRBtn;
100 QRadioButton* myCreateRBtn;
101 QGroupBox* myNodeToMoveGrp;
102 QPushButton* myIdBtn;
104 QCheckBox* myAutoSearchChkBox;
105 QCheckBox* myPreviewChkBox;
107 QString myHelpFileName;
109 friend class SMESHGUI_MakeNodeAtPointOp;
112 void ButtonToggled( bool );
115 #endif // SMESHGUI_MAKENODEATPOINTDLG_H