Centralized dialog box for the measurements. More...
#include <SMESHGUI_MeshInfo.h>
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_BaseInfo * | myBaseInfo |
SMESHGUI_ElemInfo * | myElemInfo |
SMESHGUI_AddInfo * | myAddInfo |
SMESHGUI_CtrlInfo * | myCtrlInfo |
QButtonGroup * | myMode |
QLineEdit * | myID |
QCheckBox * | myIDPreviewCheck |
GroupCombo * | myGroups |
SMESHGUI_IdPreview * | myIDPreview |
Centralized dialog box for the measurements.
Mesh information dialog box.
Move all business logic for element info to SMESHGUI_ElemInfo class.
Add selection button to reactivate selection on move from other dlg.
anonymous enum |
Constructor.
parent | Parent widget. |
page | Dialog page to show at start-up. Defaults to BaseInfo . |
References BaseInfo, deactivate(), dump(), ElemInfo, ElemMode, SMESHGUI::GetSMESHGUI(), SMESH::GetViewWindow(), GroupMode, help(), idChanged(), idPreviewChange(), MARGIN, modeChanged(), myAddInfo, myBaseInfo, myCtrlInfo, myElemInfo, myGroups, myID, myIDPreview, myIDPreviewCheck, myMode, myTabWidget, NodeMode, reject(), SMESHGUI::resourceMgr(), showItemInfo(), SPACING, switchMode(), and updateSelection().
SMESHGUI_MeshInfoDlg::~SMESHGUI_MeshInfoDlg | ( | ) |
Destructor.
References myIDPreview.
|
privateslot |
Deactivate dialog box.
References SMESHGUI::selectionMgr(), and updateInfo().
Referenced by SMESHGUI_MeshInfoDlg().
|
privateslot |
Dump information to file.
References AddInfo, BaseInfo, CtrlInfo, ElemInfo, DumpFileDlg::isChecked(), myAddInfo, myBaseInfo, myCtrlInfo, myElemInfo, myProxy, SMESHGUI::resourceMgr(), SMESHGUI_BaseInfo::saveInfo(), SMESHGUI_ElemInfo::saveInfo(), SMESHGUI_AddInfo::saveInfo(), SMESHGUI_CtrlInfo::saveInfo(), DumpFileDlg::setChecked(), and SMESHGUI_CtrlInfo::showInfo().
Referenced by SMESHGUI_MeshInfoDlg().
|
privateslot |
Show documentation on selected dialog page.
References AddInfo, BaseInfo, CtrlInfo, ElemInfo, myTabWidget, and SMESH::ShowHelpFile().
Referenced by keyPressEvent(), and SMESHGUI_MeshInfoDlg().
|
privateslot |
Called when users prints mesh element ID in the corresponding field.
References SMESH::SelectionProxy::actor(), SMESH::SelectionProxy::elementGravityCenter(), ElemInfo, ElemMode, SMESH_Actor::GetObject(), SMESH::GetSelector(), SMESH::GetViewWindow(), Handle(), SMESH::SelectionProxy::hasElement(), SMESH::SelectionProxy::hasNode(), myElemInfo, myID, myIDPreview, myIDPreviewCheck, myMode, myProxy, 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, SMESHGUI::resourceMgr(), and SMESHGUI_IdPreview::SetPointsLabeled().
Referenced by SMESHGUI_MeshInfoDlg().
|
protected |
|
privateslot |
Called when users switches between node / element modes.
References GroupMode, myID, myMode, switchMode(), and updateSelection().
Referenced by SMESHGUI_MeshInfoDlg().
void SMESHGUI_MeshInfoDlg::reject | ( | ) |
Clean-up on dialog 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 on given object.
io | Interactive object. |
Referenced by SMESHGUI::OnGUIEvent(), and updateInfo().
|
private |
Show mesh information on given object.
proxy | Selection proxy. |
References SMESH::SelectionProxy::actor(), SMESHGUI_ElemInfo::clear(), CtrlInfo, GroupCombo::currentGroup(), ElemMode, SMESH::GetNameOfSelectedElements(), SMESH::GetNameOfSelectedNodes(), SMESH::GetSelector(), GroupMode, myAddInfo, myBaseInfo, myCtrlInfo, myElemInfo, myGroups, myID, myMode, myProxy, myTabWidget, NodeMode, SMESH::SelectionProxy::object(), GroupCombo::setSource(), SMESHGUI_BaseInfo::showInfo(), SMESHGUI_AddInfo::showInfo(), SMESHGUI_CtrlInfo::showInfo(), and SMESHGUI_ElemInfo::showInfo().
|
privateslot |
Referenced by SMESHGUI_MeshInfoDlg().
|
signal |
Referenced by modeChanged(), and SMESHGUI_MeshInfoDlg().
|
privateslot |
Update information.
References myProxy, SMESHGUI::selectionMgr(), and showInfo().
Referenced by deactivate(), and updateSelection().
|
privateslot |
Set-up selection mode for currently selected page.
References ElemInfo, ElemMode, SMESH::GetViewWindow(), idChanged(), myID, myMode, myProxy, myTabWidget, NodeMode, SMESHGUI::selectionMgr(), SMESH::SetPointRepresentation(), and updateInfo().
Referenced by modeChanged(), and SMESHGUI_MeshInfoDlg().
|
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 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(), modeChanged(), showInfo(), showItemInfo(), SMESHGUI_MeshInfoDlg(), and updateSelection().
|
private |
Referenced by dump(), idChanged(), showInfo(), updateInfo(), and updateSelection().
|
private |
Referenced by help(), idChanged(), showInfo(), SMESHGUI_MeshInfoDlg(), and updateSelection().