Version: 9.12.0
RepairGUI_InspectObjectDlg.h
Go to the documentation of this file.
1 // Copyright (C) 2014-2023 CEA, EDF, OPEN CASCADE
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 
20 #ifndef RepairGUI_InspectObjectDlg_H
21 #define RepairGUI_InspectObjectDlg_H
22 
23 // GEOM includes
24 #include <GEOMBase_Helper.h>
25 
26 // Qt includes
27 #include <QDialog>
28 #include <QPointer>
29 #include <QIcon>
30 
31 // OCCT includes
32 #include <TopTools_IndexedMapOfShape.hxx>
33 
34 class GeometryGUI;
35 class SalomeApp_DoubleSpinBox;
36 
37 class QButtonGroup;
38 class QComboBox;
39 class QGroupBox;
40 class QLabel;
41 class QLineEdit;
42 class QPushButton;
43 class QStackedLayout;
44 class QTreeWidget;
45 class QTreeWidgetItem;
46 
48 {
49  Q_OBJECT
50 
51  class TreeWidgetItem;
52  class Delegate;
53 
54 public:
55  RepairGUI_InspectObjectDlg(GeometryGUI*, SUIT_Desktop* );
57 
58 private slots:
59  void onEditMainShape();
60 
61  void onItemClicked( QTreeWidgetItem*, int );
62  void onItemChanged( QTreeWidgetItem*, int );
65  void onHeaderClicked( int );
66 
68 
69  void onWindowActivated( SUIT_ViewWindow* );
70  void onCloseView( SUIT_ViewWindow* );
71 
72  void clickOnShow();
73  void clickOnShowOnly();
74  void clickOnHide();
75  void clickOnPublish();
76  void clickOnHelp();
77  void clickOnResetToMin();
78  void clickOnResetToMax();
79  void clickOnShowAll();
80  void clickOnHideAll();
82  void ActivateThisDialog();
83  void onFilterToggled(bool);
84  void onInitFilteredData();
85  void onFilterData();
86 
87 private:
88  void createTreeWidget(QTreeWidget *&theTreeObjects);
89  void init();
90  void initSpinBox(SalomeApp_DoubleSpinBox* spinBox,
91  double min, double max,
92  double step, const char* quantity);
93  void initTreeWidget(QTreeWidget *theTopLevelItem);
94  void enterEvent( QEvent* );
95  void checkVisibleIcon();
96  void addSubObjects( TreeWidgetItem*, const TopTools_IndexedMapOfShape &);
97 
98  void displayItem( TreeWidgetItem* );
99  void setItemDisplayStatus( TreeWidgetItem* theItem, bool theIsVisible );
100  void setMainObjectTransparency( double );
101  void restoreParam();
102  void updateViewer(const bool theIsHideOtherTree);
103 
104  QPointer<SUIT_ViewWindow> myViewWindow;
106 
107  QIcon myVisible;
108  QIcon myInvisible;
109 
113  QLineEdit *myEditMainShape;
115  QButtonGroup *myShapeTypeBtnGrp;
116  QComboBox *myComparisonCompo;
117  SalomeApp_DoubleSpinBox *myTolEdit;
120  QStackedLayout *myTreesLayout;
121  QPushButton *myMinTolResetBtn;
122  QPushButton *myMaxTolResetBtn;
123  double myMaxTol;
124  double myMinTol;
127 
128 };
129 
130 #endif
Definition: GEOMBase_Helper.h:62
void updateViewer()
Definition: GEOMBase_Helper.cxx:682
Definition: GeometryGUI.h:74
Definition: RepairGUI_InspectObjectDlg.cxx:192
Definition: RepairGUI_InspectObjectDlg.cxx:86
Definition: RepairGUI_InspectObjectDlg.h:48
QIcon myVisible
Definition: RepairGUI_InspectObjectDlg.h:107
QLineEdit * myEditMainShape
Definition: RepairGUI_InspectObjectDlg.h:113
void clickOnHelp()
Definition: RepairGUI_InspectObjectDlg.cxx:1228
~RepairGUI_InspectObjectDlg()
Definition: RepairGUI_InspectObjectDlg.cxx:393
void setMainObjectTransparency(double)
Definition: RepairGUI_InspectObjectDlg.cxx:804
void restoreParam()
Definition: RepairGUI_InspectObjectDlg.cxx:828
QButtonGroup * myShapeTypeBtnGrp
Definition: RepairGUI_InspectObjectDlg.h:115
void initTreeWidget(QTreeWidget *theTopLevelItem)
Definition: RepairGUI_InspectObjectDlg.cxx:508
QLabel * myMinTolValLabel
Definition: RepairGUI_InspectObjectDlg.h:118
QPushButton * myMaxTolResetBtn
Definition: RepairGUI_InspectObjectDlg.h:122
QIcon myInvisible
Definition: RepairGUI_InspectObjectDlg.h:108
bool myIsSelectAll
Definition: RepairGUI_InspectObjectDlg.h:125
QPushButton * myMinTolResetBtn
Definition: RepairGUI_InspectObjectDlg.h:121
void displayItem(TreeWidgetItem *)
Definition: RepairGUI_InspectObjectDlg.cxx:767
void onItemExpanded(QTreeWidgetItem *)
Definition: RepairGUI_InspectObjectDlg.cxx:920
void onFilterData()
Definition: RepairGUI_InspectObjectDlg.cxx:718
void onItemChanged(QTreeWidgetItem *, int)
Definition: RepairGUI_InspectObjectDlg.cxx:901
void onFilterToggled(bool)
Definition: RepairGUI_InspectObjectDlg.cxx:1309
double myMaxTol
Definition: RepairGUI_InspectObjectDlg.h:123
QPointer< SUIT_ViewWindow > myViewWindow
Definition: RepairGUI_InspectObjectDlg.h:104
void createTreeWidget(QTreeWidget *&theTreeObjects)
Definition: RepairGUI_InspectObjectDlg.cxx:407
void onCloseView(SUIT_ViewWindow *)
Definition: RepairGUI_InspectObjectDlg.cxx:1105
void clickOnShow()
Definition: RepairGUI_InspectObjectDlg.cxx:1117
void initSpinBox(SalomeApp_DoubleSpinBox *spinBox, double min, double max, double step, const char *quantity)
Definition: RepairGUI_InspectObjectDlg.cxx:484
QLabel * myMaxTolValLabel
Definition: RepairGUI_InspectObjectDlg.h:119
void onWindowActivated(SUIT_ViewWindow *)
Definition: RepairGUI_InspectObjectDlg.cxx:1075
void clickOnHide()
Definition: RepairGUI_InspectObjectDlg.cxx:1163
void enterEvent(QEvent *)
Definition: RepairGUI_InspectObjectDlg.cxx:527
void setItemDisplayStatus(TreeWidgetItem *theItem, bool theIsVisible)
Definition: RepairGUI_InspectObjectDlg.cxx:789
double myTransparency
Definition: RepairGUI_InspectObjectDlg.h:126
void ActivateThisDialog()
Definition: RepairGUI_InspectObjectDlg.cxx:1292
void DeactivateActiveDialog()
Definition: RepairGUI_InspectObjectDlg.cxx:1279
SalomeApp_DoubleSpinBox * myTolEdit
Definition: RepairGUI_InspectObjectDlg.h:117
QTreeWidget * myCurrentTreeObjects
Definition: RepairGUI_InspectObjectDlg.h:112
QTreeWidget * myFilteredTreeObjects
Definition: RepairGUI_InspectObjectDlg.h:111
QGroupBox * myTolFilterGrp
Definition: RepairGUI_InspectObjectDlg.h:114
void checkVisibleIcon()
Definition: RepairGUI_InspectObjectDlg.cxx:537
double myMinTol
Definition: RepairGUI_InspectObjectDlg.h:124
GeometryGUI * myGeomGUI
Definition: RepairGUI_InspectObjectDlg.h:105
void clickOnResetToMin()
Definition: RepairGUI_InspectObjectDlg.cxx:1237
void onViewSelectionChanged()
Definition: RepairGUI_InspectObjectDlg.cxx:1005
void clickOnShowAll()
Definition: RepairGUI_InspectObjectDlg.cxx:1259
void clickOnResetToMax()
Definition: RepairGUI_InspectObjectDlg.cxx:1248
void clickOnHideAll()
Definition: RepairGUI_InspectObjectDlg.cxx:1269
void onItemSelectionChanged()
Definition: RepairGUI_InspectObjectDlg.cxx:942
QComboBox * myComparisonCompo
Definition: RepairGUI_InspectObjectDlg.h:116
void clickOnShowOnly()
Definition: RepairGUI_InspectObjectDlg.cxx:1138
RepairGUI_InspectObjectDlg(GeometryGUI *, SUIT_Desktop *)
Definition: RepairGUI_InspectObjectDlg.cxx:239
void onItemClicked(QTreeWidgetItem *, int)
Definition: RepairGUI_InspectObjectDlg.cxx:876
QStackedLayout * myTreesLayout
Definition: RepairGUI_InspectObjectDlg.h:120
void onHeaderClicked(int)
Definition: RepairGUI_InspectObjectDlg.cxx:960
void clickOnPublish()
Definition: RepairGUI_InspectObjectDlg.cxx:1184
void init()
Definition: RepairGUI_InspectObjectDlg.cxx:434
void onEditMainShape()
Definition: RepairGUI_InspectObjectDlg.cxx:857
void addSubObjects(TreeWidgetItem *, const TopTools_IndexedMapOfShape &)
Definition: RepairGUI_InspectObjectDlg.cxx:565
void onInitFilteredData()
Definition: RepairGUI_InspectObjectDlg.cxx:584
QTreeWidget * myTreeObjects
Definition: RepairGUI_InspectObjectDlg.h:110