+class SMESHGUI_EXPORT SMESHGUI_CtrlInfo : public QFrame
+{
+ Q_OBJECT;
+
+public:
+ SMESHGUI_CtrlInfo( QWidget* = 0 );
+ ~SMESHGUI_CtrlInfo();
+
+ void showInfo( SMESH::SMESH_IDSource_ptr );
+ void saveInfo( QTextStream &out );
+
+private:
+ 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 computeAspectRatio();
+ void computeAspectRatio3D();
+ void computeFreeNodesInfo();
+ void computeDoubleNodesInfo();
+ void computeDoubleEdgesInfo();
+ void computeDoubleFacesInfo();
+ void computeOverConstrainedFacesInfo();
+ void computeDoubleVolumesInfo();
+ void computeOverConstrainedVolumesInfo();
+ void setTolerance( const double theTolerance );
+
+
+private:
+ 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;
+};
+