Version: 9.12.0
SMESHGUI_AddInfo Class Reference

Show additional information on selected 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 (const SMESH::SelectionProxy &)
 Show information on given object. More...
 
void clear ()
 Reset panel (clear all data). More...
 
void saveInfo (QTextStream &)
 Write information from panel to output stream. More...
 

Private Slots

void updateInfo ()
 Update information in panel. More...
 
void showPreviousGroups ()
 Show previous chunk of information on child groups. More...
 
void showNextGroups ()
 Show next chunk of information on child groups. More...
 
void showPreviousSubMeshes ()
 Show previous chunk of information on child sub-meshes. More...
 
void showNextSubMeshes ()
 Show next chunk of information on child sub-meshes. More...
 

Private Member Functions

QTreeWidgetItem * createItem (QTreeWidgetItem *=0, int=0)
 Create new item and add it to the tree. More...
 
void meshInfo (const SMESH::SelectionProxy &, QTreeWidgetItem *)
 Show information on mesh. More...
 
void subMeshInfo (const SMESH::SelectionProxy &, QTreeWidgetItem *)
 Show information on sub-mesh. More...
 
void groupInfo (const SMESH::SelectionProxy &, QTreeWidgetItem *)
 Show information on group. More...
 
void showGroups ()
 Update information on child groups. More...
 
void showSubMeshes ()
 Update information on child sub-meshes. More...
 

Private Attributes

SMESH::SelectionProxy myProxy
 
QTreeWidgetmyTree
 
QList< InfoComputor * > myComputors
 
QList< SMESH::SelectionProxymyGroups
 
QList< SMESH::SelectionProxymySubMeshes
 

Detailed Description

Show additional information on selected object.

Displays an additional information about selected object: mesh, sub-mesh or group.

Todo:
Rewrite saveInfo() method to print all data, not currently shown only.

Constructor & Destructor Documentation

◆ SMESHGUI_AddInfo()

SMESHGUI_AddInfo::SMESHGUI_AddInfo ( QWidget parent = 0)

Constructor.

Parameters
parentParent widget. Defaults to 0.

References myTree, and SPACING.

◆ ~SMESHGUI_AddInfo()

SMESHGUI_AddInfo::~SMESHGUI_AddInfo ( )

Destructor.

Member Function Documentation

◆ clear()

void SMESHGUI_AddInfo::clear ( )

Reset panel (clear all data).

References myTree.

◆ createItem()

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

Create new item and add it to the tree.

Parameters
parentParent tree widget item. Defaults to 0 (top-level item).
optionsItem flags. Defaults to 0 (none).
Returns
New tree widget item.

References myTree.

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

◆ groupInfo()

◆ meshInfo()

void SMESHGUI_AddInfo::meshInfo ( const SMESH::SelectionProxy proxy,
QTreeWidgetItem *  parent 
)
private

◆ saveInfo()

void SMESHGUI_AddInfo::saveInfo ( QTextStream &  out)
virtual

Write information from panel to output stream.

Parameters
outText stream output.

Implements SMESHGUI_Info.

References myTree.

Referenced by SMESHGUI_MeshInfoDlg::dump().

◆ showGroups()

◆ showInfo()

void SMESHGUI_AddInfo::showInfo ( const SMESH::SelectionProxy proxy)

◆ showNextGroups

void SMESHGUI_AddInfo::showNextGroups ( )
privateslot

Show next chunk of information on child groups.

References showGroups().

Referenced by showGroups().

◆ showNextSubMeshes

void SMESHGUI_AddInfo::showNextSubMeshes ( )
privateslot

Show next chunk of information on child sub-meshes.

References showSubMeshes().

Referenced by showSubMeshes().

◆ showPreviousGroups

void SMESHGUI_AddInfo::showPreviousGroups ( )
privateslot

Show previous chunk of information on child groups.

References showGroups().

Referenced by showGroups().

◆ showPreviousSubMeshes

void SMESHGUI_AddInfo::showPreviousSubMeshes ( )
privateslot

Show previous chunk of information on child sub-meshes.

References showSubMeshes().

Referenced by showSubMeshes().

◆ showSubMeshes()

◆ subMeshInfo()

void SMESHGUI_AddInfo::subMeshInfo ( const SMESH::SelectionProxy proxy,
QTreeWidgetItem *  parent 
)
private

Show information on sub-mesh.

Parameters
proxyProxy object (sub-mesh).
parentParent tree item.

References createItem(), SMESH::SelectionProxy::mesh(), SMESH::SelectionProxy::name(), and SMESH::SelectionProxy::shapeName().

Referenced by showInfo(), and showSubMeshes().

◆ updateInfo

void SMESHGUI_AddInfo::updateInfo ( )
privateslot

Update information in panel.

References myProxy, and showInfo().

Referenced by groupInfo().

Field Documentation

◆ myComputors

QList<InfoComputor*> SMESHGUI_AddInfo::myComputors
private

Referenced by groupInfo(), showGroups(), and showInfo().

◆ myGroups

QList<SMESH::SelectionProxy> SMESHGUI_AddInfo::myGroups
private

Referenced by meshInfo(), and showGroups().

◆ myProxy

SMESH::SelectionProxy SMESHGUI_AddInfo::myProxy
private

Referenced by showInfo(), and updateInfo().

◆ mySubMeshes

QList<SMESH::SelectionProxy> SMESHGUI_AddInfo::mySubMeshes
private

Referenced by meshInfo(), and showSubMeshes().

◆ myTree