Centralized dialog box for the measurements. More...
#include <SMESHGUI_MeshInfo.h>
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_MeshInfo * | myBaseInfo |
QButtonGroup * | myMode |
QLineEdit * | myID |
QCheckBox * | myIDPreviewCheck |
SMESHGUI_IdPreview * | myIDPreview |
SMESHGUI_ElemInfo * | myElemInfo |
SMESHGUI_AddInfo * | myAddInfo |
SMESHGUI_CtrlInfo * | myCtrlInfo |
SMESH_Actor * | myActor |
Centralized dialog box for the measurements.
Mesh information dialog box.
anonymous enum |
Constructor.
parent | parent widget |
page | specifies the dialog page to be shown at the start-up |
References BaseInfo, deactivate(), dump(), ElemInfo, ElemMode, SMESHGUI::GetSMESHGUI(), SMESH::GetViewWindow(), help(), idChanged(), idPreviewChange(), MARGIN, modeChanged(), myAddInfo, myBaseInfo, myCtrlInfo, myElemInfo, myID, myIDPreview, myIDPreviewCheck, myMode, myTabWidget, NodeMode, reject(), SMESHGUI::resourceMgr(), showItemInfo(), SPACING, and updateSelection().
SMESHGUI_MeshInfoDlg::~SMESHGUI_MeshInfoDlg | ( | ) |
Destructor.
References myIDPreview.
|
privateslot |
Activate dialog box.
References SMESHGUI::EmitSignalDeactivateDialog(), SMESHGUI::GetSMESHGUI(), myTabWidget, SMESHGUI::SetActiveDialogBox(), and updateSelection().
|
privateslot |
Deactivate dialog box.
References myTabWidget, SMESHGUI::selectionMgr(), and updateInfo().
Referenced by SMESHGUI_MeshInfoDlg().
|
privateslot |
References _PTR(), DumpFileDlg::myAddChk, myAddInfo, DumpFileDlg::myBaseChk, myBaseInfo, DumpFileDlg::myCtrlChk, myCtrlInfo, DumpFileDlg::myElemChk, myElemInfo, SMESHGUI::resourceMgr(), SMESHGUI_MeshInfo::saveInfo(), SMESHGUI_ElemInfo::saveInfo(), SMESHGUI_AddInfo::saveInfo(), and SMESHGUI_CtrlInfo::saveInfo().
Referenced by SMESHGUI_MeshInfoDlg().
|
protected |
Reactivate dialog box, when mouse pointer goes into it.
|
private |
Referenced by idChanged(), and updateInfo().
|
privateslot |
Show help page.
References AddInfo, BaseInfo, myTabWidget, and SMESH::ShowHelpFile().
Referenced by keyPressEvent(), and SMESHGUI_MeshInfoDlg().
|
privateslot |
Called when users prints mesh element ID in the corresponding field.
References ElemInfo, ElemMode, SMESHGUI_ElemInfo::getGravityCenter(), SMESH_Actor::GetObject(), SMESH::GetSelector(), SMESH::GetViewWindow(), Handle(), myActor, myElemInfo, myID, myIDPreview, myIDPreviewCheck, myMode, myTabWidget, NodeMode, SMESHGUI_IdPreview::SetElemsData(), SMESHGUI_IdPreview::SetPointsData(), SMESHGUI_IdPreview::SetPointsLabeled(), and SMESHGUI_ElemInfo::showInfo().
Referenced by SMESHGUI_MeshInfoDlg(), and updateSelection().
|
privateslot |
Show IDs clicked.
References SMESH::GetViewWindow(), myID, myIDPreview, and SMESHGUI_IdPreview::SetPointsLabeled().
Referenced by SMESHGUI_MeshInfoDlg().
|
protected |
|
privateslot |
Called when users switches between node / element modes.
References myID, and updateSelection().
Referenced by SMESHGUI_MeshInfoDlg().
void SMESHGUI_MeshInfoDlg::reject | ( | ) |
Perform clean-up actions on the dialog box closing.
References SMESH::GetViewWindow(), myIDPreview, SMESHGUI::selectionMgr(), SMESH::SetPointRepresentation(), and SMESHGUI_IdPreview::SetPointsLabeled().
Referenced by SMESHGUI_MeshInfoDlg().
void SMESHGUI_MeshInfoDlg::showInfo | ( | const Handle(SALOME_InteractiveObject)& | IO | ) |
Show mesh information.
IO | interactive object |
References SMESHGUI_ElemInfo::clear(), CtrlInfo, ElemMode, SMESH::FindActorByEntry(), SMESH::GetNameOfSelectedElements(), SMESH::GetNameOfSelectedNodes(), SMESH::GetSelector(), myActor, myAddInfo, myBaseInfo, myCtrlInfo, myElemInfo, myID, myMode, myTabWidget, NodeMode, SMESHGUI_ElemInfo::setSource(), SMESHGUI_MeshInfo::showInfo(), SMESHGUI_ElemInfo::showInfo(), SMESHGUI_AddInfo::showInfo(), and SMESHGUI_CtrlInfo::showInfo().
Referenced by SMESHGUI::OnGUIEvent(), and updateInfo().
|
privateslot |
References SMESH_Actor::GetObject(), myActor, myID, myMode, and NodeMode.
Referenced by SMESHGUI_MeshInfoDlg().
|
privateslot |
|
privateslot |
Show mesh information.
References Handle(), SMESHGUI::selectionMgr(), and showInfo().
Referenced by deactivate(), and updateSelection().
|
privateslot |
Setup selection mode depending on the current dialog box state.
References AddInfo, BaseInfo, CtrlInfo, SMESH::GetViewWindow(), idChanged(), myActor, myID, myMode, myTabWidget, NodeMode, SMESHGUI::selectionMgr(), SMESH::SetPointRepresentation(), and updateInfo().
Referenced by activate(), modeChanged(), and SMESHGUI_MeshInfoDlg().
|
private |
Referenced by idChanged(), showInfo(), showItemInfo(), and updateSelection().
|
private |
Referenced by dump(), showInfo(), and SMESHGUI_MeshInfoDlg().
|
private |
Referenced by dump(), showInfo(), and SMESHGUI_MeshInfoDlg().
|
private |
Referenced by dump(), showInfo(), and SMESHGUI_MeshInfoDlg().
|
private |
Referenced by dump(), idChanged(), showInfo(), and SMESHGUI_MeshInfoDlg().
|
private |
Referenced by idChanged(), idPreviewChange(), modeChanged(), showInfo(), showItemInfo(), SMESHGUI_MeshInfoDlg(), and updateSelection().
|
private |
Referenced by idChanged(), idPreviewChange(), reject(), SMESHGUI_MeshInfoDlg(), and ~SMESHGUI_MeshInfoDlg().
|
private |
Referenced by idChanged(), and SMESHGUI_MeshInfoDlg().
|
private |
Referenced by idChanged(), showInfo(), showItemInfo(), SMESHGUI_MeshInfoDlg(), and updateSelection().
|
private |
Referenced by activate(), deactivate(), help(), idChanged(), showInfo(), SMESHGUI_MeshInfoDlg(), and updateSelection().