Version: 9.16.0
PrimitiveGUI_ConeDlg.h
Go to the documentation of this file.
1// Copyright (C) 2007-2026 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 : PrimitiveGUI_ConeDlg.h
25// Author : Lucien PIGNOLONI, Open CASCADE S.A.S.
26//
27#ifndef PRIMITIVEGUI_CONEDLG_H
28#define PRIMITIVEGUI_CONEDLG_H
29
30#include "GEOMBase_Skeleton.h"
31#include "GEOM_GenericObjPtr.h"
32
34class DlgRef_3Spin;
35
36//=================================================================================
37// class : PrimitiveGUI_ConeDlg
38// purpose :
39//=================================================================================
41{
42 Q_OBJECT
43
44public:
45 PrimitiveGUI_ConeDlg( GeometryGUI*, QWidget* = 0, bool = false, Qt::WindowFlags = 0 );
47
48protected:
49 // redefined from GEOMBase_Helper
50 virtual GEOM::GEOM_IOperations_ptr createOperation();
51 virtual bool isValid( QString& );
52 virtual bool execute( ObjectList& );
53 virtual void addSubshapesToStudy();
54 virtual QList<GEOM::GeomObjPtr> getSourceObjects();
55
56private:
57 void Init();
58 void enterEvent( QEvent* );
59 double getRadius1() const;
60 double getRadius2() const;
61 double getHeight() const;
62
63private:
65
68
69private slots:
70 void ClickOnOk();
71 bool ClickOnApply();
72 void ActivateThisDialog();
75 void ConstructorsClicked( int );
77 void SetDoubleSpinBoxStep( double );
78};
79
80#endif // PRIMITIVEGUI_CONEDLG_H
std::list< GEOM::GEOM_Object_ptr > ObjectList
Definition: GEOMBase_Helper.h:46
Definition: DlgRef.h:591
Definition: DlgRef.h:869
Definition: GEOMBase_Skeleton.h:53
Definition: GeometryGUI.h:74
Definition: PrimitiveGUI_ConeDlg.h:41
void ActivateThisDialog()
Definition: PrimitiveGUI_ConeDlg.cxx:339
PrimitiveGUI_ConeDlg(GeometryGUI *, QWidget *=0, bool=false, Qt::WindowFlags=0)
Definition: PrimitiveGUI_ConeDlg.cxx:55
void ValueChangedInSpinBox()
Definition: PrimitiveGUI_ConeDlg.cxx:363
void SelectionIntoArgument()
Definition: PrimitiveGUI_ConeDlg.cxx:246
virtual GEOM::GEOM_IOperations_ptr createOperation()
Definition: PrimitiveGUI_ConeDlg.cxx:372
virtual bool execute(ObjectList &)
Definition: PrimitiveGUI_ConeDlg.cxx:405
~PrimitiveGUI_ConeDlg()
Definition: PrimitiveGUI_ConeDlg.cxx:103
double getRadius2() const
Definition: PrimitiveGUI_ConeDlg.cxx:466
void Init()
Definition: PrimitiveGUI_ConeDlg.cxx:112
DlgRef_2Sel3Spin * GroupPoints
Definition: PrimitiveGUI_ConeDlg.h:66
DlgRef_3Spin * GroupDimensions
Definition: PrimitiveGUI_ConeDlg.h:67
bool ClickOnApply()
Definition: PrimitiveGUI_ConeDlg.cxx:231
virtual void addSubshapesToStudy()
Definition: PrimitiveGUI_ConeDlg.cxx:494
void SetEditCurrentArgument()
Definition: PrimitiveGUI_ConeDlg.cxx:299
void SetDoubleSpinBoxStep(double)
Definition: PrimitiveGUI_ConeDlg.cxx:171
virtual QList< GEOM::GeomObjPtr > getSourceObjects()
Definition: PrimitiveGUI_ConeDlg.cxx:506
virtual bool isValid(QString &)
Definition: PrimitiveGUI_ConeDlg.cxx:381
double getRadius1() const
Definition: PrimitiveGUI_ConeDlg.cxx:452
GEOM::GeomObjPtr myDir
Definition: PrimitiveGUI_ConeDlg.h:64
void ConstructorsClicked(int)
Definition: PrimitiveGUI_ConeDlg.cxx:185
GEOM::GeomObjPtr myPoint
Definition: PrimitiveGUI_ConeDlg.h:64
void ClickOnOk()
Definition: PrimitiveGUI_ConeDlg.cxx:220
double getHeight() const
Definition: PrimitiveGUI_ConeDlg.cxx:480
void enterEvent(QEvent *)
Definition: PrimitiveGUI_ConeDlg.cxx:353
GenericObjPtr< GEOM::GEOM_Object > GeomObjPtr
Definition: GEOM_GenericObjPtr.h:218