1 // File : GeometryGUI_RotationDlg.h
3 // Author : Lucien PIGNOLONI
5 // Module : GeometryGUI
6 // Copyright : OPEN CASCADE
9 #ifndef DIALOGBOX_ROTATION_H
10 #define DIALOGBOX_ROTATION_H
13 #include "SALOME_Selection.h"
14 #include "GEOM_ShapeTypeFilter.hxx"
15 #include "GEOM_EdgeFilter.hxx"
16 #include "GeometryGUI_SpinBox.h"
18 #include <TopLoc_Location.hxx>
19 #include <BRepBuilderAPI_Transform.hxx>
38 //=================================================================================
39 // class : GeometryGUI_RotationDlg
41 //=================================================================================
42 class GeometryGUI_RotationDlg : public QDialog
47 GeometryGUI_RotationDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
48 ~GeometryGUI_RotationDlg();
52 GEOM::GEOM_Gen_var myGeom ; /* Current Geom object */
53 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
54 SALOME_Selection* mySelection ; /* User shape selection */
55 TopoDS_Shape mySimulationTopoDs; /* Shape used for simulation display */
57 GEOM::GEOM_Shape_var myGeomShape ; /* is myBase */
61 Standard_Real myAngle ;
65 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
66 int myConstructorId ; /* Current constructor id = radio button id */
67 Handle(GEOM_EdgeFilter) myEdgeFilter; /* Filter selection */
69 void closeEvent( QCloseEvent* e ) ;
70 void enterEvent( QEvent* e);
71 void Init( SALOME_Selection* Sel ) ;
72 void MakeRotationSimulationAndDisplay( const TopoDS_Shape& S) ;
74 QButtonGroup* GroupConstructors;
75 QRadioButton* Constructor1;
76 QGroupBox* GroupButtons;
77 QPushButton* buttonOk;
78 QPushButton* buttonCancel;
79 QPushButton* buttonApply;
81 QPushButton* SelectButtonC1A2;
82 QLineEdit* LineEditC1A1;
83 QLineEdit* LineEditC1A2;
84 QPushButton* SelectButtonC1A1;
85 QLabel* TextLabelC1A1;
86 QLabel* TextLabelC1A2;
87 GeometryGUI_SpinBox* SpinBox_C1A3 ; /* for angle */
88 QLabel* TextLabelC1A3;
89 QCheckBox* CheckBoxReverse;
93 void ConstructorsClicked(int constructorId);
97 void SetEditCurrentArgument() ;
98 void SelectionIntoArgument() ;
99 void LineEditReturnPressed() ;
100 void DeactivateActiveDialog() ;
101 void ActivateThisDialog() ;
102 void ReverseAngle(int state) ;
103 void ValueChangedInSpinBox( double newValue ) ;
106 QGridLayout* GeometryGUI_RotationDlgLayout;
107 QGridLayout* GroupConstructorsLayout;
108 QGridLayout* GroupButtonsLayout;
109 QGridLayout* GroupC1Layout;
112 #endif // DIALOGBOX_ROTATION_H