Version: 8.3.0
SMESHGUI_MeshInfoDlg Class Reference

Centralized dialog box for the measurements. More...

#include <SMESHGUI_MeshInfo.h>

Inheritance diagram for SMESHGUI_MeshInfoDlg:

Public Types

enum  { BaseInfo, ElemInfo, AddInfo, CtrlInfo }
 Information type. More...
 

Public Member Functions

 SMESHGUI_MeshInfoDlg (QWidget *=0, int=BaseInfo)
 Constructor. More...
 
 ~SMESHGUI_MeshInfoDlg ()
 Destructor. More...
 
void showInfo (const Handle(SALOME_InteractiveObject)&)
 Show mesh information. More...
 
void reject ()
 Perform clean-up actions on the dialog box closing. More...
 

Protected Member Functions

void keyPressEvent (QKeyEvent *)
 Process keyboard event. More...
 
void enterEvent (QEvent *)
 Reactivate dialog box, when mouse pointer goes into it. More...
 

Private Types

enum  { NodeMode, ElemMode }
 

Private Slots

void help ()
 Show help page. More...
 
void updateSelection ()
 Setup selection mode depending on the current dialog box state. More...
 
void updateInfo ()
 Show mesh information. More...
 
void activate ()
 Activate dialog box. More...
 
void deactivate ()
 Deactivate dialog box. More...
 
void modeChanged ()
 Called when users switches between node / element modes. More...
 
void idChanged ()
 Called when users prints mesh element ID in the corresponding field. More...
 
void idPreviewChange (bool)
 Show IDs clicked. More...
 
void showItemInfo (int)
 
void showItemInfo (const QString &)
 
void dump ()
 

Private Member Functions

 Handle (SALOME_InteractiveObject) myIO
 

Private Attributes

QTabWidget * myTabWidget
 
SMESHGUI_MeshInfomyBaseInfo
 
QButtonGroup * myMode
 
QLineEdit * myID
 
QCheckBox * myIDPreviewCheck
 
SMESHGUI_IdPreviewmyIDPreview
 
SMESHGUI_ElemInfomyElemInfo
 
SMESHGUI_AddInfomyAddInfo
 
SMESHGUI_CtrlInfomyCtrlInfo
 
SMESH_ActormyActor
 

Detailed Description

Centralized dialog box for the measurements.

Mesh information dialog box.

Member Enumeration Documentation

anonymous enum
private
Enumerator
NodeMode 
ElemMode 
anonymous enum

Information type.

Enumerator
BaseInfo 

base mesh information

ElemInfo 

mesh element information

AddInfo 

additional information

CtrlInfo 

controls information

Constructor & Destructor Documentation

SMESHGUI_MeshInfoDlg::SMESHGUI_MeshInfoDlg ( QWidget parent = 0,
int  page = BaseInfo 
)
SMESHGUI_MeshInfoDlg::~SMESHGUI_MeshInfoDlg ( )

Destructor.

References myIDPreview.

Member Function Documentation

void SMESHGUI_MeshInfoDlg::activate ( )
privateslot
void SMESHGUI_MeshInfoDlg::deactivate ( )
privateslot

Deactivate dialog box.

References myTabWidget, SMESHGUI::selectionMgr(), and updateInfo().

Referenced by SMESHGUI_MeshInfoDlg().

void SMESHGUI_MeshInfoDlg::enterEvent ( QEvent *  )
protected

Reactivate dialog box, when mouse pointer goes into it.

SMESHGUI_MeshInfoDlg::Handle ( SALOME_InteractiveObject  )
private

Referenced by idChanged(), and updateInfo().

void SMESHGUI_MeshInfoDlg::help ( )
privateslot

Show help page.

References AddInfo, BaseInfo, myTabWidget, and SMESH::ShowHelpFile().

Referenced by keyPressEvent(), and SMESHGUI_MeshInfoDlg().

void SMESHGUI_MeshInfoDlg::idPreviewChange ( bool  isOn)
privateslot
void SMESHGUI_MeshInfoDlg::keyPressEvent ( QKeyEvent *  e)
protected

Process keyboard event.

Parameters
ekey press event

References help().

void SMESHGUI_MeshInfoDlg::modeChanged ( )
privateslot

Called when users switches between node / element modes.

References myID, and updateSelection().

Referenced by SMESHGUI_MeshInfoDlg().

void SMESHGUI_MeshInfoDlg::reject ( )
void SMESHGUI_MeshInfoDlg::showItemInfo ( int  id)
privateslot
void SMESHGUI_MeshInfoDlg::showItemInfo ( const QString &  theStr)
privateslot

References ElemMode, myID, and myMode.

void SMESHGUI_MeshInfoDlg::updateInfo ( )
privateslot

Show mesh information.

References Handle(), SMESHGUI::selectionMgr(), and showInfo().

Referenced by deactivate(), and updateSelection().

void SMESHGUI_MeshInfoDlg::updateSelection ( )
privateslot

Field Documentation

SMESH_Actor* SMESHGUI_MeshInfoDlg::myActor
private
SMESHGUI_AddInfo* SMESHGUI_MeshInfoDlg::myAddInfo
private
SMESHGUI_MeshInfo* SMESHGUI_MeshInfoDlg::myBaseInfo
private
SMESHGUI_CtrlInfo* SMESHGUI_MeshInfoDlg::myCtrlInfo
private
SMESHGUI_ElemInfo* SMESHGUI_MeshInfoDlg::myElemInfo
private
QLineEdit* SMESHGUI_MeshInfoDlg::myID
private
SMESHGUI_IdPreview* SMESHGUI_MeshInfoDlg::myIDPreview
private
QCheckBox* SMESHGUI_MeshInfoDlg::myIDPreviewCheck
private

Referenced by idChanged(), and SMESHGUI_MeshInfoDlg().

QButtonGroup* SMESHGUI_MeshInfoDlg::myMode
private
QTabWidget* SMESHGUI_MeshInfoDlg::myTabWidget
private