Version: 9.12.0
SMESHGUI_Operation Class Reference

#include <SMESHGUI_Operation.h>

Inheritance diagram for SMESHGUI_Operation:

Public Member Functions

 SMESHGUI_Operation ()
 
virtual ~SMESHGUI_Operation ()
 

Protected Slots

virtual void onOk ()
 
virtual bool onApply ()
 
virtual void onCancel ()
 
void onHelp ()
 

Protected Member Functions

virtual void initDialog ()
 sets the dialog widgets to state just after operation start More...
 
virtual void startOperation ()
 
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
 

Constructor & Destructor Documentation

◆ SMESHGUI_Operation()

SMESHGUI_Operation::SMESHGUI_Operation ( )

References myHelpFileName.

◆ ~SMESHGUI_Operation()

SMESHGUI_Operation::~SMESHGUI_Operation ( )
virtual

Member Function Documentation

◆ getSMESHGUI()

◆ initDialog()

void SMESHGUI_Operation::initDialog ( )
protectedvirtual

sets the dialog widgets to state just after operation start

Reimplemented in SMESHGUI_SelectionOp, SMESHGUI_MeshOrderOp, and SMESHGUI_PrecomputeOp.

Referenced by startOperation().

◆ isApplyAndClose()

bool SMESHGUI_Operation::isApplyAndClose ( ) const
protectedvirtual

◆ isReadyToStart()

bool SMESHGUI_Operation::isReadyToStart ( ) const
protectedvirtual

◆ isValid()

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

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

◆ onApply

bool SMESHGUI_Operation::onApply ( )
protectedvirtualslot

Referenced by onOk(), and startOperation().

◆ onCancel

void SMESHGUI_Operation::onCancel ( )
protectedvirtualslot

◆ onHelp

void SMESHGUI_Operation::onHelp ( )
protectedslot

◆ onOk

void SMESHGUI_Operation::onOk ( )
protectedvirtualslot

◆ setDialogActive()

void SMESHGUI_Operation::setDialogActive ( const bool  active)
protectedvirtual

Set according dialog active or inactive.

References MESHCUT::d.

◆ setIsApplyAndClose()

void SMESHGUI_Operation::setIsApplyAndClose ( const bool  theFlag)
protectedvirtual

References myIsApplyAndClose.

Referenced by onOk().

◆ startOperation()

Field Documentation

◆ myHelpFileName

◆ myIsApplyAndClose

bool SMESHGUI_Operation::myIsApplyAndClose
protected