1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // File : SMESHGUI_MakeNodeAtPointDlg.h
23 // Author : Edward AGAPOV
26 #ifndef SMESHGUI_MakeNodeAtPointDlg_H
27 #define SMESHGUI_MakeNodeAtPointDlg_H
29 #include "SMESHGUI_Dialog.h"
30 #include "SMESHGUI_SelectionOp.h"
32 #include "VTKViewer.h"
37 class LightApp_SelectionMgr;
38 class SVTK_ViewWindow;
43 class SMESHGUI_SpinBox;
45 class SMESHGUI_MeshEditPreview;
46 class SMESHGUI_MakeNodeAtPointDlg;
49 * \brief Operation to make a mesh pass through a point
51 class SMESHGUI_MakeNodeAtPointOp: public SMESHGUI_SelectionOp
56 SMESHGUI_MakeNodeAtPointOp();
57 virtual ~SMESHGUI_MakeNodeAtPointOp();
59 virtual LightApp_Dialog* dlg() const;
63 virtual void startOperation();
64 virtual void stopOperation();
66 virtual void activateSelection();
71 virtual bool onApply();
75 void onSelectionDone();
76 void redisplayPreview();
80 SMESHGUI_MakeNodeAtPointDlg* myDlg;
82 SUIT_SelectionFilter* myFilter;
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);