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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : TransformationGUI.h
25 // Author : Damien COQUERET
29 #ifndef TRANSFORMATIONGUI_H
30 #define TRANSFORMATIONGUI_H
35 //=================================================================================
36 // class : TransformationGUI
38 //=================================================================================
39 class TransformationGUI : public QObject
41 Q_OBJECT /* for QT compatibility */
47 static bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
49 void MakeTranslationAndDisplay(GEOM::GEOM_Shape_ptr Shape, const gp_Vec V);
50 void MakeRotationAndDisplay(GEOM::GEOM_Shape_ptr Shape, const gp_Pnt loc,
51 const gp_Dir dir, const Standard_Real angle);
52 void MakeMirrorAndDisplay(GEOM::GEOM_Shape_ptr Shape1, GEOM::GEOM_Shape_ptr Shape2);
53 void MakeScaleAndDisplay(GEOM::GEOM_Shape_ptr Shape, const gp_Pnt centralPoint,
54 const Standard_Real factor);
55 void MakeMultiTranslation1DAndDisplay(GEOM::GEOM_Shape_ptr Shape,
56 const gp_Dir Dir, const double Step, const short NbTimes);
57 void MakeMultiTranslation2DAndDisplay(GEOM::GEOM_Shape_ptr Shape,
58 const gp_Dir Dir1, const double Step1, const short NbTimes1,
59 const gp_Dir Dir2, const double Step2, const short NbTimes2);
60 void MakeMultiRotation1DAndDisplay(GEOM::GEOM_Shape_ptr Shape,
61 const gp_Dir Dir, const gp_Pnt Loc, const short NbTimes);
62 void MakeMultiRotation2DAndDisplay(GEOM::GEOM_Shape_ptr Shape,
63 const gp_Dir Dir, const gp_Pnt Loc, const double Ang,
64 const short NbTimes1, const double Step, const short NbTimes2);
67 GEOMContext* myGeomGUI;
68 GEOM::GEOM_Gen_var myGeom; /* Current Geom Component */