Version: 9.12.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...
 

Signals

void switchMode (int)
 

Public Member Functions

 SMESHGUI_MeshInfoDlg (QWidget *=0, int=BaseInfo)
 Constructor. More...
 
 ~SMESHGUI_MeshInfoDlg ()
 Destructor. More...
 
void showInfo (const Handle(SALOME_InteractiveObject)&)
 Show mesh information on given object. More...
 
void reject ()
 Clean-up on dialog closing. More...
 

Protected Member Functions

void keyPressEvent (QKeyEvent *)
 Process keyboard event. More...
 

Private Types

enum  { NodeMode , ElemMode , GroupMode }
 

Private Slots

void help ()
 Show documentation on selected dialog page. More...
 
void updateSelection ()
 Set-up selection mode for currently selected page. More...
 
void updateInfo ()
 Update information. 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 type, const QString &ids)
 
void dump ()
 Dump information to file. More...
 

Private Member Functions

void showInfo (const SMESH::SelectionProxy &)
 Show mesh information on given object. More...
 

Private Attributes

SMESH::SelectionProxy myProxy
 
QTabWidget * myTabWidget
 
SMESHGUI_BaseInfomyBaseInfo
 
SMESHGUI_ElemInfomyElemInfo
 
SMESHGUI_AddInfomyAddInfo
 
SMESHGUI_CtrlInfomyCtrlInfo
 
QButtonGroup * myMode
 
QLineEdit * myID
 
QCheckBox * myIDPreviewCheck
 
GroupCombomyGroups
 
SMESHGUI_IdPreviewmyIDPreview
 

Detailed Description

Centralized dialog box for the measurements.

Mesh information dialog box.

Todo:

Move all business logic for element info to SMESHGUI_ElemInfo class.

Add selection button to reactivate selection on move from other dlg.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
NodeMode 
ElemMode 
GroupMode 

◆ anonymous enum

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::SMESHGUI_MeshInfoDlg ( QWidget parent = 0,
int  page = BaseInfo 
)

◆ ~SMESHGUI_MeshInfoDlg()

SMESHGUI_MeshInfoDlg::~SMESHGUI_MeshInfoDlg ( )

Destructor.

References myIDPreview.

Member Function Documentation

◆ deactivate

void SMESHGUI_MeshInfoDlg::deactivate ( )
privateslot

Deactivate dialog box.

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

Referenced by SMESHGUI_MeshInfoDlg().

◆ dump

◆ help

void SMESHGUI_MeshInfoDlg::help ( )
privateslot

Show documentation on selected dialog page.

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

Referenced by keyPressEvent(), and SMESHGUI_MeshInfoDlg().

◆ idChanged

◆ idPreviewChange

void SMESHGUI_MeshInfoDlg::idPreviewChange ( bool  isOn)
privateslot

◆ keyPressEvent()

void SMESHGUI_MeshInfoDlg::keyPressEvent ( QKeyEvent *  e)
protected

Process keyboard event.

Parameters
eKey press event.

References help().

◆ modeChanged

void SMESHGUI_MeshInfoDlg::modeChanged ( )
privateslot

Called when users switches between node / element modes.

References GroupMode, myID, myMode, switchMode(), and updateSelection().

Referenced by SMESHGUI_MeshInfoDlg().

◆ reject()

void SMESHGUI_MeshInfoDlg::reject ( )

◆ showInfo() [1/2]

void SMESHGUI_MeshInfoDlg::showInfo ( const Handle(SALOME_InteractiveObject)&  io)

Show mesh information on given object.

Parameters
ioInteractive object.

Referenced by SMESHGUI::OnGUIEvent(), and updateInfo().

◆ showInfo() [2/2]

◆ showItemInfo

void SMESHGUI_MeshInfoDlg::showItemInfo ( int  type,
const QString &  ids 
)
privateslot

References myID, and myMode.

Referenced by SMESHGUI_MeshInfoDlg().

◆ switchMode

void SMESHGUI_MeshInfoDlg::switchMode ( int  )
signal

◆ updateInfo

void SMESHGUI_MeshInfoDlg::updateInfo ( )
privateslot

Update information.

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

Referenced by deactivate(), and updateSelection().

◆ updateSelection

void SMESHGUI_MeshInfoDlg::updateSelection ( )
privateslot

Field Documentation

◆ myAddInfo

SMESHGUI_AddInfo* SMESHGUI_MeshInfoDlg::myAddInfo
private

◆ myBaseInfo

SMESHGUI_BaseInfo* SMESHGUI_MeshInfoDlg::myBaseInfo
private

◆ myCtrlInfo

SMESHGUI_CtrlInfo* SMESHGUI_MeshInfoDlg::myCtrlInfo
private

◆ myElemInfo

SMESHGUI_ElemInfo* SMESHGUI_MeshInfoDlg::myElemInfo
private

◆ myGroups

GroupCombo* SMESHGUI_MeshInfoDlg::myGroups
private

Referenced by showInfo(), and SMESHGUI_MeshInfoDlg().

◆ myID

QLineEdit* SMESHGUI_MeshInfoDlg::myID
private

◆ myIDPreview

SMESHGUI_IdPreview* SMESHGUI_MeshInfoDlg::myIDPreview
private

◆ myIDPreviewCheck

QCheckBox* SMESHGUI_MeshInfoDlg::myIDPreviewCheck
private

Referenced by idChanged(), and SMESHGUI_MeshInfoDlg().

◆ myMode

QButtonGroup* SMESHGUI_MeshInfoDlg::myMode
private

◆ myProxy

SMESH::SelectionProxy SMESHGUI_MeshInfoDlg::myProxy
private

◆ myTabWidget

QTabWidget* SMESHGUI_MeshInfoDlg::myTabWidget
private