Version: 8.3.0
SMESHGUI_MeshOrderOp Class Reference

Operator to check and modify mesh computation submesh priority (order) More...

#include <SMESHGUI_MeshOrderOp.h>

Inheritance diagram for SMESHGUI_MeshOrderOp:

Public Member Functions

 SMESHGUI_MeshOrderOp ()
 Constructor. More...
 
virtual ~SMESHGUI_MeshOrderOp ()
 Destructor. More...
 

Protected Slots

virtual bool onApply ()
 Apply changes. More...
 
virtual void onCancel ()
 Apply changes. More...
 
virtual void onOk ()
 
void onHelp ()
 

Protected Member Functions

virtual LightApp_Dialogdlg () const
 Return operation dialog. More...
 
virtual void startOperation ()
 perform it's intention action: compute 2D mesh on 3D More...
 
virtual void initDialog ()
 sets the dialog widgets to state just after operation start More...
 
virtual bool isReadyToStart () const
 
virtual void setIsApplyAndClose (const bool theFlag)
 
virtual bool isApplyAndClose () const
 
virtual void setDialogActive (const bool)
 Set according dialog active or inactive. More...
 
SMESHGUIgetSMESHGUI () const
 
bool isStudyLocked (const bool=true) const
 Verifies whether study of operation is locked. More...
 
 _PTR (Study) studyDS() const
 
virtual bool isValid (SUIT_Operation *) const
 Verifies whether given operator is valid for this one. More...
 

Protected Attributes

QString myHelpFileName
 
bool myIsApplyAndClose
 

Private Attributes

SMESHGUI_MeshOrderDlgmyDlg
 
SMESHGUI_MeshOrderMgrmyMgr
 

Detailed Description

Operator to check and modify mesh computation submesh priority (order)

Constructor & Destructor Documentation

SMESHGUI_MeshOrderOp::SMESHGUI_MeshOrderOp ( )

Constructor.

References myDlg, and SMESHGUI_Operation::myHelpFileName.

SMESHGUI_MeshOrderOp::~SMESHGUI_MeshOrderOp ( )
virtual

Destructor.

Member Function Documentation

LightApp_Dialog * SMESHGUI_MeshOrderOp::dlg ( ) const
protectedvirtual

Return operation dialog.

References myDlg.

void SMESHGUI_MeshOrderOp::initDialog ( )
protectedvirtual

sets the dialog widgets to state just after operation start

Init dialog and mesh order box.

Reimplemented from SMESHGUI_Operation.

References SMESH::GetMeshByIO(), SMESHGUI_MeshOrderMgr::GetMeshOrder(), SMESHGUI_MeshOrderDlg::GetMeshOrderBox(), myDlg, myMgr, onCancel(), and SMESHGUI_MeshOrderMgr::SetMesh().

bool SMESHGUI_Operation::isApplyAndClose ( ) const
protectedvirtualinherited
bool SMESHGUI_Operation::isReadyToStart ( ) const
protectedvirtualinherited
bool SMESHGUI_Operation::isStudyLocked ( const bool  theMess = true) const
protectedinherited

Verifies whether study of operation is locked.

Parameters
theMess- specifies whether message box must be shown if study is locked
Returns
State of study.

Verifies whether study of operation is locked. If second parameter is TRUE and study is locked when corresponding message box appears

References SMESHGUI::desktop(), and studyDS().

Referenced by SMESHGUI_Operation::isReadyToStart(), SMESHGUI_GroupOnShapeOp::onApply(), SMESHGUI_ReorientFacesOp::onApply(), SMESHGUI_MakeNodeAtPointOp::onApply(), SMESHGUI_MeshOp::onApply(), and SMESHGUI_Make2DFrom3DOp::onApply().

bool SMESHGUI_Operation::isValid ( SUIT_Operation *  theOtherOp) const
protectedvirtualinherited

Verifies whether given operator is valid for this one.

Parameters
theOtherOp- other operation
Returns
Returns TRUE if the given operator is valid for this one, FALSE otherwise

Virtual method redefined from base class verifies whether given operator is valid for this one (i.e. can be started "above" this operator). In current implementation method returns false if theOtherOp operation is not intended for deleting objects or mesh elements.

Reimplemented in SMESHGUI_BaseComputeOp, and SMESHGUI_MeshOp.

Referenced by SMESHGUI_MeshOp::isValid().

bool SMESHGUI_MeshOrderOp::onApply ( )
protectedvirtualslot
void SMESHGUI_MeshOrderOp::onCancel ( )
protectedvirtualslot

Apply changes.

References myMgr.

Referenced by initDialog().

void SMESHGUI_Operation::onHelp ( )
protectedslotinherited
void SMESHGUI_Operation::onOk ( )
protectedvirtualslotinherited
void SMESHGUI_Operation::setDialogActive ( const bool  active)
protectedvirtualinherited

Set according dialog active or inactive.

References MESHCUT::d, and SMESHGUI_Dialog::setContentActive().

void SMESHGUI_Operation::setIsApplyAndClose ( const bool  theFlag)
protectedvirtualinherited
void SMESHGUI_MeshOrderOp::startOperation ( )
protectedvirtual

perform it's intention action: compute 2D mesh on 3D

Reimplemented from SMESHGUI_Operation.

References myDlg, myMgr, SMESHGUI_Dialog::show(), and SMESHGUI_Operation::startOperation().

Field Documentation

SMESHGUI_MeshOrderDlg* SMESHGUI_MeshOrderOp::myDlg
private
bool SMESHGUI_Operation::myIsApplyAndClose
protectedinherited
SMESHGUI_MeshOrderMgr* SMESHGUI_MeshOrderOp::myMgr
private