Version: 8.3.0
SMESHGUI_BaseComputeOp Class Reference

Base operation to compute a mesh and show computation errors. More...

#include <SMESHGUI_ComputeDlg.h>

Inheritance diagram for SMESHGUI_BaseComputeOp:

Public Member Functions

 SMESHGUI_BaseComputeOp ()
 Constructor. More...
 
virtual ~SMESHGUI_BaseComputeOp ()
 Destructor. More...
 
SMESH::SMESH_Mesh_ptr getMesh ()
 

Protected Slots

virtual bool onApply ()
 returns from compute mesh result dialog More...
 
void onPreviewShape ()
 update preview More...
 
void onPublishShape ()
 publish selected sub-shape More...
 
void onShowBadMesh ()
 show mesh elements preventing computation of a submesh of current row More...
 
void onGroupOfBadMesh ()
 create groups of bad mesh elements preventing computation of a submesh of current row More...
 
void currentCellChanged ()
 SLOT called when a selected cell in table() changed. More...
 
virtual void onOk ()
 
virtual void onCancel ()
 
void onHelp ()
 

Protected Member Functions

virtual void startOperation ()
 Start operation Init dialog fields, connect signals and slots, show dialog. More...
 
virtual void stopOperation ()
 Stops operation. More...
 
SMESHGUI_ComputeDlgcomputeDlg () const
 Gets dialog of compute operation. More...
 
void computeMesh ()
 computeMesh() More...
 
void showComputeResult (const bool, const bool, SMESH::compute_error_array_var &, const bool, const QString &)
 
SMESHGUI_ComputeDlgevaluateDlg () const
 Gets dialog of evaluate operation. More...
 
void evaluateMesh ()
 evaluateMesh() More...
 
void showEvaluateResult (const SMESH::long_array &theRes, const bool, const bool, SMESH::compute_error_array_var &, const bool, const QString &)
 
virtual bool isValid (SUIT_Operation *theOp) const
 check the same operations on the same mesh More...
 
 Handle (SALOME_InteractiveObject) myIObject
 
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
 

Protected Attributes

SMESH::SMESH_Mesh_var myMesh
 
GEOM::GEOM_Object_var myMainShape
 
GEOM::GEOM_Object_var myCurShape
 
SMESH::TShapeDisplayermyTShapeDisplayer
 
SMESHGUI_MeshEditPreviewmyBadMeshDisplayer
 
QString myHelpFileName
 
bool myIsApplyAndClose
 

Private Member Functions

QTableWidgettable ()
 Return a table. More...
 

Private Attributes

QPointer< SMESHGUI_ComputeDlgmyCompDlg
 

Detailed Description

Base operation to compute a mesh and show computation errors.

Constructor & Destructor Documentation

SMESHGUI_BaseComputeOp::SMESHGUI_BaseComputeOp ( )
SMESHGUI_BaseComputeOp::~SMESHGUI_BaseComputeOp ( )
virtual

Destructor.

References myBadMeshDisplayer, myCompDlg, and myTShapeDisplayer.

Member Function Documentation

SMESHGUI_ComputeDlg * SMESHGUI_BaseComputeOp::computeDlg ( ) const
protected
SMESHGUI_ComputeDlg * SMESHGUI_BaseComputeOp::evaluateDlg ( ) const
protected

Gets dialog of evaluate operation.

Return values
SMESHGUI_ComputeDlg*- pointer to dialog of this operation

References currentCellChanged(), me, myCompDlg, onPreviewShape(), onPublishShape(), onShowBadMesh(), and table().

Referenced by SMESHGUI_EvaluateOp::dlg(), showEvaluateResult(), and SMESHGUI_EvaluateOp::startOperation().

SMESH::SMESH_Mesh_ptr SMESHGUI_BaseComputeOp::getMesh ( )

References SMESH::GetMeshByIO(), Handle(), and myMesh.

Referenced by isValid().

SMESHGUI_BaseComputeOp::Handle ( SALOME_InteractiveObject  )
protected

Referenced by computeMesh(), and getMesh().

void SMESHGUI_Operation::initDialog ( )
protectedvirtualinherited

sets the dialog widgets to state just after operation start

Reimplemented in SMESHGUI_PrecomputeOp, SMESHGUI_SelectionOp, and SMESHGUI_MeshOrderOp.

Referenced by SMESHGUI_Operation::startOperation().

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_BaseComputeOp::isValid ( SUIT_Operation *  theOp) const
protectedvirtual

check the same operations on the same mesh

Reimplemented from SMESHGUI_Operation.

References getMesh(), and myMesh.

bool SMESHGUI_BaseComputeOp::onApply ( )
protectedvirtualslot

returns from compute mesh result dialog

Referenced by SMESHGUI_PrecomputeOp::startOperation().

void SMESHGUI_Operation::onCancel ( )
protectedvirtualslotinherited
void SMESHGUI_BaseComputeOp::onGroupOfBadMesh ( )
protectedslot

create groups of bad mesh elements preventing computation of a submesh of current row

References SMESHGUI_Operation::_PTR(), COL_BAD_MESH, COL_SHAPE, COL_SHAPEID, SMESH::getSelectedRows(), SMESHGUI::GetSMESHGen(), SMESHGUI_Operation::getSMESHGUI(), myMesh, SObject(), and table().

Referenced by computeDlg().

void SMESHGUI_Operation::onHelp ( )
protectedslotinherited
void SMESHGUI_Operation::onOk ( )
protectedvirtualslotinherited
void SMESHGUI_BaseComputeOp::onPreviewShape ( )
protectedslot
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_BaseComputeOp::startOperation ( )
protectedvirtual
void SMESHGUI_BaseComputeOp::stopOperation ( )
protectedvirtual
QTableWidget * SMESHGUI_BaseComputeOp::table ( )
private

Field Documentation

SMESHGUI_MeshEditPreview* SMESHGUI_BaseComputeOp::myBadMeshDisplayer
protected
QPointer<SMESHGUI_ComputeDlg> SMESHGUI_BaseComputeOp::myCompDlg
private
GEOM::GEOM_Object_var SMESHGUI_BaseComputeOp::myCurShape
protected

Referenced by computeMesh(), and startOperation().

bool SMESHGUI_Operation::myIsApplyAndClose
protectedinherited