Salome HOME
RNC: EDF 1542: Take into account orientation in newly created MakeVertexOnCurveByLeng...
[modules/geom.git] / src / BasicGUI / BasicGUI.h
index ef5d957f14d0424243bc747b07b4364cb50af9c7..c8303d27d83d86786a562e5342333259abe587cf 100644 (file)
@@ -1,69 +1,49 @@
-//  GEOM GEOMGUI : GUI for Geometry component
+//  Copyright (C) 2007-2010  CEA/DEN, EDF R&D, OPEN CASCADE
 //
-//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
-// 
-//  This library is free software; you can redistribute it and/or 
-//  modify it under the terms of the GNU Lesser General Public 
-//  License as published by the Free Software Foundation; either 
-//  version 2.1 of the License. 
-// 
-//  This library is distributed in the hope that it will be useful, 
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-//  Lesser General Public License for more details. 
-// 
-//  You should have received a copy of the GNU Lesser General Public 
-//  License along with this library; if not, write to the Free Software 
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-// 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
 //
+//  This library is free software; you can redistribute it and/or
+//  modify it under the terms of the GNU Lesser General Public
+//  License as published by the Free Software Foundation; either
+//  version 2.1 of the License.
 //
+//  This library is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+//  Lesser General Public License for more details.
+//
+//  You should have received a copy of the GNU Lesser General Public
+//  License along with this library; if not, write to the Free Software
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
-//  File   : BasicGUI.h
-//  Author : Damien COQUERET
-//  Module : GEOM
-//  $Header: 
 
+// GEOM GEOMGUI : GUI for Geometry component
+// File   : BasicGUI.h
+// Author : Damien COQUERET, Open CASCADE S.A.S.
+//
 #ifndef BASICGUI_H
 #define BASICGUI_H
 
-#include "GEOMBase.h"
+#include <GEOMGUI.h>
 #include <V3d_View.hxx>
 
 //=================================================================================
 // class    : BasicGUI
 // purpose  :
 //=================================================================================
-class BasicGUI : public QObject
+class BasicGUI : public GEOMGUI
 {
-  Q_OBJECT /* for QT compatibility */
-
-public :
-  BasicGUI();
+public:
+  BasicGUI( GeometryGUI* );
   ~BasicGUI();
 
-  static bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
-  static bool OnMousePress(QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame);
-
-  gp_Pnt ConvertClickToPoint(Standard_Real x, Standard_Real y, Handle(V3d_View) aView);
-
-  void MakePointAndDisplay(const double x, const double y, const double z);
-  void MakeLineAndDisplay(const gp_Pnt InitPoint, const gp_Pnt LastPoint);
-  void MakeCircleAndDisplay(const gp_Pnt CenterPoint, const gp_Dir dir, const Standard_Real Radius);
-  void MakeEllipseAndDisplay(const gp_Pnt CenterPoint, const gp_Dir dir,
-                            const Standard_Real Major_Radius, const Standard_Real Minor_Radius);
-  void MakeArcAndDisplay(gp_Pnt InitPoint, gp_Pnt CirclePoint, gp_Pnt EndPoint);
-  void MakeVectorAndDisplay(const gp_Pnt P1, const gp_Pnt P2);
-  void MakePlaneAndDisplay(const gp_Pnt P1, const Standard_Real dx, const Standard_Real dy,
-                          const Standard_Real dz, const Standard_Real TrimSize);
-  void MakeWorkingPlane(const gp_Pnt P, const gp_Dir D);
-
-  GEOMBase* myGeomBase;
-  GEOMContext* myGeomGUI;
-  GEOM::GEOM_Gen_var myGeom;   /* Current Geom Component */
+  bool   OnGUIEvent( int, SUIT_Desktop* );
+  bool   OnMousePress( QMouseEvent*, SUIT_Desktop*, SUIT_ViewWindow* );
 
+  gp_Pnt ConvertClickToPoint( int, int, Handle(V3d_View) );
 };
 
-#endif
+#endif // BASICGUI_H