Class for the mesh controls information widget. More...
#include <SMESHGUI_MeshInfo.h>

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... | |
| QwtPlot * | createPlot (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_SpinBox * | myToleranceWidget | 
| QList< QLabel * > | myWidgets | 
| QGridLayout * | myMainLayout | 
| QwtPlot * | myPlot | 
| QwtPlot * | myPlot3D | 
| QList< QAbstractButton * > | myButtons | 
| QList< TPredicate > | myPredicates | 
| TNumFunctor | myAspectRatio | 
| TNumFunctor | myAspectRatio3D | 
| TNumFunctor | myNodeConnFunctor | 
Class for the mesh controls information widget.
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
| SMESHGUI_CtrlInfo::SMESHGUI_CtrlInfo | ( | QWidget * | parent = 0 | ) | 
Constructor.
| parent | parent widget | 
References clearInternal(), computeAspectRatio(), computeAspectRatio3D(), computeDoubleEdgesInfo(), computeDoubleFacesInfo(), computeDoubleNodesInfo(), computeDoubleVolumesInfo(), computeFreeNodesInfo(), computeNodesNbConnInfo(), computeOverConstrainedFacesInfo(), computeOverConstrainedVolumesInfo(), createField(), createPlot(), SMESH::GetFilterManager(), MARGIN, myAspectRatio, myAspectRatio3D, myButtons, myMainLayout, myNodeConnFunctor, myPlot, myPlot3D, myPredicates, myToleranceWidget, myWidgets, SMESHGUI_SpinBox::RangeStepAndValidator(), SMESHGUI::resourceMgr(), setFontAttributes(), setTolerance(), SMESHGUI_SpinBox::SetValue(), and SPACING.
| SMESHGUI_CtrlInfo::~SMESHGUI_CtrlInfo | ( | ) | 
Destructor.
      
  | 
  private | 
Internal clean-up (reset widget)
References myButtons, myMainLayout, myPlot, myPlot3D, and myWidgets.
Referenced by showInfo(), and SMESHGUI_CtrlInfo().
      
  | 
  privateslot | 
References getHistogram(), myAspectRatio, myButtons, myObject, and myPlot.
Referenced by showInfo(), and SMESHGUI_CtrlInfo().
      
  | 
  privateslot | 
References getHistogram(), myAspectRatio3D, myButtons, myObject, and myPlot3D.
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().
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, myObject, myPredicates, myWidgets, and showInfo().
Referenced by computeDoubleEdgesInfo(), computeDoubleFacesInfo(), computeDoubleNodesInfo(), computeDoubleVolumesInfo(), computeFreeNodesInfo(), computeOverConstrainedFacesInfo(), and computeOverConstrainedVolumesInfo().
      
  | 
  privateslot | 
References myButtons, myNodeConnFunctor, myObject, myWidgets, 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().
      
  | 
  private | 
      
  | 
  private | 
References myObject, and SMESHGUI::resourceMgr().
Referenced by computeAspectRatio(), and computeAspectRatio3D().
| void SMESHGUI_CtrlInfo::saveInfo | ( | QTextStream & | out | ) | 
References myWidgets.
Referenced by SMESHGUI_MeshInfoDlg::dump(), and SMESHGUI_CtrlInfoDlg::dump().
      
  | 
  private | 
Change widget font attributes (bold, ...).
| w | widget | 
| attr | font attributes (XORed flags) | 
Referenced by SMESHGUI_CtrlInfo().
      
  | 
  privateslot | 
References myButtons, and myWidgets.
Referenced by SMESHGUI_CtrlInfo().
| void SMESHGUI_CtrlInfo::showInfo | ( | SMESH::SMESH_IDSource_ptr | obj | ) | 
Show controls information on the selected object.
References _PTR(), clearInternal(), computeAspectRatio(), computeAspectRatio3D(), computeDoubleEdgesInfo(), computeDoubleFacesInfo(), computeDoubleNodesInfo(), computeDoubleVolumesInfo(), computeFreeNodesInfo(), computeNodesNbConnInfo(), computeOverConstrainedFacesInfo(), computeOverConstrainedVolumesInfo(), SMESH::EDGE, SMESH::FACE, Max(), myButtons, myMainLayout, myObject, myWidgets, SMESH::NODE, SMESHGUI::resourceMgr(), SObject(), and SMESH::VOLUME.
Referenced by computeNb(), computeNodesNbConnInfo(), 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 | 
Referenced by computeAspectRatio(), computeAspectRatio3D(), computeNb(), computeNodesNbConnInfo(), getHistogram(), and showInfo().
      
  | 
  private | 
      
  | 
  private | 
Referenced by clearInternal(), computeAspectRatio(), and SMESHGUI_CtrlInfo().
      
  | 
  private | 
Referenced by clearInternal(), computeAspectRatio3D(), and SMESHGUI_CtrlInfo().
      
  | 
  private | 
Referenced by computeNb(), and SMESHGUI_CtrlInfo().
      
  | 
  private | 
Referenced by SMESHGUI_CtrlInfo().
      
  | 
  private | 
Referenced by clearInternal(), computeNb(), computeNodesNbConnInfo(), saveInfo(), setTolerance(), showInfo(), and SMESHGUI_CtrlInfo().