Version: 8.3.0
SMESHGUI_MeshInfo Class Reference

Base mesh information widget. More...

#include <SMESHGUI_MeshInfo.h>

Inheritance diagram for SMESHGUI_MeshInfo:

Public Member Functions

 SMESHGUI_MeshInfo (QWidget *=0)
 Constructor. More...
 
 ~SMESHGUI_MeshInfo ()
 Destructor. More...
 
void showInfo (SMESH::SMESH_IDSource_ptr)
 Show information on the mesh object. More...
 
void clear ()
 Reset the widget to the initial state (nullify all fields). More...
 
void saveInfo (QTextStream &out)
 

Private Types

enum  {
  iName, iObject, iNodesStart, iNodes,
  iNodesEnd, iElementsStart = iNodesEnd, iElements, iNbStart,
  iNb, iNbEnd, i0DStart = iNbEnd, i0D,
  i0DEnd, iBallsStart = i0DEnd, iBalls, iBallsEnd,
  i1DStart = iBallsEnd, i1D, i1DEnd, i2DStart = i1DEnd,
  i2D, i2DTriangles, i2DQuadrangles, i2DPolygons,
  i2DEnd, i3DStart = i2DEnd, i3D, i3DTetrahedrons,
  i3DHexahedrons, i3DPyramids, i3DPrisms, i3DHexaPrisms,
  i3DPolyhedrons, i3DEnd, iElementsEnd = i3DEnd
}
 
enum  {
  iSingle = 1, iTotal = iSingle, iLinear, iQuadratic,
  iBiQuadratic
}
 
enum  { Bold = 0x01, Italic = 0x02 }
 
typedef QList< QWidget * > wlist
 
typedef QVector< wlistiwlist
 

Private Slots

void loadMesh ()
 Load mesh from a study file. More...
 

Private Member Functions

QLabel * createField ()
 Create info field. More...
 
QWidgetcreateLine ()
 Create horizontal rule. More...
 
void setFontAttributes (QWidget *, int, bool=true)
 Change widget font attributes (bold, italic, ...). More...
 
void setFieldsVisible (int, int, bool)
 Show/hide group(s) of fields. More...
 

Private Attributes

iwlist myWidgets
 
QPushButton * myLoadBtn
 

Detailed Description

Base mesh information widget.

Displays the base information about mesh object: mesh, sub-mesh, group or arbitrary ID source.

Member Typedef Documentation

typedef QVector<wlist> SMESHGUI_MeshInfo::iwlist
private
typedef QList<QWidget*> SMESHGUI_MeshInfo::wlist
private

Member Enumeration Documentation

anonymous enum
private
Enumerator
iName 
iObject 
iNodesStart 
iNodes 
iNodesEnd 
iElementsStart 
iElements 
iNbStart 
iNb 
iNbEnd 
i0DStart 
i0D 
i0DEnd 
iBallsStart 
iBalls 
iBallsEnd 
i1DStart 
i1D 
i1DEnd 
i2DStart 
i2D 
i2DTriangles 
i2DQuadrangles 
i2DPolygons 
i2DEnd 
i3DStart 
i3D 
i3DTetrahedrons 
i3DHexahedrons 
i3DPyramids 
i3DPrisms 
i3DHexaPrisms 
i3DPolyhedrons 
i3DEnd 
iElementsEnd 
anonymous enum
private
Enumerator
iSingle 
iTotal 
iLinear 
iQuadratic 
iBiQuadratic 
anonymous enum
private
Enumerator
Bold 
Italic 

Constructor & Destructor Documentation

SMESHGUI_MeshInfo::SMESHGUI_MeshInfo ( QWidget parent = 0)

Constructor.

Parameters
parentparent widget

References Bold, clear(), createField(), createLine(), Italic, loadMesh(), MARGIN, myLoadBtn, myWidgets, setFontAttributes(), and SPACING.

SMESHGUI_MeshInfo::~SMESHGUI_MeshInfo ( )

Destructor.

Member Function Documentation

void SMESHGUI_MeshInfo::clear ( )
QLabel * SMESHGUI_MeshInfo::createField ( )
private

Create info field.

Returns
new info field

Referenced by SMESHGUI_MeshInfo().

QWidget * SMESHGUI_MeshInfo::createLine ( )
private

Create horizontal rule.

Returns
new line object

Referenced by SMESHGUI_MeshInfo().

void SMESHGUI_MeshInfo::loadMesh ( )
privateslot

Load mesh from a study file.

References Handle(), SMESHGUI::selectionMgr(), and showInfo().

Referenced by SMESHGUI_MeshInfo().

void SMESHGUI_MeshInfo::setFieldsVisible ( int  start,
int  end,
bool  on 
)
private

Show/hide group(s) of fields.

Parameters
startbeginning of the block
endend of the block
onvisibility flag

References iElementsEnd, and myWidgets.

void SMESHGUI_MeshInfo::setFontAttributes ( QWidget w,
int  attr,
bool  val = true 
)
private

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

Parameters
wwidget
attrfont attributes (XORed flags)
valvalue to be set to attributes

References Bold, and Italic.

Referenced by SMESHGUI_MeshInfo().

Field Documentation

QPushButton* SMESHGUI_MeshInfo::myLoadBtn
private

Referenced by showInfo(), and SMESHGUI_MeshInfo().

iwlist SMESHGUI_MeshInfo::myWidgets
private