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 SUIT_SelectionFilter* myFilter;
84 int myMeshOldDisplayMode;
85 SMESHGUI_MeshEditPreview* mySimulation;
86 SMESH_Actor* myMeshActor;
92 * \brief Dialog to make a mesh pass through a point
95 class SMESHGUI_MakeNodeAtPointDlg : public SMESHGUI_Dialog
100 SMESHGUI_MakeNodeAtPointDlg();
104 QFrame* createMainFrame (QWidget*);
106 QPushButton* myCoordBtn;
107 SMESHGUI_SpinBox *myX, *myY, *myZ;
108 QRadioButton *myMoveRBtn, *myCreateRBtn;
109 QGroupBox* myNodeToMoveGrp;
110 QPushButton* myIdBtn;
112 QCheckBox* myAutoSearchChkBox;
113 QCheckBox* myPreviewChkBox;
115 QString myHelpFileName;
117 friend class SMESHGUI_MakeNodeAtPointOp;
121 void ButtonToggled (bool);