Version: 8.3.0
SMESHGUI_MeasureDlg Class Reference

#include <SMESHGUI_Measurements.h>

Inheritance diagram for SMESHGUI_MeasureDlg:

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_MinDistancemyMinDist
 
SMESHGUI_BoundingBoxmyBndBox
 
SMESHGUI_BasicPropertiesmyBasicProps
 

Member Enumeration Documentation

anonymous enum
private
Enumerator
NodeMode 
ElemMode 
anonymous enum

Measurement type.

Enumerator
MinDistance 

minimum distance

BoundingBox 

bounding box

Length 

length

Area 

area

Volume 

volume

Constructor & Destructor Documentation

SMESHGUI_MeasureDlg::SMESHGUI_MeasureDlg ( QWidget parent = 0,
int  page = MinDistance 
)

Constructor.

Parameters
parentparent widget
pagespecifies 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.

Member Function Documentation

void SMESHGUI_MeasureDlg::activate ( )
privateslot
void SMESHGUI_MeasureDlg::enterEvent ( QEvent *  )
protected

Reactivate dialog box, when mouse pointer goes into it.

References activate().

void SMESHGUI_MeasureDlg::help ( )
privateslot

Show help page.

References BoundingBox, MinDistance, myTabWidget, and SMESH::ShowHelpFile().

Referenced by keyPressEvent(), and SMESHGUI_MeasureDlg().

void SMESHGUI_MeasureDlg::keyPressEvent ( QKeyEvent *  e)
protected

Process keyboard event.

Parameters
ekey press event

References help().

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().

void SMESHGUI_MeasureDlg::updateSelection ( )
privateslot

Field Documentation

SMESHGUI_BasicProperties* SMESHGUI_MeasureDlg::myBasicProps
private
SMESHGUI_BoundingBox* SMESHGUI_MeasureDlg::myBndBox
private
SMESHGUI_MinDistance* SMESHGUI_MeasureDlg::myMinDist
private
QTabWidget* SMESHGUI_MeasureDlg::myTabWidget
private