Salome HOME
4b7468842bdc209772afb9a47a70aaa8df89d5ee
[modules/geom.git] / src / BasicGUI / BasicGUI_WorkingPlaneDlg.h
1 // Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
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, or (at your option) any later version.
10 //
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.
15 //
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
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 // GEOM GEOMGUI : GUI for Geometry component
24 // File   : BasicGUI_WorkingPlaneDlg.h
25 // Author : Lucien PIGNOLONI, Open CASCADE S.A.S.
26 //
27 #ifndef BASICGUI_WORKINGPLANEDLG_H
28 #define BASICGUI_WORKINGPLANEDLG_H
29
30 #include <GEOMBase_Skeleton.h>
31
32 #include <gp_Ax3.hxx>
33
34 class DlgRef_1Sel;
35 class DlgRef_2Sel;
36 class DlgRef_3Check;
37 class QCheckBox;
38
39 //=================================================================================
40 // class    : BasicGUI_WorkingPlaneDlg
41 // purpose  :
42 //=================================================================================
43 class BasicGUI_WorkingPlaneDlg : public GEOMBase_Skeleton
44
45   Q_OBJECT
46
47 public:
48   BasicGUI_WorkingPlaneDlg( GeometryGUI*, QWidget* = 0, bool = false, Qt::WindowFlags = 0 );
49   ~BasicGUI_WorkingPlaneDlg();
50
51 private:
52   void                  Init();
53   void                  enterEvent( QEvent* );
54   
55   bool                  updateWPlane( const bool = true );
56
57   GEOM::GEOM_Object_var myFace;
58   GEOM::GEOM_Object_var myVectX;
59   GEOM::GEOM_Object_var myVectZ;
60   
61   int                   aOriginType;
62   
63   DlgRef_1Sel*          Group1;
64   DlgRef_2Sel*          Group2;
65   DlgRef_3Check*        Group3;
66   
67   QCheckBox*            myReverseCB;
68   
69   gp_Ax3                myWPlane;
70   
71 private slots:
72   void                  ClickOnOk();
73   bool                  ClickOnApply();
74   
75   void                  ConstructorsClicked( int );
76   void                  GroupClicked( int );
77   void                  SetEditCurrentArgument();
78   void                  SelectionIntoArgument();
79   void                  LineEditReturnPressed();
80   void                  onReverse();
81   
82   void                  ActivateThisDialog();
83   void                  DeactivateActiveDialog();
84 };
85
86 #endif // BASICGUI_WORKINGPLANEDLG_H