Show quality statistics information on selected object. More...
#include <SMESHGUI_MeshInfo.h>

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::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 (double) |
Private Member Functions | |
| QwtPlot * | createPlot (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_SpinBox * | myToleranceWidget |
| QList< QLabel * > | myWidgets |
| QToolBox * | myMeshTB |
| QwtPlot * | myPlot |
| QwtPlot * | myPlot3D |
| QList< QAbstractButton * > | myButtons |
| QList< TPredicate > | myPredicates |
| TNumFunctor | myAspectRatio |
| TNumFunctor | myAspectRatio3D |
| TNumFunctor | myNodeConnFunctor |
Show quality statistics information on selected object.
Displays quality controls statistics about selected object: mesh, sub-mesh, group or arbitrary ID source.
|
private |
|
private |
|
private |
| SMESHGUI_CtrlInfo::SMESHGUI_CtrlInfo | ( | QWidget * | parent = 0 | ) |
Constructor.
| parent | Parent widget. Defaults to 0. |
References clearInternal(), computeAspectRatio(), computeAspectRatio3D(), computeDoubleEdgesInfo(), computeDoubleFacesInfo(), computeDoubleNodesInfo(), computeDoubleVolumesInfo(), computeFreeNodesInfo(), computeNodesNbConnInfo(), computeOverConstrainedFacesInfo(), computeOverConstrainedVolumesInfo(), createPlot(), SMESH::GetFilterManager(), SMESHGUI_SpinBox::GetValue(), MARGIN, myAspectRatio, myAspectRatio3D, myButtons, myMeshTB, myNodeConnFunctor, myPlot, myPlot3D, myPredicates, myToleranceWidget, myWidgets, SMESHGUI_SpinBox::RangeStepAndValidator(), SMESHGUI::resourceMgr(), setTolerance(), SMESHGUI_SpinBox::SetValue(), and SPACING.
| SMESHGUI_CtrlInfo::~SMESHGUI_CtrlInfo | ( | ) |
Destructor.
|
private |
Internal clean-up (reset widget)
References myButtons, myMeshTB, myPlot, myPlot3D, and myWidgets.
Referenced by showInfo(), and SMESHGUI_CtrlInfo().
|
privateslot |
References getHistogram(), myAspectRatio, myButtons, myPlot, myProxy, and SMESH::SelectionProxy::object().
Referenced by showInfo(), and SMESHGUI_CtrlInfo().
|
privateslot |
References getHistogram(), myAspectRatio3D, myButtons, myPlot3D, myProxy, and SMESH::SelectionProxy::object().
Referenced by showInfo(), and SMESHGUI_CtrlInfo().
|
privateslot |
References computeNb(), and SMESH::FT_EqualEdges.
Referenced by showInfo(), and SMESHGUI_CtrlInfo().
|
privateslot |
References computeNb(), and SMESH::FT_EqualFaces.
Referenced by showInfo(), and SMESHGUI_CtrlInfo().
|
privateslot |
References computeNb(), and SMESH::FT_EqualNodes.
Referenced by showInfo(), and SMESHGUI_CtrlInfo().
|
privateslot |
References computeNb(), and SMESH::FT_EqualVolumes.
Referenced by showInfo(), and SMESHGUI_CtrlInfo().
|
privateslot |
References computeNb(), and SMESH::FT_FreeNodes.
Referenced by showInfo(), and SMESHGUI_CtrlInfo().
|
private |
Computes and shows nb of elements satisfying a given predicate.
| [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().
|
privateslot |
References myButtons, myNodeConnFunctor, myProxy, myWidgets, SMESH::SelectionProxy::object(), and showInfo().
Referenced by showInfo(), and SMESHGUI_CtrlInfo().
|
privateslot |
References computeNb(), and SMESH::FT_OverConstrainedFace.
Referenced by showInfo(), and SMESHGUI_CtrlInfo().
|
privateslot |
References computeNb(), and SMESH::FT_OverConstrainedVolume.
Referenced by showInfo(), and SMESHGUI_CtrlInfo().
Create plot widget.
| parent | Parent widget. |
Referenced by SMESHGUI_CtrlInfo().
|
private |
References myProxy, SMESH::SelectionProxy::object(), and SMESHGUI::resourceMgr().
Referenced by computeAspectRatio(), and computeAspectRatio3D().
|
virtual |
Implements SMESHGUI_Info.
References myWidgets.
Referenced by SMESHGUI_MeshInfoDlg::dump(), and SMESHGUI_CtrlInfoDlg::dump().
|
privateslot |
References SMESH::FT_EqualNodes, myButtons, myPredicates, and myWidgets.
Referenced by SMESHGUI_CtrlInfo().
| void SMESHGUI_CtrlInfo::showInfo | ( | const SMESH::SelectionProxy & | proxy | ) |
Show information on given object.
| proxy | Object to show information on (mesh, sub-mesh, group, ID source). |
References clearInternal(), computeAspectRatio(), computeAspectRatio3D(), computeDoubleEdgesInfo(), computeDoubleFacesInfo(), computeDoubleNodesInfo(), computeDoubleVolumesInfo(), computeFreeNodesInfo(), computeNodesNbConnInfo(), computeOverConstrainedFacesInfo(), computeOverConstrainedVolumesInfo(), SMESH::EDGE, SMESH::FACE, myButtons, myMeshTB, myProxy, myWidgets, SMESH::SelectionProxy::name(), SMESH::NODE, SMESH::SelectionProxy::object(), SMESHGUI::resourceMgr(), and SMESH::VOLUME.
Referenced by computeNb(), computeNodesNbConnInfo(), SMESHGUI_MeshInfoDlg::dump(), SMESHGUI_MeshInfoDlg::showInfo(), and SMESHGUI_CtrlInfoDlg::showInfo().
|
private |
Referenced by computeAspectRatio(), and SMESHGUI_CtrlInfo().
|
private |
Referenced by computeAspectRatio3D(), and SMESHGUI_CtrlInfo().
|
private |
|
private |
Referenced by clearInternal(), showInfo(), and SMESHGUI_CtrlInfo().
|
private |
Referenced by computeNodesNbConnInfo(), and SMESHGUI_CtrlInfo().
|
private |
|
private |
Referenced by clearInternal(), computeAspectRatio(), and SMESHGUI_CtrlInfo().
|
private |
Referenced by clearInternal(), computeAspectRatio3D(), and SMESHGUI_CtrlInfo().
|
private |
Referenced by computeNb(), setTolerance(), and SMESHGUI_CtrlInfo().
|
private |
Referenced by computeAspectRatio(), computeAspectRatio3D(), computeNb(), computeNodesNbConnInfo(), getHistogram(), and showInfo().
|
private |
Referenced by SMESHGUI_CtrlInfo().
|
private |
Referenced by clearInternal(), computeNb(), computeNodesNbConnInfo(), saveInfo(), setTolerance(), showInfo(), and SMESHGUI_CtrlInfo().