Version: 9.16.0
EntityGUI_SubShapeDlg.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 : EntityGUI_SubShapeDlg.h
25// Author : Lucien PIGNOLONI, Open CASCADE S.A.S.
26
27#ifndef ENTITYGUI_SUBSHAPEDLG_H
28#define ENTITYGUI_SUBSHAPEDLG_H
29
30#include <GEOMBase_Skeleton.h>
31
32#include <TColStd_IndexedMapOfInteger.hxx>
33
34class QCheckBox;
35class QComboBox;
36class QGroupBox;
37class QPushButton;
38class SalomeApp_DoubleSpinBox;
40
41//=================================================================================
42// class : EntityGUI_SubShapeDlg
43// purpose :
44//=================================================================================
46{
47 Q_OBJECT
48
49public:
50 EntityGUI_SubShapeDlg (GeometryGUI*, QWidget* = 0, bool = false, Qt::WindowFlags = 0);
52
53protected:
54 // redefined from GEOMBase_Helper
55 virtual GEOM::GEOM_IOperations_ptr createOperation();
56 virtual bool isValid (QString&);
57 virtual bool execute (ObjectList&);
58 virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr);
59 virtual QString getNewObjectName (int CurrObj = -1) const;
60 virtual QList<GEOM::GeomObjPtr> getSourceObjects();
61
62 void closeEvent (QCloseEvent*);
63
64private slots:
65 void ClickOnOk();
66 bool ClickOnApply();
67 void ActivateThisDialog();
71 void SubShapeToggled();
72 void ComboTextChanged();
73
74 void showOnlySelected();
75 void ClickOnOkFilter();
76#ifndef DISABLE_PLOT2DVIEWER
77 void ClickOnPlot();
78#endif
79 void MeasureToggled();
80
81private:
82 void Init();
83 void enterEvent (QEvent*);
84
85 void ResetStateOfDialog();
86
87 void activateSelection();
88 int getSelectedSubshapes (TColStd_IndexedMapOfInteger& theMapIndex);
89 void updateButtonState();
90 bool isAllSubShapes() const;
91 int shapeType() const;
92
93private:
94 TopoDS_Shape myShape;
95 GEOM::GEOM_Object_var myObject;
97
99
105 SalomeApp_DoubleSpinBox* myLessFilterSpin;
106 SalomeApp_DoubleSpinBox* myGreaterFilterSpin;
110};
111
112#endif // ENTITYGUI_SUBSHAPEDLG_H
std::list< GEOM::GEOM_Object_ptr > ObjectList
Definition: GEOMBase_Helper.h:46
Definition: DlgRef.h:141
Definition: EntityGUI_SubShapeDlg.h:46
void activateSelection()
Definition: EntityGUI_SubShapeDlg.cxx:727
void ComboTextChanged()
Definition: EntityGUI_SubShapeDlg.cxx:520
void closeEvent(QCloseEvent *)
Definition: EntityGUI_SubShapeDlg.cxx:305
virtual GEOM::GEOM_Object_ptr getFather(GEOM::GEOM_Object_ptr)
Definition: EntityGUI_SubShapeDlg.cxx:888
int shapeType() const
Definition: EntityGUI_SubShapeDlg.cxx:560
int getSelectedSubshapes(TColStd_IndexedMapOfInteger &theMapIndex)
Definition: EntityGUI_SubShapeDlg.cxx:661
void Init()
Definition: EntityGUI_SubShapeDlg.cxx:220
EntityGUI_SubShapeDlg(GeometryGUI *, QWidget *=0, bool=false, Qt::WindowFlags=0)
Definition: EntityGUI_SubShapeDlg.cxx:126
void ActivateThisDialog()
Definition: EntityGUI_SubShapeDlg.cxx:292
QPushButton * myApplyFilterButton
Definition: EntityGUI_SubShapeDlg.h:107
SalomeApp_DoubleSpinBox * myLessFilterSpin
Definition: EntityGUI_SubShapeDlg.h:105
QGroupBox * myFilterGrp
Definition: EntityGUI_SubShapeDlg.h:109
GEOM::GEOM_Object_var myObject
Definition: EntityGUI_SubShapeDlg.h:95
void enterEvent(QEvent *)
Definition: EntityGUI_SubShapeDlg.cxx:282
void ClickOnOk()
Definition: EntityGUI_SubShapeDlg.cxx:315
void updateButtonState()
Definition: EntityGUI_SubShapeDlg.cxx:531
TopoDS_Shape myShape
Definition: EntityGUI_SubShapeDlg.h:94
void ClickOnPlot()
Definition: EntityGUI_SubShapeDlg.cxx:964
virtual GEOM::GEOM_IOperations_ptr createOperation()
Definition: EntityGUI_SubShapeDlg.cxx:812
void SubShapeToggled()
Definition: EntityGUI_SubShapeDlg.cxx:497
void SetEditCurrentArgument()
Definition: EntityGUI_SubShapeDlg.cxx:444
QComboBox * myLessFilterCombo
Definition: EntityGUI_SubShapeDlg.h:103
void MeasureToggled()
Definition: EntityGUI_SubShapeDlg.cxx:978
virtual QList< GEOM::GeomObjPtr > getSourceObjects()
Definition: EntityGUI_SubShapeDlg.cxx:991
~EntityGUI_SubShapeDlg()
Definition: EntityGUI_SubShapeDlg.cxx:206
bool myIsHiddenMain
Definition: EntityGUI_SubShapeDlg.h:98
QPushButton * myPlotDistributionButton
Definition: EntityGUI_SubShapeDlg.h:108
virtual bool execute(ObjectList &)
Definition: EntityGUI_SubShapeDlg.cxx:848
QCheckBox * myGreaterFilterCheck
Definition: EntityGUI_SubShapeDlg.h:102
void SelectionIntoArgument()
Definition: EntityGUI_SubShapeDlg.cxx:379
QCheckBox * myLessFilterCheck
Definition: EntityGUI_SubShapeDlg.h:101
virtual QString getNewObjectName(int CurrObj=-1) const
Definition: EntityGUI_SubShapeDlg.cxx:897
void showOnlySelected()
Definition: EntityGUI_SubShapeDlg.cxx:569
SalomeApp_DoubleSpinBox * myGreaterFilterSpin
Definition: EntityGUI_SubShapeDlg.h:106
void ResetStateOfDialog()
Definition: EntityGUI_SubShapeDlg.cxx:473
bool isAllSubShapes() const
Definition: EntityGUI_SubShapeDlg.cxx:551
DlgRef_1Sel1List1Check3Btn * GroupPoints
Definition: EntityGUI_SubShapeDlg.h:100
virtual bool isValid(QString &)
Definition: EntityGUI_SubShapeDlg.cxx:821
void LineEditReturnPressed()
Definition: EntityGUI_SubShapeDlg.cxx:458
int myDmMode
Definition: EntityGUI_SubShapeDlg.h:96
void ClickOnOkFilter()
Definition: EntityGUI_SubShapeDlg.cxx:906
QComboBox * myGreaterFilterCombo
Definition: EntityGUI_SubShapeDlg.h:104
bool ClickOnApply()
Definition: EntityGUI_SubShapeDlg.cxx:347
Definition: GEOMBase_Skeleton.h:53
Definition: GeometryGUI.h:74