1 // This library is free software; you can redistribute it and/or
2 // modify it under the terms of the GNU Lesser General Public
3 // License as published by the Free Software Foundation; either
4 // version 2.1 of the License.
6 // This library is distributed in the hope that it will be useful,
7 // but WITHOUT ANY WARRANTY; without even the implied warranty of
8 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9 // Lesser General Public License for more details.
11 // You should have received a copy of the GNU Lesser General Public
12 // License along with this library; if not, write to the Free Software
13 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 // GEOM GEOMGUI : GUI for Geometry component
19 // File : EntityGUI_SketcherDlg.cxx
20 // Author : Renaud NEDELEC, Open CASCADE S.A.S.
23 #include <GEOMBase_Skeleton.h>
25 #include <ShapeRec_FeatureDetector.hxx>
39 //=================================================================================
40 // class : EntityGUI_Dlg
42 //=================================================================================
43 class EntityGUI_FeatureDetectorDlg : public GEOMBase_Skeleton
48 EntityGUI_FeatureDetectorDlg(GeometryGUI*, QWidget* = 0, bool = false, Qt::WindowFlags = 0);
49 ~EntityGUI_FeatureDetectorDlg();
51 bool acceptMouseEvent() const;
52 // void OnPointSelected( const gp_Pnt& );
53 void setStartPnt ( const gp_Pnt& );
54 void setEndPnt ( const gp_Pnt& );
55 int getConstructorId() {return myConstructorId;};
58 // redefined from GEOMBase_Helper
59 virtual GEOM::GEOM_IOperations_ptr createOperation();
60 virtual bool execute( ObjectList& );
64 void showImageSample();
68 void SetEditCurrentArgument();
69 void SelectionIntoArgument();
70 void ConstructorsClicked( int );
71 // void onViewClicked( int );
72 void onButtonToggled( bool );
78 ShapeRec_FeatureDetector* aDetector;
80 GEOM::GeomObjPtr myFace;
85 QGroupBox* mySelectionGroup;
87 QLabel* mySnapshotLabel;
88 QLabel* myImgSampleLabel;
90 DlgRef_1Sel* mySelWidget;
98 QPushButton* myPushButton;
99 QPushButton* mySelButton;
101 QLineEdit* myLineEdit;
103 DlgRef_3Radio* myOutputGroup;;