Represents mesh element information in the simple text area. More...
#include <SMESHGUI_MeshInfo.h>
Signals | |
void | itemInfo (int) |
void | itemInfo (const QString &) |
Public Member Functions | |
SMESHGUI_SimpleElemInfo (QWidget *=0) | |
Constructor. More... | |
void | saveInfo (QTextStream &out) |
void | setSource (SMESH_Actor *) |
Set mesh data source (actor) More... | |
void | showInfo (long, bool) |
Show mesh element information. More... | |
void | showInfo (QSet< long >, bool) |
Show mesh element information. More... | |
void | clear () |
Clear mesh element information widget. More... | |
gp_XYZ | getGravityCenter (const SMDS_MeshElement *e) |
Protected Types | |
typedef QMap< int, QList< int > > | Connectivity |
Protected Member Functions | |
void | information (const QList< long > &) |
Show mesh element information. More... | |
void | clearInternal () |
Internal clean-up (reset widget) More... | |
QWidget * | frame () const |
Get central area widget. More... | |
SMESH_Actor * | actor () const |
Get actor. More... | |
bool | isElements () const |
Get current info mode. More... | |
Connectivity | nodeConnectivity (const SMDS_MeshNode *) |
Get node connectivity. More... | |
QString | formatConnectivity (Connectivity, int) |
Format connectivity data to string representation. More... | |
XYZ | gravityCenter (const SMDS_MeshElement *) |
Calculate gravity center of the mesh element. More... | |
XYZ | normal (const SMDS_MeshElement *) |
Calculate normal vector to the mesh face. More... | |
Private Attributes | |
QTextBrowser * | myInfo |
Represents mesh element information in the simple text area.
|
protectedinherited |
SMESHGUI_SimpleElemInfo::SMESHGUI_SimpleElemInfo | ( | QWidget * | parent = 0 | ) |
|
protectedinherited |
Get actor.
References SMESHGUI_ElemInfo::myActor.
Referenced by information(), SMESHGUI_TreeElemInfo::information(), and SMESHGUI_ElemInfo::setSource().
|
inherited |
Clear mesh element information widget.
References SMESHGUI_ElemInfo::clearInternal(), SMESHGUI_ElemInfo::myIDs, SMESHGUI_ElemInfo::myIndex, and SMESHGUI_ElemInfo::updateControls().
Referenced by SMESHGUI_ElemInfo::setSource(), SMESHGUI_MeshInfoDlg::showInfo(), and SMESHGUI_ElemInfo::SMESHGUI_ElemInfo().
|
protectedvirtual |
Internal clean-up (reset widget)
Reimplemented from SMESHGUI_ElemInfo.
References myInfo.
Referenced by information().
|
protectedinherited |
Format connectivity data to string representation.
connectivity | connetivity map |
type | element type |
Referenced by information(), SMESHGUI_TreeElemInfo::information(), and SMESHGUI_TreeElemInfo::nodeInfo().
|
protectedinherited |
Get central area widget.
References SMESHGUI_ElemInfo::myFrame.
Referenced by SMESHGUI_SimpleElemInfo(), and SMESHGUI_TreeElemInfo::SMESHGUI_TreeElemInfo().
|
inherited |
Referenced by SMESHGUI_MeshInfoDlg::idChanged().
|
protectedinherited |
Calculate gravity center of the mesh element.
element | mesh element |
References SMESHGUI_ElemInfo::XYZ::add(), SMESHGUI_ElemInfo::XYZ::divide(), SMDS_MeshElement::NbNodes(), SMDS_MeshElement::nodesIterator(), SMDS_MeshNode::X(), SMDS_MeshNode::Y(), and SMDS_MeshNode::Z().
Referenced by information(), and SMESHGUI_TreeElemInfo::information().
|
protectedvirtual |
Show mesh element information.
ids | mesh nodes / elements identifiers |
Implements SMESHGUI_ElemInfo.
References _PTR(), SMESHGUI_ElemInfo::actor(), clearInternal(), EDGE, FACE, SMESHGUI_ElemInfo::formatConnectivity(), SMDS_MeshElement::GetEntityType(), SMDS_MeshElement::GetID(), SMESH_Actor::GetObject(), SMDS_MeshElement::GetType(), SMESHGUI_ElemInfo::gravityCenter(), SMESHGUI_ElemInfo::isElements(), SMDS_MeshElement::IsQuadratic(), myInfo, SMDS_MeshElement::NbNodes(), SMESH::NODE, SMESHGUI_ElemInfo::nodeConnectivity(), SMDS_MeshElement::nodesIterator(), SMESHGUI_ElemInfo::normal(), SMESHGUI::resourceMgr(), SMESH::ElementPosition::shapeID, SMESH::ElementPosition::shapeType, SMDSAbs_0DElement, SMDSAbs_Ball, SMDSAbs_Edge, SMDSAbs_Face, SMDSAbs_Volume, SMDSEntity_0D, SMDSEntity_Ball, SMDSEntity_BiQuad_Quadrangle, SMDSEntity_BiQuad_Triangle, SMDSEntity_Hexa, SMDSEntity_Hexagonal_Prism, SMDSEntity_Penta, SMDSEntity_Polygon, SMDSEntity_Polyhedra, SMDSEntity_Pyramid, SMDSEntity_Quad_Hexa, SMDSEntity_Quad_Penta, SMDSEntity_Quad_Polygon, SMDSEntity_Quad_Polyhedra, SMDSEntity_Quad_Pyramid, SMDSEntity_Quad_Quadrangle, SMDSEntity_Quad_Tetra, SMDSEntity_Quad_Triangle, SMDSEntity_Quadrangle, SMDSEntity_Tetra, SMDSEntity_Triangle, SMDSEntity_TriQuad_Hexa, SObject(), SMDS_MeshNode::X(), SMESHGUI_ElemInfo::XYZ::x(), SMDS_MeshNode::Y(), SMESHGUI_ElemInfo::XYZ::y(), SMDS_MeshNode::Z(), and SMESHGUI_ElemInfo::XYZ::z().
|
protectedinherited |
Get current info mode.
true
if mesh element information is shown or false
if node information is shown References SMESHGUI_ElemInfo::myIsElement.
Referenced by SMESHGUI_TreeElemInfo::expandedResource(), information(), and SMESHGUI_TreeElemInfo::information().
|
signalinherited |
Referenced by SMESHGUI_TreeElemInfo::contextMenuEvent(), and SMESHGUI_TreeElemInfo::itemDoubleClicked().
|
signalinherited |
|
protectedinherited |
Get node connectivity.
node | mesh node |
References SMDS_MeshElement::GetID(), SMDS_MeshNode::GetInverseElementIterator(), and SMDS_MeshElement::GetType().
Referenced by information(), SMESHGUI_TreeElemInfo::information(), and SMESHGUI_TreeElemInfo::nodeInfo().
|
protectedinherited |
Calculate normal vector to the mesh face.
element | mesh face |
References SMESH::getNormale().
Referenced by information(), and SMESHGUI_TreeElemInfo::information().
|
virtual |
Implements SMESHGUI_ElemInfo.
References myInfo.
|
inherited |
Set mesh data source (actor)
actor | mesh object actor |
References SMESHGUI_ElemInfo::actor(), SMESHGUI_ElemInfo::clear(), SMESHGUI_ElemInfo::myActor, and SMESHGUI_ElemInfo::myIsElement.
Referenced by SMESHGUI_MeshInfoDlg::showInfo().
|
inherited |
Show mesh element information.
id | mesh node / element ID |
isElem | show mesh element information if true or mesh node information if false |
Referenced by SMESHGUI_MeshInfoDlg::idChanged(), and SMESHGUI_MeshInfoDlg::showInfo().
|
inherited |
Show mesh element information.
ids | mesh nodes / elements identifiers |
isElem | show mesh element information if true or mesh node information if false |
References SMESHGUI_ElemInfo::information(), SMESHGUI_ElemInfo::myIDs, SMESHGUI_ElemInfo::myIndex, SMESHGUI_ElemInfo::myIsElement, and SMESHGUI_ElemInfo::updateControls().
|
private |
Referenced by clearInternal(), information(), saveInfo(), and SMESHGUI_SimpleElemInfo().