Version: 8.3.0
SMESHGUI_SimpleElemInfo Class Reference

Represents mesh element information in the simple text area. More...

#include <SMESHGUI_MeshInfo.h>

Inheritance diagram for SMESHGUI_SimpleElemInfo:

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...
 
QWidgetframe () const
 Get central area widget. More...
 
SMESH_Actoractor () 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
 

Detailed Description

Represents mesh element information in the simple text area.

Member Typedef Documentation

typedef QMap< int, QList<int> > SMESHGUI_ElemInfo::Connectivity
protectedinherited

Constructor & Destructor Documentation

SMESHGUI_SimpleElemInfo::SMESHGUI_SimpleElemInfo ( QWidget parent = 0)

Constructor.

Parameters
parentparent widget

References SMESHGUI_ElemInfo::frame(), and myInfo.

Member Function Documentation

SMESH_Actor * SMESHGUI_ElemInfo::actor ( ) const
protectedinherited

Get actor.

Returns
actor being used

References SMESHGUI_ElemInfo::myActor.

Referenced by information(), SMESHGUI_TreeElemInfo::information(), and SMESHGUI_ElemInfo::setSource().

void SMESHGUI_SimpleElemInfo::clearInternal ( )
protectedvirtual

Internal clean-up (reset widget)

Reimplemented from SMESHGUI_ElemInfo.

References myInfo.

Referenced by information().

QString SMESHGUI_ElemInfo::formatConnectivity ( Connectivity  connectivity,
int  type 
)
protectedinherited

Format connectivity data to string representation.

Parameters
connectivityconnetivity map
typeelement type
Returns
string representation of the connectivity

Referenced by information(), SMESHGUI_TreeElemInfo::information(), and SMESHGUI_TreeElemInfo::nodeInfo().

QWidget * SMESHGUI_ElemInfo::frame ( ) const
protectedinherited

Get central area widget.

Returns
central widget

References SMESHGUI_ElemInfo::myFrame.

Referenced by SMESHGUI_SimpleElemInfo(), and SMESHGUI_TreeElemInfo::SMESHGUI_TreeElemInfo().

gp_XYZ SMESHGUI_ElemInfo::getGravityCenter ( const SMDS_MeshElement e)
inherited
SMESHGUI_ElemInfo::XYZ SMESHGUI_ElemInfo::gravityCenter ( const SMDS_MeshElement element)
protectedinherited
void SMESHGUI_SimpleElemInfo::information ( const QList< long > &  ids)
protectedvirtual
bool SMESHGUI_ElemInfo::isElements ( ) const
protectedinherited

Get current info mode.

Returns
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().

void SMESHGUI_ElemInfo::itemInfo ( int  )
signalinherited
void SMESHGUI_ElemInfo::itemInfo ( const QString &  )
signalinherited
SMESHGUI_ElemInfo::Connectivity SMESHGUI_ElemInfo::nodeConnectivity ( const SMDS_MeshNode node)
protectedinherited

Get node connectivity.

Parameters
nodemesh node
Returns
node connectivity map

References SMDS_MeshElement::GetID(), SMDS_MeshNode::GetInverseElementIterator(), and SMDS_MeshElement::GetType().

Referenced by information(), SMESHGUI_TreeElemInfo::information(), and SMESHGUI_TreeElemInfo::nodeInfo().

SMESHGUI_ElemInfo::XYZ SMESHGUI_ElemInfo::normal ( const SMDS_MeshElement element)
protectedinherited

Calculate normal vector to the mesh face.

Parameters
elementmesh face

References SMESH::getNormale().

Referenced by information(), and SMESHGUI_TreeElemInfo::information().

void SMESHGUI_SimpleElemInfo::saveInfo ( QTextStream &  out)
virtual

Implements SMESHGUI_ElemInfo.

References myInfo.

void SMESHGUI_ElemInfo::setSource ( SMESH_Actor actor)
inherited

Set mesh data source (actor)

Parameters
actormesh object actor

References SMESHGUI_ElemInfo::actor(), SMESHGUI_ElemInfo::clear(), SMESHGUI_ElemInfo::myActor, and SMESHGUI_ElemInfo::myIsElement.

Referenced by SMESHGUI_MeshInfoDlg::showInfo().

void SMESHGUI_ElemInfo::showInfo ( long  id,
bool  isElem 
)
inherited

Show mesh element information.

Parameters
idmesh node / element ID
isElemshow mesh element information if true or mesh node information if false

Referenced by SMESHGUI_MeshInfoDlg::idChanged(), and SMESHGUI_MeshInfoDlg::showInfo().

void SMESHGUI_ElemInfo::showInfo ( QSet< long >  ids,
bool  isElem 
)
inherited

Show mesh element information.

Parameters
idsmesh nodes / elements identifiers
isElemshow 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().

Field Documentation

QTextBrowser* SMESHGUI_SimpleElemInfo::myInfo
private