Version: 8.3.0
SMESHGUI_CtrlInfo Class Reference

Class for the mesh controls information widget. More...

#include <SMESHGUI_MeshInfo.h>

Inheritance diagram for SMESHGUI_CtrlInfo:

Public Member Functions

 SMESHGUI_CtrlInfo (QWidget *=0)
 Constructor. More...
 
 ~SMESHGUI_CtrlInfo ()
 Destructor. More...
 
void showInfo (SMESH::SMESH_IDSource_ptr)
 Show controls information on the selected object. More...
 
void saveInfo (QTextStream &out)
 

Private Types

enum  ObjectType { Mesh, SubMesh, Group }
 
typedef
SALOME::GenericObj_wrap
< SMESH::Predicate
TPredicate
 
typedef
SALOME::GenericObj_wrap
< SMESH::NumericalFunctor
TNumFunctor
 

Private Slots

void computeAspectRatio ()
 
void computeAspectRatio3D ()
 
void computeFreeNodesInfo ()
 
void computeNodesNbConnInfo ()
 
void computeDoubleNodesInfo ()
 
void computeDoubleEdgesInfo ()
 
void computeDoubleFacesInfo ()
 
void computeOverConstrainedFacesInfo ()
 
void computeDoubleVolumesInfo ()
 
void computeOverConstrainedVolumesInfo ()
 
void setTolerance (const double theTolerance)
 

Private Member Functions

QLabel * createField ()
 Create info field. More...
 
QwtPlotcreatePlot (QWidget *)
 Create QwtPlot. More...
 
void setFontAttributes (QWidget *)
 Change widget font attributes (bold, ...). More...
 
void clearInternal ()
 Internal clean-up (reset widget) More...
 
Plot2d_Histogram * getHistogram (SMESH::NumericalFunctor_ptr functor)
 
void computeNb (int ft, int iBut, int iWdg)
 Computes and shows nb of elements satisfying a given predicate. More...
 

Private Attributes

SMESH::SMESH_IDSource_var myObject
 
ObjectType myObjectType
 
SMESHGUI_SpinBoxmyToleranceWidget
 
QList< QLabel * > myWidgets
 
QGridLayout * myMainLayout
 
QwtPlotmyPlot
 
QwtPlotmyPlot3D
 
QList< QAbstractButton * > myButtons
 
QList< TPredicatemyPredicates
 
TNumFunctor myAspectRatio
 
TNumFunctor myAspectRatio3D
 
TNumFunctor myNodeConnFunctor
 

Detailed Description

Class for the mesh controls information widget.

Member Typedef Documentation

typedef SALOME::GenericObj_wrap< SMESH::NumericalFunctor > SMESHGUI_CtrlInfo::TNumFunctor
private
typedef SALOME::GenericObj_wrap< SMESH::Predicate > SMESHGUI_CtrlInfo::TPredicate
private

Member Enumeration Documentation

Enumerator
Mesh 
SubMesh 
Group 

Constructor & Destructor Documentation

SMESHGUI_CtrlInfo::~SMESHGUI_CtrlInfo ( )

Destructor.

Member Function Documentation

void SMESHGUI_CtrlInfo::clearInternal ( )
private

Internal clean-up (reset widget)

References myButtons, myMainLayout, myPlot, myPlot3D, and myWidgets.

Referenced by showInfo(), and SMESHGUI_CtrlInfo().

void SMESHGUI_CtrlInfo::computeAspectRatio ( )
privateslot
void SMESHGUI_CtrlInfo::computeAspectRatio3D ( )
privateslot
void SMESHGUI_CtrlInfo::computeDoubleEdgesInfo ( )
privateslot

References computeNb(), and SMESH::FT_EqualEdges.

Referenced by showInfo(), and SMESHGUI_CtrlInfo().

void SMESHGUI_CtrlInfo::computeDoubleFacesInfo ( )
privateslot

References computeNb(), and SMESH::FT_EqualFaces.

