Version: 9.16.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
 
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::SMESHGUI_MeshOrderOp ( )

Constructor.

References myDlg, and SMESHGUI_Operation::myHelpFileName.

◆ ~SMESHGUI_MeshOrderOp()

SMESHGUI_MeshOrderOp::~SMESHGUI_MeshOrderOp ( )
virtual

Destructor.

Member Function Documentation

◆ dlg()

LightApp_Dialog * SMESHGUI_MeshOrderOp::dlg ( ) const
protectedvirtual

Return operation dialog.

References myDlg.

◆ getSMESHGUI()

◆ initDialog()

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

◆ isApplyAndClose()

◆ isReadyToStart()

bool SMESHGUI_Operation::isReadyToStart ( ) const
protectedvirtualinherited

◆ isValid()

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_MeshOp, and SMESHGUI_BaseComputeOp.

Referenced by SMESHGUI_MeshOp::isValid().

◆ onApply

bool SMESHGUI_MeshOrderOp::onApply ( )
protectedvirtualslot

◆ onCancel

void SMESHGUI_MeshOrderOp::onCancel ( )
protectedvirtualslot

Apply changes.

References myMgr.

Referenced by initDialog().

◆ onHelp

void SMESHGUI_Operation::onHelp ( )
protectedslotinherited

◆ onOk

void SMESHGUI_Operation::onOk ( )
protectedvirtualslotinherited

◆ setDialogActive()

void SMESHGUI_Operation::setDialogActive ( const bool  active)
protectedvirtualinherited

Set according dialog active or inactive.

References MESHCUT::d.

◆ setIsApplyAndClose()

void SMESHGUI_Operation::setIsApplyAndClose ( const bool  theFlag)
protectedvirtualinherited

◆ startOperation()

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

◆ myDlg

SMESHGUI_MeshOrderDlg* SMESHGUI_MeshOrderOp::myDlg
private

◆ myHelpFileName

◆ myIsApplyAndClose

bool SMESHGUI_Operation::myIsApplyAndClose
protectedinherited

◆ myMgr

SMESHGUI_MeshOrderMgr* SMESHGUI_MeshOrderOp::myMgr
private