1 // GEOM GEOMGUI : GUI for Geometry component
3 // Copyright (C) 2003 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 : EntityGUI_3DSketcherDlg.h
26 #ifndef ENTITYGUI_3DSKETCHERDLG_H
27 #define ENTITYGUI_3DSKETCHERDLG_H
29 #include <GEOMBase_Skeleton.h>
32 class EntityGUI_3Spin;
36 # define COORD_MIN -1e+15
37 # define COORD_MAX +1e+15
38 # define MAX_NUMBER 100000
39 # define DBL_DIGITS_DISPLAY 16
42 //=================================================================================
43 // class : EntityGUI_Dlg
45 //=================================================================================
46 class EntityGUI_3DSketcherDlg : public GEOMBase_Skeleton
51 EntityGUI_3DSketcherDlg( GeometryGUI*, QWidget* = 0, bool = false, Qt::WindowFlags = 0, const double = 2. );
52 ~EntityGUI_3DSketcherDlg();
55 void initSpinBox( QDoubleSpinBox*,
56 double, double, double = 0.1,
59 // redefined from GEOMBase_Helper
60 virtual GEOM::GEOM_IOperations_ptr createOperation();
61 virtual bool isValid( QString& );
62 virtual bool execute( ObjectList& );
66 void enterEvent( QEvent* );
68 virtual void displayPreview( GEOM::GEOM_Object_ptr,
76 bool createShapes( GEOM::GEOM_Object_ptr,
81 QList<double> myPointsList;
82 QList<double> myRedoList;
84 EntityGUI_3Spin* Group3Spin;
85 DlgRef_3Radio* GroupType;
89 GeometryGUI* myGeometryGUI;
93 void ClickOnAddPoint();
95 // bool isSameAsPrevious();
96 void UpdateButtonsState();
97 void GetLastPoints(double&, double&, double&);
98 void GetCurrentPoints(double&, double&, double&);
103 void SelectionIntoArgument();
104 void DeactivateActiveDialog();
105 void ActivateThisDialog();
107 void ValueChangedInSpinBox( double );
108 void SetDoubleSpinBoxStep( double );
111 #endif // ENTITYGUI_SKETCHERDLG_H