Version: 8.3.0
SMESHGUI_AddInfo Class Reference

The wigdet shows additional information on the mesh object. More...

#include <SMESHGUI_MeshInfo.h>

Inheritance diagram for SMESHGUI_AddInfo:

Public Member Functions

 SMESHGUI_AddInfo (QWidget *=0)
 Constructor. More...
 
 ~SMESHGUI_AddInfo ()
 Destructor. More...
 
void showInfo (SMESH::SMESH_IDSource_ptr)
 Show additional information on the selected object. More...
 
void saveInfo (QTextStream &out)
 

Private Types

enum  { Bold = 0x01, All = 0x80 }
 

Private Slots

void changeLoadToCompute ()
 Change button label of "nb underlying node" group from "Load" to "Compute". More...
 
void showPreviousGroups ()
 
void showNextGroups ()
 
void showPreviousSubMeshes ()
 
void showNextSubMeshes ()
 

Private Member Functions

QTreeWidgetItem * createItem (QTreeWidgetItem *=0, int=0)
 Create new tree item. More...
 
void meshInfo (SMESH::SMESH_Mesh_ptr, QTreeWidgetItem *)
 Show mesh info. More...
 
void subMeshInfo (SMESH::SMESH_subMesh_ptr, QTreeWidgetItem *)
 Show sub-mesh info. More...
 
void groupInfo (SMESH::SMESH_GroupBase_ptr, QTreeWidgetItem *)
 Show group info. More...
 
void showGroups ()
 
void showSubMeshes ()
 

Private Attributes

QList< GrpComputor * > myComputors
 
SMESH::ListOfGroups_var myGroups
 
SMESH::submesh_array_var mySubMeshes
 

Detailed Description

The wigdet shows additional information on the mesh object.

Member Enumeration Documentation

anonymous enum
private
Enumerator
Bold 
All 

Constructor & Destructor Documentation

SMESHGUI_AddInfo::SMESHGUI_AddInfo ( QWidget parent = 0)

Constructor.

Parameters
parentparent widget
SMESHGUI_AddInfo::~SMESHGUI_AddInfo ( )

Destructor.

Member Function Documentation

void SMESHGUI_AddInfo::changeLoadToCompute ( )
privateslot

Change button label of "nb underlying node" group from "Load" to "Compute".

References myComputors.

Referenced by groupInfo().

QTreeWidgetItem * SMESHGUI_AddInfo::createItem ( QTreeWidgetItem *  parent = 0,
int  flags = 0 
)
private

Create new tree item.

Parameters
parentparent tree widget item
flagsitem flag
Returns
new tree widget item

References All, and Bold.

Referenced by groupInfo(), meshInfo(), showGroups(), showInfo(), showSubMeshes(), and subMeshInfo().

void SMESHGUI_AddInfo::groupInfo ( SMESH::SMESH_GroupBase_ptr  grp,
QTreeWidgetItem *  parent 
)
private

Show group info.

Parameters
grpmesh group object
parentparent tree item

References _PTR(), SMESH::BALL, Bold, changeLoadToCompute(), createItem(), SMESH::EDGE, SMESH::ELEM0D, SMESH::FACE, myComputors, SMESH::NODE, SMESHGUI::resourceMgr(), SObject(), and SMESH::VOLUME.

Referenced by showGroups(), and showInfo().

void SMESHGUI_AddInfo::meshInfo ( SMESH::SMESH_Mesh_ptr  mesh,
QTreeWidgetItem *  parent 
)
private

Show mesh info.

Parameters
meshmesh object
parentparent tree item

References _PTR(), Bold, createItem(), myGroups, mySubMeshes, showGroups(), showSubMeshes(), and SObject().

Referenced by showInfo().

void SMESHGUI_AddInfo::saveInfo ( QTextStream &  out)

References itemDepth().

Referenced by SMESHGUI_MeshInfoDlg::dump().

void SMESHGUI_AddInfo::showInfo ( SMESH::SMESH_IDSource_ptr  obj)

Show additional information on the selected object.

Parameters
objobject being processed (mesh, sub-mesh, group, ID source)

References _PTR(), All, Bold, createItem(), groupInfo(), meshInfo(), myComputors, SObject(), and subMeshInfo().

Referenced by SMESHGUI_MeshInfoDlg::showInfo().

void SMESHGUI_AddInfo::showNextGroups ( )
privateslot

References showGroups().

Referenced by showGroups().

void SMESHGUI_AddInfo::showNextSubMeshes ( )
privateslot

References showSubMeshes().

Referenced by showSubMeshes().

void SMESHGUI_AddInfo::showPreviousGroups ( )
privateslot

References showGroups().

Referenced by showGroups().

void SMESHGUI_AddInfo::showPreviousSubMeshes ( )
privateslot

References showSubMeshes().

Referenced by showSubMeshes().

void SMESHGUI_AddInfo::subMeshInfo ( SMESH::SMESH_subMesh_ptr  subMesh,
QTreeWidgetItem *  parent 
)
private

Show sub-mesh info.

Parameters
subMeshsub-mesh object
parentparent tree item

References _PTR(), Bold, createItem(), and SObject().

Referenced by showInfo(), and showSubMeshes().

Field Documentation

QList<GrpComputor*> SMESHGUI_AddInfo::myComputors
private
SMESH::ListOfGroups_var SMESHGUI_AddInfo::myGroups
private

Referenced by meshInfo(), and showGroups().

SMESH::submesh_array_var SMESHGUI_AddInfo::mySubMeshes
private

Referenced by meshInfo(), and showSubMeshes().