Referenced by showInfo(), and SMESHGUI_CtrlInfo().

void SMESHGUI_CtrlInfo::computeDoubleNodesInfo ( )
privateslot

References computeNb(), and SMESH::FT_EqualNodes.

Referenced by showInfo(), and SMESHGUI_CtrlInfo().

void SMESHGUI_CtrlInfo::computeDoubleVolumesInfo ( )
privateslot

References computeNb(), and SMESH::FT_EqualVolumes.

Referenced by showInfo(), and SMESHGUI_CtrlInfo().

void SMESHGUI_CtrlInfo::computeFreeNodesInfo ( )
privateslot

References computeNb(), and SMESH::FT_FreeNodes.

Referenced by showInfo(), and SMESHGUI_CtrlInfo().

void SMESHGUI_CtrlInfo::computeNb ( int  ft,
int  iBut,
int  iWdg 
)
private

Computes and shows nb of elements satisfying a given predicate.

Parameters
[in]ft- a predicate type (SMESH::FunctorType)
[in]iBut- index of one of myButtons to disable
[in]iWdg- index of one of myWidgets to show the computed number

References myButtons, myObject, myPredicates, myWidgets, and showInfo().

Referenced by computeDoubleEdgesInfo(), computeDoubleFacesInfo(), computeDoubleNodesInfo(), computeDoubleVolumesInfo(), computeFreeNodesInfo(), computeOverConstrainedFacesInfo(), and computeOverConstrainedVolumesInfo().

void SMESHGUI_CtrlInfo::computeNodesNbConnInfo ( )
privateslot
void SMESHGUI_CtrlInfo::computeOverConstrainedFacesInfo ( )
privateslot
void SMESHGUI_CtrlInfo::computeOverConstrainedVolumesInfo ( )
privateslot
QLabel * SMESHGUI_CtrlInfo::createField ( )
private

Create info field.

Returns
new info field

Referenced by SMESHGUI_CtrlInfo().

QwtPlot * SMESHGUI_CtrlInfo::createPlot ( QWidget parent)
private

Create QwtPlot.

Returns
new QwtPlot

Referenced by SMESHGUI_CtrlInfo().

Plot2d_Histogram * SMESHGUI_CtrlInfo::getHistogram ( SMESH::NumericalFunctor_ptr  functor)
private
void SMESHGUI_CtrlInfo::saveInfo ( QTextStream &  out)
void SMESHGUI_CtrlInfo::setFontAttributes ( QWidget w)
private

Change widget font attributes (bold, ...).

Parameters
wwidget
attrfont attributes (XORed flags)

Referenced by SMESHGUI_CtrlInfo().

void SMESHGUI_CtrlInfo::setTolerance ( const double  theTolerance)
privateslot

References myButtons, and myWidgets.

Referenced by SMESHGUI_CtrlInfo().

Field Documentation

TNumFunctor SMESHGUI_CtrlInfo::myAspectRatio
private
TNumFunctor SMESHGUI_CtrlInfo::myAspectRatio3D
private
QList<QAbstractButton*> SMESHGUI_CtrlInfo::myButtons
private
QGridLayout* SMESHGUI_CtrlInfo::myMainLayout
private
TNumFunctor SMESHGUI_CtrlInfo::myNodeConnFunctor
private
SMESH::SMESH_IDSource_var SMESHGUI_CtrlInfo::myObject
private
ObjectType SMESHGUI_CtrlInfo::myObjectType
private
QwtPlot* SMESHGUI_CtrlInfo::myPlot
private
QwtPlot* SMESHGUI_CtrlInfo::myPlot3D
private
QList<TPredicate> SMESHGUI_CtrlInfo::myPredicates
private

Referenced by computeNb(), and SMESHGUI_CtrlInfo().

SMESHGUI_SpinBox* SMESHGUI_CtrlInfo::myToleranceWidget
private

Referenced by SMESHGUI_CtrlInfo().

QList<QLabel*> SMESHGUI_CtrlInfo::myWidgets
private