2019-02-14 16:55:47 +05:00
|
|
|
// Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE
|
2012-08-09 16:03:55 +06:00
|
|
|
//
|
|
|
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
|
|
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
|
|
|
//
|
|
|
|
// 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
|
2014-02-20 18:25:37 +06:00
|
|
|
// version 2.1 of the License, or (at your option) any later version.
|
2012-08-09 16:03:55 +06:00
|
|
|
//
|
|
|
|
// 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 SMESHGUI_MESHINFO_H
|
|
|
|
#define SMESHGUI_MESHINFO_H
|
|
|
|
|
|
|
|
#include "SMESH_SMESHGUI.hxx"
|
2019-01-28 17:04:53 +05:00
|
|
|
#include "SMESHGUI_SelectionProxy.h"
|
2013-06-19 13:46:33 +06:00
|
|
|
|
2015-06-11 18:21:30 +05:00
|
|
|
#ifndef DISABLE_PLOT2DVIEWER
|
|
|
|
#include <Plot2d_Histogram.h>
|
|
|
|
#else
|
|
|
|
#include <qwt_plot.h>
|
|
|
|
#endif
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QList>
|
|
|
|
#include <QMap>
|
|
|
|
#include <QSet>
|
|
|
|
|
|
|
|
#include <SALOMEconfig.h>
|
2013-07-03 22:02:20 +06:00
|
|
|
#include CORBA_SERVER_HEADER(SMESH_Filter)
|
|
|
|
|
|
|
|
#include <SALOME_InteractiveObject.hxx>
|
|
|
|
#include <SALOME_GenericObj_wrap.hxx>
|
2012-08-09 16:03:55 +06:00
|
|
|
|
2013-06-27 18:35:43 +06:00
|
|
|
class QAbstractButton;
|
2012-08-09 16:03:55 +06:00
|
|
|
class QButtonGroup;
|
2017-02-10 23:20:38 +05:00
|
|
|
class QCheckBox;
|
2013-02-12 20:37:44 +06:00
|
|
|
class QContextMenuEvent;
|
2012-08-09 16:03:55 +06:00
|
|
|
class QLabel;
|
|
|
|
class QLineEdit;
|
|
|
|
class QTabWidget;
|
|
|
|
class QTextBrowser;
|
2019-01-28 17:04:53 +05:00
|
|
|
class QTreeWidget;
|
|
|
|
class QTreeWidgetItem;
|
2012-08-09 16:03:55 +06:00
|
|
|
class SMDS_MeshElement;
|
2017-02-10 23:20:38 +05:00
|
|
|
class SMDS_MeshNode;
|
|
|
|
class SMESHGUI_IdPreview;
|
2013-06-27 18:35:43 +06:00
|
|
|
class SMESHGUI_SpinBox;
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
class ExtraWidget;
|
2019-01-28 17:04:53 +05:00
|
|
|
class GroupCombo;
|
|
|
|
class InfoWriter;
|
2012-08-09 16:03:55 +06:00
|
|
|
|
2019-01-28 17:04:53 +05:00
|
|
|
class SMESHGUI_EXPORT SMESHGUI_Info : public QWidget
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SMESHGUI_Info( QWidget* = 0 );
|
|
|
|
virtual void saveInfo( QTextStream& ) = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
class SMESHGUI_EXPORT SMESHGUI_BaseInfo : public SMESHGUI_Info
|
2012-08-09 16:03:55 +06:00
|
|
|
{
|
|
|
|
Q_OBJECT;
|
|
|
|
|
2019-01-28 17:04:53 +05:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
iStart,
|
|
|
|
iObjectStart = iStart,
|
|
|
|
iName = iObjectStart,
|
2012-08-09 16:03:55 +06:00
|
|
|
iObject,
|
2019-01-28 17:04:53 +05:00
|
|
|
iObjectEnd,
|
|
|
|
iNodesStart = iObjectEnd,
|
2012-08-09 16:03:55 +06:00
|
|
|
iNodes,
|
|
|
|
iNodesEnd,
|
2019-01-28 17:04:53 +05:00
|
|
|
iElementsStart = iNodesEnd,
|
|
|
|
iElementsTitleStart = iElementsStart,
|
|
|
|
iElementsTitle,
|
|
|
|
iElementsTitleEnd,
|
|
|
|
iElementsTotalStart = iElementsTitleEnd,
|
|
|
|
iElementsTotal,
|
|
|
|
iElementsTotalEnd,
|
|
|
|
i0DStart = iElementsTotalEnd,
|
2012-08-09 16:03:55 +06:00
|
|
|
i0D,
|
|
|
|
i0DEnd,
|
|
|
|
iBallsStart = i0DEnd,
|
|
|
|
iBalls,
|
|
|
|
iBallsEnd,
|
2019-01-28 17:04:53 +05:00
|
|
|
i1DStart = iBallsEnd,
|
2012-08-09 16:03:55 +06:00
|
|
|
i1D,
|
|
|
|
i1DEnd,
|
2019-01-28 17:04:53 +05:00
|
|
|
i2DStart = i1DEnd,
|
2012-08-09 16:03:55 +06:00
|
|
|
i2D,
|
|
|
|
i2DTriangles,
|
|
|
|
i2DQuadrangles,
|
|
|
|
i2DPolygons,
|
|
|
|
i2DEnd,
|
2019-01-28 17:04:53 +05:00
|
|
|
i3DStart = i2DEnd,
|
2012-08-09 16:03:55 +06:00
|
|
|
i3D,
|
|
|
|
i3DTetrahedrons,
|
|
|
|
i3DHexahedrons,
|
|
|
|
i3DPyramids,
|
|
|
|
i3DPrisms,
|
|
|
|
i3DHexaPrisms,
|
|
|
|
i3DPolyhedrons,
|
|
|
|
i3DEnd,
|
2019-01-28 17:04:53 +05:00
|
|
|
iElementsEnd = i3DEnd,
|
|
|
|
iEnd,
|
|
|
|
iOther = iEnd
|
2012-08-09 16:03:55 +06:00
|
|
|
};
|
|
|
|
|
2019-01-28 17:04:53 +05:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
iLabel,
|
|
|
|
iSingle,
|
|
|
|
iTotal = iSingle,
|
2012-08-09 16:03:55 +06:00
|
|
|
iLinear,
|
2014-03-21 22:58:45 +06:00
|
|
|
iQuadratic,
|
2019-01-28 17:04:53 +05:00
|
|
|
iBiQuadratic,
|
|
|
|
iNbColumns
|
2012-08-09 16:03:55 +06:00
|
|
|
};
|
|
|
|
|
2019-01-28 17:04:53 +05:00
|
|
|
typedef QMap<int, QWidget*> wlist;
|
|
|
|
typedef QMap<int, wlist> iwlist;
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
public:
|
2019-01-28 17:04:53 +05:00
|
|
|
SMESHGUI_BaseInfo( QWidget* = 0 );
|
|
|
|
~SMESHGUI_BaseInfo();
|
2012-08-09 16:03:55 +06:00
|
|
|
|
2019-01-28 17:04:53 +05:00
|
|
|
void showInfo( const SMESH::SelectionProxy& );
|
|
|
|
void clear();
|
|
|
|
void saveInfo( QTextStream& );
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
private:
|
2019-01-28 17:04:53 +05:00
|
|
|
QWidget* addWidget( QWidget*, int, int, int = 1 );
|
|
|
|
QWidget* widget( int, int ) const;
|
|
|
|
QString value( int, int ) const;
|
|
|
|
void setFieldsVisible( int, int, bool );
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
private slots:
|
2019-01-28 17:04:53 +05:00
|
|
|
void updateInfo();
|
2012-08-09 16:03:55 +06:00
|
|
|
void loadMesh();
|
|
|
|
|
|
|
|
private:
|
2019-01-28 17:04:53 +05:00
|
|
|
iwlist myWidgets;
|
|
|
|
SMESH::SelectionProxy myProxy;
|
2012-08-09 16:03:55 +06:00
|
|
|
};
|
|
|
|
|
2019-01-28 17:04:53 +05:00
|
|
|
class SMESHGUI_EXPORT SMESHGUI_ElemInfo : public SMESHGUI_Info
|
2012-08-09 16:03:55 +06:00
|
|
|
{
|
|
|
|
Q_OBJECT;
|
|
|
|
|
|
|
|
public:
|
|
|
|
SMESHGUI_ElemInfo( QWidget* = 0 );
|
|
|
|
~SMESHGUI_ElemInfo();
|
|
|
|
|
2019-01-28 17:04:53 +05:00
|
|
|
void showInfo( const SMESH::SelectionProxy&, uint, bool );
|
|
|
|
void showInfo( const SMESH::SelectionProxy&, QSet<uint>, bool );
|
|
|
|
void showInfo( const SMESH::SelectionProxy& );
|
|
|
|
void clear();
|
|
|
|
void saveInfo( QTextStream& );
|
2017-02-10 23:20:38 +05:00
|
|
|
|
2012-08-09 16:03:55 +06:00
|
|
|
protected:
|
2019-01-28 17:04:53 +05:00
|
|
|
enum { ShowNone, ShowNodes, ShowElements };
|
2012-08-09 16:03:55 +06:00
|
|
|
|
2019-01-28 17:04:53 +05:00
|
|
|
QWidget* centralWidget() const;
|
2012-08-09 16:03:55 +06:00
|
|
|
|
2019-01-28 17:04:53 +05:00
|
|
|
SMESH::SelectionProxy proxy() const;
|
|
|
|
int what() const;
|
2012-08-09 16:03:55 +06:00
|
|
|
|
2019-01-28 17:04:53 +05:00
|
|
|
QString type2str( int, bool = false );
|
|
|
|
QString stype2str( int );
|
|
|
|
QString etype2str( int );
|
|
|
|
QString ctrl2str( int );
|
|
|
|
void writeInfo( InfoWriter*, const QList<uint>& );
|
|
|
|
virtual void information( const QList<uint>& ) = 0;
|
|
|
|
virtual void clearInternal();
|
2012-08-09 16:03:55 +06:00
|
|
|
|
2013-02-12 20:37:44 +06:00
|
|
|
signals:
|
2019-01-28 17:04:53 +05:00
|
|
|
void itemInfo( int type, const QString& ids );
|
2013-02-12 20:37:44 +06:00
|
|
|
|
2012-08-09 16:03:55 +06:00
|
|
|
private slots:
|
2019-01-28 17:04:53 +05:00
|
|
|
void showPrevious();
|
|
|
|
void showNext();
|
|
|
|
void updateControls();
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
private:
|
2019-01-28 17:04:53 +05:00
|
|
|
QWidget* myFrame;
|
|
|
|
ExtraWidget* myExtra;
|
|
|
|
SMESH::SelectionProxy myProxy;
|
|
|
|
int myWhat;
|
|
|
|
QList<uint> myIDs;
|
|
|
|
int myIndex;
|
2012-08-09 16:03:55 +06:00
|
|
|
};
|
|
|
|
|
|
|
|
class SMESHGUI_EXPORT SMESHGUI_SimpleElemInfo : public SMESHGUI_ElemInfo
|
|
|
|
{
|
2019-01-28 17:04:53 +05:00
|
|
|
Q_OBJECT;
|
2013-02-12 20:37:44 +06:00
|
|
|
|
2012-08-09 16:03:55 +06:00
|
|
|
public:
|
|
|
|
SMESHGUI_SimpleElemInfo( QWidget* = 0 );
|
|
|
|
|
|
|
|
protected:
|
2019-01-28 17:04:53 +05:00
|
|
|
void information( const QList<uint>& );
|
|
|
|
void clearInternal();
|
2012-08-09 16:03:55 +06:00
|
|
|
|
2019-01-28 17:04:53 +05:00
|
|
|
private slots:
|
|
|
|
void connectivityClicked(const QUrl &);
|
|
|
|
|
|
|
|
private:
|
2012-08-09 16:03:55 +06:00
|
|
|
QTextBrowser* myInfo;
|
|
|
|
};
|
|
|
|
|
|
|
|
class SMESHGUI_EXPORT SMESHGUI_TreeElemInfo : public SMESHGUI_ElemInfo
|
|
|
|
{
|
2013-02-12 20:37:44 +06:00
|
|
|
Q_OBJECT;
|
|
|
|
|
2012-08-09 16:03:55 +06:00
|
|
|
class ItemDelegate;
|
2019-01-28 17:04:53 +05:00
|
|
|
class ItemCreator;
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
public:
|
|
|
|
SMESHGUI_TreeElemInfo( QWidget* = 0 );
|
|
|
|
|
|
|
|
protected:
|
2019-01-28 17:04:53 +05:00
|
|
|
void contextMenuEvent( QContextMenuEvent* );
|
|
|
|
void information( const QList<uint>& );
|
|
|
|
void nodeInfo( const SMDS_MeshNode*, int, int, QTreeWidgetItem* );
|
|
|
|
void clearInternal();
|
2012-08-09 16:03:55 +06:00
|
|
|
|
2013-02-12 20:37:44 +06:00
|
|
|
private slots:
|
2019-01-28 17:04:53 +05:00
|
|
|
void itemDoubleClicked( QTreeWidgetItem*, int );
|
|
|
|
void saveExpanded( QTreeWidgetItem* );
|
|
|
|
|
2012-08-09 16:03:55 +06:00
|
|
|
private:
|
|
|
|
QTreeWidgetItem* createItem( QTreeWidgetItem* = 0, int = 0 );
|
2017-03-02 19:22:58 +05:00
|
|
|
QString expandedResource( QTreeWidgetItem* );
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
private:
|
2019-01-28 17:04:53 +05:00
|
|
|
QTreeWidget* myInfo;
|
2012-08-09 16:03:55 +06:00
|
|
|
};
|
|
|
|
|
2019-01-28 17:04:53 +05:00
|
|
|
class InfoComputor: public QObject
|
2012-08-09 16:03:55 +06:00
|
|
|
{
|
|
|
|
Q_OBJECT;
|
|
|
|
|
|
|
|
public:
|
2019-01-28 17:04:53 +05:00
|
|
|
enum { GrpSize, GrpNbNodes };
|
|
|
|
|
|
|
|
InfoComputor( QObject*, const SMESH::SelectionProxy&, int );
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void computed();
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void compute();
|
|
|
|
|
|
|
|
private:
|
2019-01-28 17:04:53 +05:00
|
|
|
SMESH::SelectionProxy myProxy;
|
|
|
|
int myOperation;
|
2012-08-09 16:03:55 +06:00
|
|
|
};
|
|
|
|
|
2019-01-28 17:04:53 +05:00
|
|
|
class SMESHGUI_EXPORT SMESHGUI_AddInfo : public SMESHGUI_Info
|
2012-08-09 16:03:55 +06:00
|
|
|
{
|
|
|
|
Q_OBJECT;
|
|
|
|
|
|
|
|
public:
|
|
|
|
SMESHGUI_AddInfo( QWidget* = 0 );
|
|
|
|
~SMESHGUI_AddInfo();
|
|
|
|
|
2019-01-28 17:04:53 +05:00
|
|
|
void showInfo( const SMESH::SelectionProxy& );
|
|
|
|
void clear();
|
|
|
|
void saveInfo( QTextStream& );
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
private slots:
|
2019-01-28 17:04:53 +05:00
|
|
|
void updateInfo();
|
|
|
|
void showPreviousGroups();
|
|
|
|
void showNextGroups();
|
|
|
|
void showPreviousSubMeshes();
|
|
|
|
void showNextSubMeshes();
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
private:
|
|
|
|
QTreeWidgetItem* createItem( QTreeWidgetItem* = 0, int = 0 );
|
2019-01-28 17:04:53 +05:00
|
|
|
void meshInfo( const SMESH::SelectionProxy&, QTreeWidgetItem* );
|
|
|
|
void subMeshInfo( const SMESH::SelectionProxy&, QTreeWidgetItem* );
|
|
|
|
void groupInfo( const SMESH::SelectionProxy&, QTreeWidgetItem* );
|
2012-08-09 16:03:55 +06:00
|
|
|
|
2019-01-28 17:04:53 +05:00
|
|
|
void showGroups();
|
|
|
|
void showSubMeshes();
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
private:
|
2019-01-28 17:04:53 +05:00
|
|
|
SMESH::SelectionProxy myProxy;
|
|
|
|
QTreeWidget* myTree;
|
|
|
|
QList<InfoComputor*> myComputors;
|
|
|
|
QList<SMESH::SelectionProxy> myGroups;
|
|
|
|
QList<SMESH::SelectionProxy> mySubMeshes;
|
2012-08-09 16:03:55 +06:00
|
|
|
};
|
|
|
|
|
2019-01-28 17:04:53 +05:00
|
|
|
class SMESHGUI_EXPORT SMESHGUI_CtrlInfo : public SMESHGUI_Info
|
2013-06-19 13:46:33 +06:00
|
|
|
{
|
|
|
|
Q_OBJECT;
|
|
|
|
|
|
|
|
public:
|
|
|
|
SMESHGUI_CtrlInfo( QWidget* = 0 );
|
|
|
|
~SMESHGUI_CtrlInfo();
|
|
|
|
|
2019-01-28 17:04:53 +05:00
|
|
|
void showInfo( const SMESH::SelectionProxy& );
|
|
|
|
void saveInfo( QTextStream& );
|
2013-06-19 13:46:33 +06:00
|
|
|
|
|
|
|
private:
|
2013-06-27 18:35:43 +06:00
|
|
|
enum ObjectType { Mesh, SubMesh, Group };
|
2019-01-28 17:04:53 +05:00
|
|
|
QwtPlot* createPlot( QWidget* );
|
|
|
|
void clearInternal();
|
2015-06-11 18:21:30 +05:00
|
|
|
#ifndef DISABLE_PLOT2DVIEWER
|
2019-01-28 17:04:53 +05:00
|
|
|
Plot2d_Histogram* getHistogram( SMESH::NumericalFunctor_ptr );
|
2015-06-11 18:21:30 +05:00
|
|
|
#endif
|
2019-01-28 17:04:53 +05:00
|
|
|
void computeNb( int, int, int );
|
2013-06-19 13:46:33 +06:00
|
|
|
|
|
|
|
private slots:
|
2019-01-28 17:04:53 +05:00
|
|
|
void computeAspectRatio();
|
|
|
|
void computeAspectRatio3D();
|
|
|
|
void computeFreeNodesInfo();
|
|
|
|
void computeNodesNbConnInfo();
|
|
|
|
void computeDoubleNodesInfo();
|
|
|
|
void computeDoubleEdgesInfo();
|
|
|
|
void computeDoubleFacesInfo();
|
|
|
|
void computeOverConstrainedFacesInfo();
|
|
|
|
void computeDoubleVolumesInfo();
|
|
|
|
void computeOverConstrainedVolumesInfo();
|
|
|
|
void setTolerance( double );
|
2013-06-19 13:46:33 +06:00
|
|
|
|
|
|
|
private:
|
2019-01-28 17:04:53 +05:00
|
|
|
typedef SALOME::GenericObj_wrap< SMESH::Predicate > TPredicate;
|
2013-07-03 22:02:20 +06:00
|
|
|
typedef SALOME::GenericObj_wrap< SMESH::NumericalFunctor > TNumFunctor;
|
2019-01-28 17:04:53 +05:00
|
|
|
SMESH::SelectionProxy myProxy;
|
|
|
|
ObjectType myObjectType;
|
|
|
|
SMESHGUI_SpinBox* myToleranceWidget;
|
|
|
|
QList<QLabel*> myWidgets;
|
|
|
|
QwtPlot* myPlot;
|
|
|
|
QwtPlot* myPlot3D;
|
|
|
|
QList<QAbstractButton*> myButtons;
|
|
|
|
QList<TPredicate> myPredicates;
|
|
|
|
TNumFunctor myAspectRatio, myAspectRatio3D, myNodeConnFunctor;
|
2013-06-19 13:46:33 +06:00
|
|
|
};
|
|
|
|
|
2012-08-09 16:03:55 +06:00
|
|
|
class SMESHGUI_EXPORT SMESHGUI_MeshInfoDlg : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT;
|
|
|
|
|
2019-01-28 17:04:53 +05:00
|
|
|
enum { NodeMode, ElemMode, GroupMode };
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
public:
|
|
|
|
//! Information type
|
2019-01-28 17:04:53 +05:00
|
|
|
enum
|
|
|
|
{
|
2012-08-09 16:03:55 +06:00
|
|
|
BaseInfo, //!< base mesh information
|
|
|
|
ElemInfo, //!< mesh element information
|
2013-06-19 13:46:33 +06:00
|
|
|
AddInfo, //!< additional information
|
2019-01-28 17:04:53 +05:00
|
|
|
CtrlInfo //!< controls information
|
2012-08-09 16:03:55 +06:00
|
|
|
};
|
|
|
|
|
|
|
|
SMESHGUI_MeshInfoDlg( QWidget* = 0, int = BaseInfo );
|
|
|
|
~SMESHGUI_MeshInfoDlg();
|
|
|
|
|
|
|
|
void showInfo( const Handle(SALOME_InteractiveObject)& );
|
|
|
|
void reject();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void keyPressEvent( QKeyEvent* );
|
2019-01-28 17:04:53 +05:00
|
|
|
|
|
|
|
signals:
|
|
|
|
void switchMode( int );
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void help();
|
|
|
|
void updateSelection();
|
|
|
|
void updateInfo();
|
|
|
|
void deactivate();
|
|
|
|
void modeChanged();
|
|
|
|
void idChanged();
|
2019-01-28 17:04:53 +05:00
|
|
|
void idPreviewChange( bool );
|
|
|
|
void showItemInfo( int type, const QString& ids );
|
2013-02-12 20:37:44 +06:00
|
|
|
void dump();
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
private:
|
2019-01-28 17:04:53 +05:00
|
|
|
void showInfo( const SMESH::SelectionProxy& );
|
|
|
|
|
|
|
|
SMESH::SelectionProxy myProxy;
|
|
|
|
QTabWidget* myTabWidget;
|
|
|
|
SMESHGUI_BaseInfo* myBaseInfo;
|
|
|
|
SMESHGUI_ElemInfo* myElemInfo;
|
|
|
|
SMESHGUI_AddInfo* myAddInfo;
|
|
|
|
SMESHGUI_CtrlInfo* myCtrlInfo;
|
|
|
|
QButtonGroup* myMode;
|
|
|
|
QLineEdit* myID;
|
|
|
|
QCheckBox* myIDPreviewCheck;
|
|
|
|
GroupCombo* myGroups;
|
|
|
|
SMESHGUI_IdPreview* myIDPreview;
|
2012-08-09 16:03:55 +06:00
|
|
|
};
|
|
|
|
|
2013-06-19 13:46:33 +06:00
|
|
|
class SMESHGUI_EXPORT SMESHGUI_CtrlInfoDlg : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT;
|
|
|
|
|
|
|
|
public:
|
|
|
|
SMESHGUI_CtrlInfoDlg( QWidget* = 0 );
|
|
|
|
~SMESHGUI_CtrlInfoDlg();
|
|
|
|
|
|
|
|
void showInfo( const Handle(SALOME_InteractiveObject)& );
|
|
|
|
void reject();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void updateInfo();
|
|
|
|
void deactivate();
|
|
|
|
void updateSelection();
|
2013-07-23 18:35:23 +06:00
|
|
|
void help();
|
|
|
|
void dump();
|
2013-06-19 13:46:33 +06:00
|
|
|
|
|
|
|
private:
|
2019-01-28 17:04:53 +05:00
|
|
|
void showInfo( const SMESH::SelectionProxy& );
|
|
|
|
|
|
|
|
SMESH::SelectionProxy myProxy;
|
|
|
|
SMESHGUI_CtrlInfo* myCtrlInfo;
|
2013-06-19 13:46:33 +06:00
|
|
|
};
|
|
|
|
|
2012-08-09 16:03:55 +06:00
|
|
|
#endif // SMESHGUI_MESHINFO_H
|