Version: 9.16.0
PrimitiveGUI_SphereDlg.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_SphereDlg.h
25// Author : Lucien PIGNOLONI, Open CASCADE S.A.S.
26//
27#ifndef PRIMITIVEGUI_SPHEREDLG_H
28#define PRIMITIVEGUI_SPHEREDLG_H
29
30#include "GEOMBase_Skeleton.h"
31#include "GEOM_GenericObjPtr.h"
32
34class DlgRef_1Spin;
35
36//=================================================================================
37// class : PrimitiveGUI_SphereDlg
38// purpose :
39//=================================================================================
41{
42 Q_OBJECT
43
44public:
45 PrimitiveGUI_SphereDlg( 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 getRadius() const;
60
61private:
62 GEOM::GeomObjPtr myPoint; /* Center point */
63
66
67private slots:
68 void ClickOnOk();
69 bool ClickOnApply();
70 void ActivateThisDialog();
74 void ConstructorsClicked( int );
76 void SetDoubleSpinBoxStep( double );
77};
78
79#endif // DIALOGBOX_SPHERE_H
std::list< GEOM::GEOM_Object_ptr > ObjectList
Definition: GEOMBase_Helper.h:46
Definition: DlgRef.h:173
Definition: DlgRef.h:303
Definition: GEOMBase_Skeleton.h:53
Definition: GeometryGUI.h:74
Definition: PrimitiveGUI_SphereDlg.h:41
void SetEditCurrentArgument()
Definition: PrimitiveGUI_SphereDlg.cxx:263
void Init()
Definition: PrimitiveGUI_SphereDlg.cxx:106
void ClickOnOk()
Definition: PrimitiveGUI_SphereDlg.cxx:205
DlgRef_1Spin * GroupDimensions
Definition: PrimitiveGUI_SphereDlg.h:65
void SelectionIntoArgument()
Definition: PrimitiveGUI_SphereDlg.cxx:232
virtual bool isValid(QString &)
Definition: PrimitiveGUI_SphereDlg.cxx:336
GEOM::GeomObjPtr myPoint
Definition: PrimitiveGUI_SphereDlg.h:62
virtual void addSubshapesToStudy()
Definition: PrimitiveGUI_SphereDlg.cxx:412
void ValueChangedInSpinBox()
Definition: PrimitiveGUI_SphereDlg.cxx:316
virtual GEOM::GEOM_IOperations_ptr createOperation()
Definition: PrimitiveGUI_SphereDlg.cxx:326
void enterEvent(QEvent *)
Definition: PrimitiveGUI_SphereDlg.cxx:305
DlgRef_1Sel1Spin * GroupPoints
Definition: PrimitiveGUI_SphereDlg.h:64
double getRadius() const
Definition: PrimitiveGUI_SphereDlg.cxx:398
void ActivateThisDialog()
Definition: PrimitiveGUI_SphereDlg.cxx:281
void ConstructorsClicked(int)
Definition: PrimitiveGUI_SphereDlg.cxx:160
void SetDoubleSpinBoxStep(double)
Definition: PrimitiveGUI_SphereDlg.cxx:150
void DeactivateActiveDialog()
Definition: PrimitiveGUI_SphereDlg.cxx:295
virtual QList< GEOM::GeomObjPtr > getSourceObjects()
Definition: PrimitiveGUI_SphereDlg.cxx:423
PrimitiveGUI_SphereDlg(GeometryGUI *, QWidget *=0, bool=false, Qt::WindowFlags=0)
Definition: PrimitiveGUI_SphereDlg.cxx:53
virtual bool execute(ObjectList &)
Definition: PrimitiveGUI_SphereDlg.cxx:350
bool ClickOnApply()
Definition: PrimitiveGUI_SphereDlg.cxx:217
~PrimitiveGUI_SphereDlg()
Definition: PrimitiveGUI_SphereDlg.cxx:96
GenericObjPtr< GEOM::GEOM_Object > GeomObjPtr
Definition: GEOM_GenericObjPtr.h:218