Base mesh information widget. More...
#include <SMESHGUI_MeshInfo.h>
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< wlist > | iwlist |
Private Slots | |
void | loadMesh () |
Load mesh from a study file. More... | |
Private Member Functions | |
QLabel * | createField () |
Create info field. More... | |
QWidget * | createLine () |
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 |
Base mesh information widget.
Displays the base information about mesh object: mesh, sub-mesh, group or arbitrary ID source.
|
private |
|
private |
|
private |
SMESHGUI_MeshInfo::SMESHGUI_MeshInfo | ( | QWidget * | parent = 0 | ) |
Constructor.
parent | parent widget |
References Bold, clear(), createField(), createLine(), Italic, loadMesh(), MARGIN, myLoadBtn, myWidgets, setFontAttributes(), and SPACING.
SMESHGUI_MeshInfo::~SMESHGUI_MeshInfo | ( | ) |
Destructor.
void SMESHGUI_MeshInfo::clear | ( | ) |
Reset the widget to the initial state (nullify all fields).
References i0D, i1D, i2D, i2DPolygons, i2DQuadrangles, i2DTriangles, i3D, i3DHexahedrons, i3DHexaPrisms, i3DPolyhedrons, i3DPrisms, i3DPyramids, i3DTetrahedrons, iBalls, iBiQuadratic, iLinear, iName, iNb, iNodes, iObject, iQuadratic, iSingle, iTotal, and myWidgets.
Referenced by showInfo(), and SMESHGUI_MeshInfo().
|
private |
|
private |
|
privateslot |
Load mesh from a study file.
References Handle(), SMESHGUI::selectionMgr(), and showInfo().
Referenced by SMESHGUI_MeshInfo().
void SMESHGUI_MeshInfo::saveInfo | ( | QTextStream & | out | ) |
References i0D, i1D, i2D, i2DPolygons, i2DQuadrangles, i2DTriangles, i3D, i3DHexahedrons, i3DHexaPrisms, i3DPolyhedrons, i3DPrisms, i3DPyramids, i3DTetrahedrons, iBalls, iBiQuadratic, iLinear, iName, iNb, iNodes, iObject, iQuadratic, iSingle, iTotal, myWidgets, and toString().
Referenced by SMESHGUI_MeshInfoDlg::dump().
Show/hide group(s) of fields.
start | beginning of the block |
end | end of the block |
on | visibility flag |
References iElementsEnd, and myWidgets.
Change widget font attributes (bold, italic, ...).
w | widget |
attr | font attributes (XORed flags) |
val | value to be set to attributes |
Referenced by SMESHGUI_MeshInfo().
void SMESHGUI_MeshInfo::showInfo | ( | SMESH::SMESH_IDSource_ptr | obj | ) |
Show information on the mesh object.
obj | object being processed (mesh, sub-mesh, group, ID source) |
References _PTR(), SMESH::BALL, clear(), SMESH::EDGE, SMESH::ELEM0D, SMESH::FACE, i0D, i1D, i2D, i2DPolygons, i2DQuadrangles, i2DTriangles, i3D, i3DHexahedrons, i3DHexaPrisms, i3DPolyhedrons, i3DPrisms, i3DPyramids, i3DTetrahedrons, iBalls, iBiQuadratic, iLinear, iName, iNb, iNodes, iObject, iQuadratic, iSingle, iTotal, myLoadBtn, myWidgets, SMESH::NODE, SMDSEntity_0D, SMDSEntity_Ball, SMDSEntity_BiQuad_Quadrangle, SMDSEntity_BiQuad_Triangle, SMDSEntity_Edge, SMDSEntity_Hexa, SMDSEntity_Hexagonal_Prism, SMDSEntity_Node, SMDSEntity_Penta, SMDSEntity_Polygon, SMDSEntity_Polyhedra, SMDSEntity_Pyramid, SMDSEntity_Quad_Edge, SMDSEntity_Quad_Hexa, SMDSEntity_Quad_Penta, SMDSEntity_Quad_Polygon, SMDSEntity_Quad_Pyramid, SMDSEntity_Quad_Quadrangle, SMDSEntity_Quad_Tetra, SMDSEntity_Quad_Triangle, SMDSEntity_Quadrangle, SMDSEntity_Tetra, SMDSEntity_Triangle, SMDSEntity_TriQuad_Hexa, SObject(), and SMESH::VOLUME.
Referenced by loadMesh(), and SMESHGUI_MeshInfoDlg::showInfo().
|
private |
Referenced by showInfo(), and SMESHGUI_MeshInfo().
|
private |
Referenced by clear(), saveInfo(), setFieldsVisible(), showInfo(), and SMESHGUI_MeshInfo().