Show additional information on selected object. More...
#include <SMESHGUI_MeshInfo.h>
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 |
QTreeWidget * | myTree |
QList< InfoComputor * > | myComputors |
QList< SMESH::SelectionProxy > | myGroups |
QList< SMESH::SelectionProxy > | mySubMeshes |
Show additional information on selected object.
Displays an additional information about selected object: mesh, sub-mesh or group.
SMESHGUI_AddInfo::SMESHGUI_AddInfo | ( | QWidget * | parent = 0 | ) |
SMESHGUI_AddInfo::~SMESHGUI_AddInfo | ( | ) |
Destructor.
void SMESHGUI_AddInfo::clear | ( | ) |
Reset panel (clear all data).
References myTree.
|
private |
Create new item and add it to the tree.
parent | Parent tree widget item. Defaults to 0 (top-level item). |
options | Item flags. Defaults to 0 (none). |
References myTree.
Referenced by groupInfo(), meshInfo(), showGroups(), showInfo(), showSubMeshes(), and subMeshInfo().
|
private |
Show information on group.
proxy | Proxy object (group). |
parent | Parent tree item. |
References SMESH::BALL, SMESH::SelectionProxy::color(), createItem(), SMESH::EDGE, SMESH::ELEM0D, SMESH::FACE, SMESH::SelectionProxy::groupElementType(), SMESH::SelectionProxy::GroupFilter, SMESH::SelectionProxy::GroupGeom, SMESH::SelectionProxy::GroupStd, InfoComputor::GrpNbNodes, InfoComputor::GrpSize, SMESH::SelectionProxy::isMeshLoaded(), SMESH::SelectionProxy::mesh(), myComputors, myTree, SMESH::SelectionProxy::name(), SMESH::SelectionProxy::nbNodes(), SMESH::NODE, SMESH::SelectionProxy::shapeName(), SMESH::SelectionProxy::size(), SMESH::SelectionProxy::type(), updateInfo(), and SMESH::VOLUME.
Referenced by showGroups(), and showInfo().
|
private |
Show information on mesh.
proxy | Proxy object (mesh). |
parent | Parent tree item. |
References createItem(), SMESH::MedInfo::fileName(), SMESH::SelectionProxy::groups(), SMESH::MedInfo::isValid(), SMESH::SelectionProxy::medFileInfo(), myGroups, mySubMeshes, SMESH::SelectionProxy::shapeName(), showGroups(), showSubMeshes(), SMESH::MedInfo::size(), SMESH::SelectionProxy::submeshes(), and SMESH::MedInfo::version().
Referenced by showInfo().
|
virtual |
Write information from panel to output stream.
out | Text stream output. |
Implements SMESHGUI_Info.
References myTree.
Referenced by SMESHGUI_MeshInfoDlg::dump().
|
private |
Update information on child groups.
References createItem(), SMESH::SelectionProxy::groupElementType(), groupInfo(), myComputors, myGroups, myTree, SMESH::SelectionProxy::name(), ExtraWidget::next, ExtraWidget::prev, showNextGroups(), showPreviousGroups(), and ExtraWidget::updateControls().
Referenced by meshInfo(), showNextGroups(), and showPreviousGroups().
void SMESHGUI_AddInfo::showInfo | ( | const SMESH::SelectionProxy & | proxy | ) |
Show information on given object.
proxy | Object to show information on (mesh, sub-mesh, group). |
References createItem(), SMESH::SelectionProxy::Group, groupInfo(), SMESH::SelectionProxy::Mesh, meshInfo(), myComputors, myProxy, myTree, SMESH::SelectionProxy::name(), SMESH::SelectionProxy::Submesh, subMeshInfo(), and SMESH::SelectionProxy::type().
Referenced by SMESHGUI_MeshInfoDlg::showInfo(), and updateInfo().
|
privateslot |
Show next chunk of information on child groups.
References showGroups().
Referenced by showGroups().
|
privateslot |
Show next chunk of information on child sub-meshes.
References showSubMeshes().
Referenced by showSubMeshes().
|
privateslot |
Show previous chunk of information on child groups.
References showGroups().
Referenced by showGroups().
|
privateslot |
Show previous chunk of information on child sub-meshes.
References showSubMeshes().
Referenced by showSubMeshes().
|
private |
Update information on child sub-meshes.
References createItem(), mySubMeshes, myTree, SMESH::SelectionProxy::name(), ExtraWidget::next, ExtraWidget::prev, SMESH::SelectionProxy::shapeType(), showNextSubMeshes(), showPreviousSubMeshes(), subMeshInfo(), and ExtraWidget::updateControls().
Referenced by meshInfo(), showNextSubMeshes(), and showPreviousSubMeshes().
|
private |
Show information on sub-mesh.
proxy | Proxy object (sub-mesh). |
parent | Parent tree item. |
References createItem(), SMESH::SelectionProxy::mesh(), SMESH::SelectionProxy::name(), and SMESH::SelectionProxy::shapeName().
Referenced by showInfo(), and showSubMeshes().
|
privateslot |
|
private |
Referenced by groupInfo(), showGroups(), and showInfo().
|
private |
Referenced by meshInfo(), and showGroups().
|
private |
Referenced by showInfo(), and updateInfo().
|
private |
Referenced by meshInfo(), and showSubMeshes().
|
private |
Referenced by clear(), createItem(), groupInfo(), saveInfo(), showGroups(), showInfo(), showSubMeshes(), and SMESHGUI_AddInfo().