#include <SMESHGUI_Measurements.h>
Public Types | |
enum | { MinDistance, BoundingBox, Length, Area, Volume } |
Measurement type. More... | |
Public Member Functions | |
SMESHGUI_MeasureDlg (QWidget *=0, int=MinDistance) | |
Constructor. More... | |
~SMESHGUI_MeasureDlg () | |
Destructor. 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 | activate () |
Activate dialog box. More... | |
void | deactivate () |
Deactivate dialog box. More... | |
Private Attributes | |
QTabWidget * | myTabWidget |
SMESHGUI_MinDistance * | myMinDist |
SMESHGUI_BoundingBox * | myBndBox |
SMESHGUI_BasicProperties * | myBasicProps |
anonymous enum |
SMESHGUI_MeasureDlg::SMESHGUI_MeasureDlg | ( | QWidget * | parent = 0 , |
int | page = MinDistance |
||
) |
Constructor.
parent | parent widget |
page | specifies the dialog page to be shown at the start-up |
References Area, BoundingBox, deactivate(), SMESHGUI::GetSMESHGUI(), help(), Length, MinDistance, myBasicProps, myBndBox, myMinDist, myTabWidget, reject(), SMESHGUI::resourceMgr(), SMESHGUI_BasicProperties::setMode(), updateSelection(), and Volume.
SMESHGUI_MeasureDlg::~SMESHGUI_MeasureDlg | ( | ) |
Destructor.
|
privateslot |
Activate dialog box.
References SMESHGUI::EmitSignalDeactivateDialog(), SMESHGUI::GetSMESHGUI(), myTabWidget, SMESHGUI::SetActiveDialogBox(), and updateSelection().
Referenced by enterEvent().
|
privateslot |
Deactivate dialog box.
References SMESHGUI_MinDistance::deactivate(), SMESHGUI_BoundingBox::deactivate(), SMESHGUI_BasicProperties::deactivate(), myBasicProps, myBndBox, myMinDist, myTabWidget, and SMESHGUI::selectionMgr().
Referenced by SMESHGUI_MeasureDlg().
|
protected |
Reactivate dialog box, when mouse pointer goes into it.
References activate().
|
privateslot |
Show help page.
References BoundingBox, MinDistance, myTabWidget, and SMESH::ShowHelpFile().
Referenced by keyPressEvent(), and SMESHGUI_MeasureDlg().
|
protected |
void SMESHGUI_MeasureDlg::reject | ( | ) |
Perform clean-up actions on the dialog box closing.
References SMESH::GetViewWindow(), SMESHGUI::selectionMgr(), and SMESH::SetPointRepresentation().
Referenced by SMESHGUI_MeasureDlg().
|
privateslot |
Setup selection mode depending on the current dialog box state.
References BoundingBox, SMESHGUI_BoundingBox::erasePreview(), MinDistance, myBasicProps, myBndBox, myMinDist, myTabWidget, SMESHGUI_MinDistance::updateSelection(), SMESHGUI_BoundingBox::updateSelection(), and SMESHGUI_BasicProperties::updateSelection().
Referenced by activate(), and SMESHGUI_MeasureDlg().
|
private |
Referenced by deactivate(), SMESHGUI_MeasureDlg(), and updateSelection().
|
private |
Referenced by deactivate(), SMESHGUI_MeasureDlg(), and updateSelection().
|
private |
Referenced by deactivate(), SMESHGUI_MeasureDlg(), and updateSelection().
|
private |
Referenced by activate(), deactivate(), help(), SMESHGUI_MeasureDlg(), and updateSelection().