Show mesh element information as the tree. More...
#include <SMESHGUI_MeshInfo.h>
Data Structures | |
class | ItemCreator |
Item creator for tree mesh info widget. More... | |
class | ItemDelegate |
Item delegate for tree mesh info widget. More... | |
Signals | |
void | itemInfo (int type, const QString &ids) |
Public Member Functions | |
SMESHGUI_TreeElemInfo (QWidget *=0) | |
Constructor. More... | |
void | showInfo (const SMESH::SelectionProxy &, uint, bool) |
Show information on given node / element. More... | |
void | showInfo (const SMESH::SelectionProxy &, QSet< uint >, bool) |
Show information on given nodes / elements. More... | |
void | showInfo (const SMESH::SelectionProxy &) |
Show information on given group. More... | |
void | clear () |
Reset panel (clear all data). More... | |
void | saveInfo (QTextStream &) |
Write information from panel to output stream. More... | |
Protected Types | |
enum | { ShowNone , ShowNodes , ShowElements } |
Protected Member Functions | |
void | contextMenuEvent (QContextMenuEvent *) |
void | information (const QList< uint > &) |
Show mesh element information. More... | |
void | nodeInfo (const SMDS_MeshNode *, int, int, QTreeWidgetItem *) |
Show node information. More... | |
void | clearInternal () |
Internal clean-up (reset widget) More... | |
QWidget * | centralWidget () const |
Get central area widget. More... | |
SMESH::SelectionProxy | proxy () const |
Get current mesh proxy object information is shown on. More... | |
int | what () const |
Get current info mode. More... | |
QString | type2str (int, bool=false) |
Get title for given element type. More... | |
QString | stype2str (int) |
Get title for given shape type. More... | |
QString | etype2str (int) |
Get title for given element type. More... | |
QString | ctrl2str (int) |
Get title for given quality control. More... | |
void | writeInfo (InfoWriter *, const QList< uint > &) |
Write information on given mesh nodes / elements. More... | |
Private Slots | |
void | itemDoubleClicked (QTreeWidgetItem *, int) |
void | saveExpanded (QTreeWidgetItem *) |
void | showPrevious () |
Show previous chunk of information. More... | |
void | showNext () |
Show next chunk of information. More... | |
void | updateControls () |
Update control widget state. More... | |
Private Member Functions | |
QTreeWidgetItem * | createItem (QTreeWidgetItem *=0, int=0) |
Create new item and add it to the tree. More... | |
QString | expandedResource (QTreeWidgetItem *) |
Private Attributes | |
QTreeWidget * | myInfo |
QWidget * | myFrame |
ExtraWidget * | myExtra |
SMESH::SelectionProxy | myProxy |
int | myWhat |
QList< uint > | myIDs |
int | myIndex |
Show mesh element information as the tree.
SMESHGUI_TreeElemInfo::SMESHGUI_TreeElemInfo | ( | QWidget * | parent = 0 | ) |
Constructor.
parent | Parent widget. Defaults to 0. |
References SMESHGUI_ElemInfo::centralWidget(), itemDoubleClicked(), myInfo, and saveExpanded().
|
protectedinherited |
Get central area widget.
References SMESHGUI_ElemInfo::myFrame.
Referenced by SMESHGUI_SimpleElemInfo::SMESHGUI_SimpleElemInfo(), and SMESHGUI_TreeElemInfo().
|
inherited |
Reset panel (clear all data).
References SMESHGUI_ElemInfo::clearInternal(), SMESHGUI_ElemInfo::myIDs, SMESHGUI_ElemInfo::myIndex, and SMESHGUI_ElemInfo::updateControls().
Referenced by SMESHGUI_MeshInfoDlg::showInfo(), SMESHGUI_ElemInfo::showInfo(), and SMESHGUI_ElemInfo::SMESHGUI_ElemInfo().
|
protectedvirtual |
Internal clean-up (reset widget)
Reimplemented from SMESHGUI_ElemInfo.
References myInfo.
Referenced by information().
|
protected |
References SMESHGUI_ElemInfo::itemInfo(), and myInfo.
|
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 expandedResource(), myInfo, and SMESHGUI::resourceMgr().
|
protectedinherited |
Get title for given quality control.
type | Mesh control type. |
References SMESH::FT_Area, SMESH::FT_AspectRatio, SMESH::FT_AspectRatio3D, SMESH::FT_BallDiameter, SMESH::FT_Length, SMESH::FT_Length2D, SMESH::FT_Length3D, SMESH::FT_MaxElementLength2D, SMESH::FT_MaxElementLength3D, SMESH::FT_MinimumAngle, SMESH::FT_ScaledJacobian, SMESH::FT_Skew, SMESH::FT_Taper, SMESH::FT_Volume3D, and SMESH::FT_Warping.
Referenced by SMESHGUI_ElemInfo::writeInfo().
|
protectedinherited |
Get title for given element type.
type | Mesh element type. |
References SMESH::Entity_0D, SMESH::Entity_Ball, SMESH::Entity_BiQuad_Penta, SMESH::Entity_BiQuad_Quadrangle, SMESH::Entity_BiQuad_Triangle, SMESH::Entity_Edge, SMESH::Entity_Hexa, SMESH::Entity_Hexagonal_Prism, SMESH::Entity_Penta, SMESH::Entity_Polygon, SMESH::Entity_Polyhedra, SMESH::Entity_Pyramid, SMESH::Entity_Quad_Edge, SMESH::Entity_Quad_Hexa, SMESH::Entity_Quad_Penta, SMESH::Entity_Quad_Polygon, SMESH::Entity_Quad_Polyhedra, SMESH::Entity_Quad_Pyramid, SMESH::Entity_Quad_Quadrangle, SMESH::Entity_Quad_Tetra, SMESH::Entity_Quad_Triangle, SMESH::Entity_Quadrangle, SMESH::Entity_Tetra, SMESH::Entity_Triangle, and SMESH::Entity_TriQuad_Hexa.
Referenced by SMESHGUI_ElemInfo::writeInfo().
|
private |
References SMESHGUI_ElemInfo::ShowElements, and SMESHGUI_ElemInfo::what().
Referenced by createItem(), and saveExpanded().
|
protectedvirtual |
Show mesh element information.
ids | Nodes / elements IDs. |
Implements SMESHGUI_ElemInfo.
References clearInternal(), myInfo, and SMESHGUI_ElemInfo::writeInfo().
|
privateslot |
References SMESHGUI_ElemInfo::itemInfo().
Referenced by SMESHGUI_TreeElemInfo().
|
signalinherited |
Referenced by SMESHGUI_SimpleElemInfo::connectivityClicked(), contextMenuEvent(), and itemDoubleClicked().
|
protected |
Show node information.
node | mesh node for showing |
index | index of current node |
nbNodes | number of unique nodes in element |
parentItem | parent item of tree |
|
protectedinherited |
Get current mesh proxy object information is shown on.
References SMESHGUI_ElemInfo::myProxy.
Referenced by SMESHGUI_ElemInfo::showInfo(), and SMESHGUI_ElemInfo::writeInfo().
|
privateslot |
References expandedResource(), and SMESHGUI::resourceMgr().
Referenced by SMESHGUI_TreeElemInfo().
|
virtualinherited |
Write information from panel to output stream.
out | Text stream output. |
Implements SMESHGUI_Info.
References SMESHGUI_ElemInfo::myIDs, and SMESHGUI_ElemInfo::writeInfo().
Referenced by SMESHGUI_MeshInfoDlg::dump().
|
inherited |
Show information on given group.
proxy | Object to compute information on (group). |
References SMESH::ALL, SMESHGUI_ElemInfo::clear(), SMESH::SelectionProxy::groupElementType(), SMESH::SelectionProxy::ids(), SMESH::NODE, SMESHGUI_ElemInfo::proxy(), and SMESHGUI_ElemInfo::showInfo().
|
inherited |
Show information on given nodes / elements.
proxy | Object to compute information on (mesh, sub-mesh, group, ID source). |
ids | Mesh nodes / elements IDs. |
isElement | If true , show element info; otherwise show node info. |
References SMESHGUI_ElemInfo::clear(), SMESHGUI_ElemInfo::information(), SMESHGUI_ElemInfo::myIDs, SMESHGUI_ElemInfo::myIndex, SMESHGUI_ElemInfo::myProxy, SMESHGUI_ElemInfo::myWhat, SMESHGUI_ElemInfo::proxy(), SMESH::SelectionProxy::refresh(), SMESHGUI_ElemInfo::ShowElements, SMESHGUI_ElemInfo::ShowNodes, SMESHGUI_ElemInfo::updateControls(), and SMESHGUI_ElemInfo::what().
|
inherited |
Show information on given node / element.
proxy | Object to compute information on (mesh, sub-mesh, group, ID source). |
id | Mesh node / element ID. |
isElement | If true , show element info; otherwise show node info. |
References SMESHGUI_ElemInfo::proxy().
Referenced by SMESHGUI_MeshInfoDlg::idChanged(), SMESHGUI_ElemInfo::showInfo(), and SMESHGUI_MeshInfoDlg::showInfo().
|
privateslotinherited |
Show next chunk of information.
References SMESHGUI_ElemInfo::information(), SMESHGUI_ElemInfo::myIDs, SMESHGUI_ElemInfo::myIndex, and SMESHGUI_ElemInfo::updateControls().
Referenced by SMESHGUI_ElemInfo::SMESHGUI_ElemInfo().
|
privateslotinherited |
Show previous chunk of information.
References SMESHGUI_ElemInfo::information(), SMESHGUI_ElemInfo::myIDs, SMESHGUI_ElemInfo::myIndex, and SMESHGUI_ElemInfo::updateControls().
Referenced by SMESHGUI_ElemInfo::SMESHGUI_ElemInfo().
|
protectedinherited |
Get title for given shape type.
type | Shape type. |
Referenced by SMESHGUI_ElemInfo::writeInfo().
|
protectedinherited |
Get title for given element type.
type | Mesh element type. |
multiple | Use plural form. Defaults to false . |
References SMDSAbs_0DElement, SMDSAbs_Ball, SMDSAbs_Edge, SMDSAbs_Face, and SMDSAbs_Volume.
Referenced by SMESHGUI_ElemInfo::writeInfo().
|
privateslotinherited |
Update control widget state.
References SMESHGUI_ElemInfo::myExtra, SMESHGUI_ElemInfo::myIDs, SMESHGUI_ElemInfo::myIndex, and ExtraWidget::updateControls().
Referenced by SMESHGUI_ElemInfo::clear(), SMESHGUI_ElemInfo::showInfo(), SMESHGUI_ElemInfo::showNext(), and SMESHGUI_ElemInfo::showPrevious().
|
protectedinherited |
Get current info mode.
References SMESHGUI_ElemInfo::myWhat.
Referenced by expandedResource(), SMESHGUI_ElemInfo::showInfo(), and SMESHGUI_ElemInfo::writeInfo().
|
protectedinherited |
Write information on given mesh nodes / elements.
writer | Information writer. |
ids | Nodes / elements IDs. |
References SMESH::ALL, SMESH::SelectionProxy::color(), SMESHGUI_ElemInfo::ctrl2str(), SMESH::SelectionProxy::elementConnectivity(), SMESH::SelectionProxy::elementEntityType(), SMESH::SelectionProxy::elementGravityCenter(), SMESH::SelectionProxy::elementGroups(), SMESH::SelectionProxy::elementNormal(), SMESH::SelectionProxy::elementPosition(), SMESH::SelectionProxy::elementType(), SMESH::Entity_Polyhedra, SMESH::Entity_Quad_Polyhedra, SMESHGUI_ElemInfo::etype2str(), SMESH::FT_AspectRatio, SMESH::FT_Undefined, SMESH::SelectionProxy::GroupFilter, SMESH::SelectionProxy::GroupGeom, SMESH::SelectionProxy::GroupStd, SMESH::Position::hasU(), SMESH::Position::hasV(), InfoWriter::indent(), SMESH::Position::isValid(), SMESH::SelectionProxy::name(), SMESH::SelectionProxy::nodeConnectivity(), SMESH::SelectionProxy::nodeCoordinates(), SMESH::SelectionProxy::nodeGroups(), SMESH::SelectionProxy::nodePosition(), SMESH::SelectionProxy::perFaceConnectivity(), SMESHGUI_ElemInfo::proxy(), SMESHGUI::resourceMgr(), InfoWriter::separator(), SMESH::Position::shapeId(), SMESH::SelectionProxy::shapeName(), SMESH::Position::shapeType(), SMESHGUI_ElemInfo::ShowElements, SMESHGUI_ElemInfo::ShowNodes, SMESH::SelectionProxy::size(), SMDSAbs_Ball, SMDSAbs_Edge, SMDSAbs_Face, SMDSAbs_Node, SMESHGUI_ElemInfo::stype2str(), SMESH::SelectionProxy::type(), SMESHGUI_ElemInfo::type2str(), SMESH::Position::u(), InfoWriter::unindent(), SMESH::Position::v(), SMESHGUI_ElemInfo::what(), and InfoWriter::write().
Referenced by SMESHGUI_SimpleElemInfo::information(), information(), and SMESHGUI_ElemInfo::saveInfo().
|
privateinherited |
Referenced by SMESHGUI_ElemInfo::SMESHGUI_ElemInfo(), and SMESHGUI_ElemInfo::updateControls().
|
privateinherited |
Referenced by SMESHGUI_ElemInfo::centralWidget(), and SMESHGUI_ElemInfo::SMESHGUI_ElemInfo().
|
privateinherited |
|
privateinherited |
|
private |
Referenced by clearInternal(), contextMenuEvent(), createItem(), information(), and SMESHGUI_TreeElemInfo().
|
privateinherited |
Referenced by SMESHGUI_ElemInfo::proxy(), and SMESHGUI_ElemInfo::showInfo().
|
privateinherited |
Referenced by SMESHGUI_ElemInfo::showInfo(), and SMESHGUI_ElemInfo::what().