Version: 9.16.0
SMESHGUI_CtrlInfo Class Reference

Show quality statistics information on selected object. 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 (const SMESH::SelectionProxy &)
 Show information on given object. More...
 
void saveInfo (QTextStream &)
 

Private Types

enum  ObjectType { Mesh , SubMesh , Group }
 
typedef SALOME::GenericObj_wrap< SMESH::PredicateTPredicate
 
typedef SALOME::GenericObj_wrap< SMESH::NumericalFunctorTNumFunctor
 

Private Slots

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

Private Member Functions

QwtPlotcreatePlot (QWidget *)
 Create plot widget. More...
 
void clearInternal ()
 Internal clean-up (reset widget) More...
 
Plot2d_Histogram * getHistogram (SMESH::NumericalFunctor_ptr)
 
void computeNb (int, int, int)
 Computes and shows nb of elements satisfying a given predicate. More...
 

Private Attributes

SMESH::SelectionProxy myProxy
 
ObjectType myObjectType
 
SMESHGUI_SpinBoxmyToleranceWidget
 
QList< QLabel * > myWidgets
 
QToolBox * myMeshTB
 
QwtPlotmyPlot
 
QwtPlotmyPlot3D
 
QList< QAbstractButton * > myButtons
 
QList< TPredicatemyPredicates
 
TNumFunctor myAspectRatio
 
TNumFunctor myAspectRatio3D
 
TNumFunctor myNodeConnFunctor
 

Detailed Description

Show quality statistics information on selected object.

Displays quality controls statistics about selected object: mesh, sub-mesh, group or arbitrary ID source.

Member Typedef Documentation

◆ TNumFunctor

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

◆ TPredicate

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

Member Enumeration Documentation

◆ ObjectType

Enumerator
Mesh 
SubMesh 
Group 

Constructor & Destructor Documentation

◆ SMESHGUI_CtrlInfo()

◆ ~SMESHGUI_CtrlInfo()

SMESHGUI_CtrlInfo::~SMESHGUI_CtrlInfo ( )

Destructor.

Member Function Documentation

◆ clearInternal()

void SMESHGUI_CtrlInfo::clearInternal ( )
private

Internal clean-up (reset widget)

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

Referenced by showInfo(), and SMESHGUI_CtrlInfo().

◆ computeAspectRatio

void SMESHGUI_CtrlInfo::computeAspectRatio ( )
privateslot

◆ computeAspectRatio3D

void SMESHGUI_CtrlInfo::computeAspectRatio3D ( )
privateslot

◆ computeDoubleEdgesInfo

void SMESHGUI_CtrlInfo::computeDoubleEdgesInfo ( )
privateslot

References computeNb(), and SMESH::FT_EqualEdges.

Referenced by showInfo(), and SMESHGUI_CtrlInfo().

◆ computeDoubleFacesInfo

void SMESHGUI_CtrlInfo::computeDoubleFacesInfo ( )
privateslot

References computeNb(), and SMESH::FT_EqualFaces.

Referenced by showInfo(), and SMESHGUI_CtrlInfo().

◆ computeDoubleNodesInfo

void SMESHGUI_CtrlInfo::computeDoubleNodesInfo ( )
privateslot

References computeNb(), and SMESH::FT_EqualNodes.

Referenced by showInfo(), and SMESHGUI_CtrlInfo().

◆ computeDoubleVolumesInfo

void SMESHGUI_CtrlInfo::computeDoubleVolumesInfo ( )
privateslot

References computeNb(), and SMESH::FT_EqualVolumes.

Referenced by showInfo(), and SMESHGUI_CtrlInfo().

◆ computeFreeNodesInfo

void SMESHGUI_CtrlInfo::computeFreeNodesInfo ( )
privateslot

References computeNb(), and SMESH::FT_FreeNodes.

Referenced by showInfo(), and SMESHGUI_CtrlInfo().

◆ computeNb()

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, myPredicates, myProxy, myWidgets, SMESH::SelectionProxy::object(), and showInfo().

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

◆ computeNodesNbConnInfo

void SMESHGUI_CtrlInfo::computeNodesNbConnInfo ( )
privateslot

◆ computeOverConstrainedFacesInfo

void SMESHGUI_CtrlInfo::computeOverConstrainedFacesInfo ( )
privateslot

◆ computeOverConstrainedVolumesInfo

void SMESHGUI_CtrlInfo::computeOverConstrainedVolumesInfo ( )
privateslot

◆ createPlot()

QwtPlot * SMESHGUI_CtrlInfo::createPlot ( QWidget parent)
private

Create plot widget.

Parameters
parentParent widget.
Returns
New plot widget.

Referenced by SMESHGUI_CtrlInfo().

◆ getHistogram()

Plot2d_Histogram * SMESHGUI_CtrlInfo::getHistogram ( SMESH::NumericalFunctor_ptr  aNumFun)
private

◆ saveInfo()

void SMESHGUI_CtrlInfo::saveInfo ( QTextStream &  out)
virtual

◆ setTolerance

void SMESHGUI_CtrlInfo::setTolerance ( double  theTolerance)
privateslot

◆ showInfo()

Field Documentation

◆ myAspectRatio

TNumFunctor SMESHGUI_CtrlInfo::myAspectRatio
private

◆ myAspectRatio3D

TNumFunctor SMESHGUI_CtrlInfo::myAspectRatio3D
private

◆ myButtons

QList<QAbstractButton*> SMESHGUI_CtrlInfo::myButtons
private

◆ myMeshTB

QToolBox* SMESHGUI_CtrlInfo::myMeshTB
private

◆ myNodeConnFunctor

TNumFunctor SMESHGUI_CtrlInfo::myNodeConnFunctor
private

◆ myObjectType

ObjectType SMESHGUI_CtrlInfo::myObjectType
private

◆ myPlot

QwtPlot* SMESHGUI_CtrlInfo::myPlot
private

◆ myPlot3D

QwtPlot* SMESHGUI_CtrlInfo::myPlot3D
private

◆ myPredicates

QList<TPredicate> SMESHGUI_CtrlInfo::myPredicates
private

◆ myProxy

◆ myToleranceWidget

SMESHGUI_SpinBox* SMESHGUI_CtrlInfo::myToleranceWidget
private

Referenced by SMESHGUI_CtrlInfo().

◆ myWidgets

QList<QLabel*> SMESHGUI_CtrlInfo::myWidgets
private