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
22 // File : SMESHGUI_MakeNodeAtPointDlg.h
23 // Author : Edward AGAPOV
27 #ifndef SMESHGUI_MakeNodeAtPointDlg_H
28 #define SMESHGUI_MakeNodeAtPointDlg_H
30 #include "SMESHGUI_Dialog.h"
31 #include "SMESHGUI_SelectionOp.h"
33 #include "VTKViewer.h"
38 class LightApp_SelectionMgr;
39 class SVTK_ViewWindow;
44 class SMESHGUI_SpinBox;
46 class SMESHGUI_MeshEditPreview;
47 class SMESHGUI_MakeNodeAtPointDlg;
50 * \brief Operation to make a mesh pass through a point
52 class SMESHGUI_MakeNodeAtPointOp: public SMESHGUI_SelectionOp
57 SMESHGUI_MakeNodeAtPointOp();
58 virtual ~SMESHGUI_MakeNodeAtPointOp();
60 virtual LightApp_Dialog* dlg() const;
64 virtual void startOperation();
65 virtual void stopOperation();
67 virtual void activateSelection();
72 virtual bool onApply();
76 void onSelectionDone();
77 void redisplayPreview();
81 SMESHGUI_MakeNodeAtPointDlg* myDlg;
83 int myMeshOldDisplayMode;
84 SMESHGUI_MeshEditPreview* mySimulation;
85 SMESH_Actor* myMeshActor;
91 * \brief Dialog to make a mesh pass through a point
94 class SMESHGUI_MakeNodeAtPointDlg : public SMESHGUI_Dialog
99 SMESHGUI_MakeNodeAtPointDlg();
103 QFrame* createMainFrame (QWidget*);
105 QPushButton* myCoordBtn;
106 SMESHGUI_SpinBox *myX, *myY, *myZ;
107 QRadioButton *myMoveRBtn, *myCreateRBtn;
108 QGroupBox* myNodeToMoveGrp;
109 QPushButton* myIdBtn;
111 QCheckBox* myAutoSearchChkBox;
112 QCheckBox* myPreviewChkBox;
114 QString myHelpFileName;
116 friend class SMESHGUI_MakeNodeAtPointOp;
120 void ButtonToggled (bool);