mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-14 21:00:37 +05:00
131 lines
4.5 KiB
C++
131 lines
4.5 KiB
C++
// Copyright (C) 2014-2020 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
//
|
|
// This library is free software; you can redistribute it and/or
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
// License as published by the Free Software Foundation; either
|
|
// version 2.1 of the License, or (at your option) any later version.
|
|
//
|
|
// This library is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
// Lesser General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
// License along with this library; if not, write to the Free Software
|
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
//
|
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
|
//
|
|
|
|
#ifndef RepairGUI_InspectObjectDlg_H
|
|
#define RepairGUI_InspectObjectDlg_H
|
|
|
|
// GEOM includes
|
|
#include <GEOMBase_Helper.h>
|
|
|
|
// Qt includes
|
|
#include <QDialog>
|
|
#include <QPointer>
|
|
#include <QIcon>
|
|
|
|
// OCCT includes
|
|
#include <TopTools_IndexedMapOfShape.hxx>
|
|
|
|
class GeometryGUI;
|
|
class SalomeApp_DoubleSpinBox;
|
|
|
|
class QButtonGroup;
|
|
class QComboBox;
|
|
class QGroupBox;
|
|
class QLabel;
|
|
class QLineEdit;
|
|
class QPushButton;
|
|
class QStackedLayout;
|
|
class QTreeWidget;
|
|
class QTreeWidgetItem;
|
|
|
|
class RepairGUI_InspectObjectDlg : public QDialog, public GEOMBase_Helper
|
|
{
|
|
Q_OBJECT
|
|
|
|
class TreeWidgetItem;
|
|
class Delegate;
|
|
|
|
public:
|
|
RepairGUI_InspectObjectDlg(GeometryGUI*, SUIT_Desktop* );
|
|
~RepairGUI_InspectObjectDlg();
|
|
|
|
private slots:
|
|
void onEditMainShape();
|
|
|
|
void onItemClicked( QTreeWidgetItem*, int );
|
|
void onItemChanged( QTreeWidgetItem*, int );
|
|
void onItemSelectionChanged();
|
|
void onItemExpanded( QTreeWidgetItem* );
|
|
void onHeaderClicked( int );
|
|
|
|
void onViewSelectionChanged();
|
|
|
|
void onWindowActivated( SUIT_ViewWindow* );
|
|
void onCloseView( SUIT_ViewWindow* );
|
|
|
|
void clickOnShow();
|
|
void clickOnShowOnly();
|
|
void clickOnHide();
|
|
void clickOnPublish();
|
|
void clickOnHelp();
|
|
void clickOnResetToMin();
|
|
void clickOnResetToMax();
|
|
void clickOnShowAll();
|
|
void clickOnHideAll();
|
|
void DeactivateActiveDialog();
|
|
void ActivateThisDialog();
|
|
void onFilterToggled(bool);
|
|
void onInitFilteredData();
|
|
void onFilterData();
|
|
|
|
private:
|
|
void createTreeWidget(QTreeWidget *&theTreeObjects);
|
|
void init();
|
|
void initSpinBox(SalomeApp_DoubleSpinBox* spinBox,
|
|
double min, double max,
|
|
double step, const char* quantity);
|
|
void initTreeWidget(QTreeWidget *theTopLevelItem);
|
|
void enterEvent( QEvent* );
|
|
void checkVisibleIcon();
|
|
void addSubObjects( TreeWidgetItem*, const TopTools_IndexedMapOfShape &);
|
|
|
|
void displayItem( TreeWidgetItem* );
|
|
void setItemDisplayStatus( TreeWidgetItem* theItem, bool theIsVisible );
|
|
void setMainObjectTransparency( double );
|
|
void restoreParam();
|
|
void updateViewer(const bool theIsHideOtherTree);
|
|
|
|
QPointer<SUIT_ViewWindow> myViewWindow;
|
|
GeometryGUI* myGeomGUI;
|
|
|
|
QIcon myVisible;
|
|
QIcon myInvisible;
|
|
|
|
QTreeWidget *myTreeObjects;
|
|
QTreeWidget *myFilteredTreeObjects;
|
|
QTreeWidget *myCurrentTreeObjects;
|
|
QLineEdit *myEditMainShape;
|
|
QGroupBox *myTolFilterGrp;
|
|
QButtonGroup *myShapeTypeBtnGrp;
|
|
QComboBox *myComparisonCompo;
|
|
SalomeApp_DoubleSpinBox *myTolEdit;
|
|
QLabel *myMinTolValLabel;
|
|
QLabel *myMaxTolValLabel;
|
|
QStackedLayout *myTreesLayout;
|
|
QPushButton *myMinTolResetBtn;
|
|
QPushButton *myMaxTolResetBtn;
|
|
double myMaxTol;
|
|
double myMinTol;
|
|
bool myIsSelectAll;
|
|
double myTransparency;
|
|
|
|
};
|
|
|
|
#endif
|