-// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
//
// 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
-// version 2.1 of the License.
+// 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
#define SMESHGUI_MESHINFO_H
#include "SMESH_SMESHGUI.hxx"
-#include <SALOME_InteractiveObject.hxx>
#include "SMESH_ControlsDef.hxx"
#include <Plot2d_Histogram.h>
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SMESH_Mesh)
#include CORBA_SERVER_HEADER(SMESH_Group)
+#include CORBA_SERVER_HEADER(SMESH_Filter)
+
+#include <SALOME_InteractiveObject.hxx>
+#include <SALOME_GenericObj_wrap.hxx>
+class QAbstractButton;
class QButtonGroup;
class QContextMenuEvent;
class QLabel;
class QPushButton;
class QTabWidget;
class QTextBrowser;
+class QGridLayout;
class SMESH_Actor;
class SMDS_MeshNode;
class SMDS_MeshElement;
+class SMESHGUI_SpinBox;
class ExtraWidget;
iSingle = 1,
iTotal = iSingle,
iLinear,
- iQuadratic
+ iQuadratic,
+ iBiQuadratic
};
typedef QList<QWidget*> wlist;
protected:
void contextMenuEvent( QContextMenuEvent* e );
void information( const QList<long>& );
+ void nodeInfo( const SMDS_MeshNode*, int, int, QTreeWidgetItem* );
void clearInternal();
private slots:
SMESHGUI_CtrlInfo( QWidget* = 0 );
~SMESHGUI_CtrlInfo();
- void showInfo( SMESH::SMESH_IDSource_ptr );
- void saveInfo( QTextStream &out );
+ void showInfo( SMESH::SMESH_IDSource_ptr );
+ void saveInfo( QTextStream &out );
private:
- QLabel* createField();
- QwtPlot* createPlot( QWidget* );
- void setFontAttributes( QWidget* );
- void clearInternal();
- int nbElemsControl( SMESH::long_array_var&, SMESH::Controls::FunctorPtr );
- Plot2d_Histogram* getHistogram( SMESH::long_array_var&, SMESH::Controls::NumericalFunctorPtr );
+ enum ObjectType { Mesh, SubMesh, Group };
+ QLabel* createField();
+ QwtPlot* createPlot( QWidget* );
+ void setFontAttributes( QWidget* );
+ void clearInternal();
+ Plot2d_Histogram* getHistogram( SMESH::NumericalFunctor_ptr functor );
+ void computeNb( int ft, int iBut, int iWdg );
private slots:
- void computeFaceInfo();
- void computeVolumeInfo();
+ void computeAspectRatio();
+ void computeAspectRatio3D();
+ void computeFreeNodesInfo();
+ void computeDoubleNodesInfo();
+ void computeDoubleEdgesInfo();
+ void computeDoubleFacesInfo();
+ void computeOverConstrainedFacesInfo();
+ void computeDoubleVolumesInfo();
+ void computeOverConstrainedVolumesInfo();
+ void setTolerance( const double theTolerance );
+
private:
- QList<QLabel*> myWidgets;
- QwtPlot* myPlot;
- QwtPlot* myPlot3D;
- QPushButton* myComputeFaceBtn;
- QPushButton* myComputeVolumeBtn;
+ typedef SALOME::GenericObj_wrap< SMESH::Predicate > TPredicate;
+ typedef SALOME::GenericObj_wrap< SMESH::NumericalFunctor > TNumFunctor;
+ SMESH::SMESH_IDSource_var myObject;
+ ObjectType myObjectType;
+ SMESHGUI_SpinBox* myToleranceWidget;
+ QList<QLabel*> myWidgets;
+ QGridLayout* myMainLayout;
+ QwtPlot* myPlot;
+ QwtPlot* myPlot3D;
+ QList<QAbstractButton*> myButtons;
+ QList<TPredicate> myPredicates;
+ TNumFunctor myAspectRatio, myAspectRatio3D;
};
class SMESHGUI_EXPORT SMESHGUI_MeshInfoDlg : public QDialog
void activate();
void deactivate();
void updateSelection();
+ void help();
+ void dump();
private:
SMESHGUI_CtrlInfo* myCtrlInfo;