Version: 8.3.0
SMESHGUI_PrecomputeOp Class Reference

Operation to preview and compute a mesh and show computation errors. More...

#include <SMESHGUI_ComputeDlg.h>

Inheritance diagram for SMESHGUI_PrecomputeOp:

Public Member Functions

 SMESHGUI_PrecomputeOp ()
 Constructor. More...
 
virtual ~SMESHGUI_PrecomputeOp ()
 Destructor. More...
 
virtual LightApp_Dialogdlg () const
 Gets current dialog of this operation. More...
 
SMESH::SMESH_Mesh_ptr getMesh ()
 

Static Public Member Functions

static void getAssignedAlgos (_PTR(SObject) theMesh, QMap< int, int > &theModeMap)
 returns map of assigned algorithms modes More...
 

Protected Slots

virtual void onCancel ()
 perform it's intention action: compute mesh More...
 
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 ()
 
void onHelp ()
 

Protected Member Functions

virtual void startOperation ()
 perform it's intention action: prepare data More...
 
virtual void stopOperation ()
 Stops operation. More...
 
virtual void resumeOperation ()
 reinitialize dialog after operaiton become active again More...
 
virtual void initDialog ()
 perform it's intention action: reinitialise dialog 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 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 Types

typedef QList< intTListOfInt
 fields for mesh order More...
 
typedef QList< TListOfIntTListOfListOfInt
 

Private Slots

void onPreview ()
 perform it's intention action: preview mesh More...
 
void onCompute ()
 perform it's intention action: compute mesh More...
 

Private Attributes

QMap< int, intmyMapShapeId
 private fields More...
 
QPointer< LightApp_DialogmyActiveDlg
 
QPointer< SMESHGUI_PrecomputeDlgmyDlg
 
SMESHGUI_MeshEditPreviewmyPreviewDisplayer
 
TListOfListOfInt myPrevOrder
 
SMESHGUI_MeshOrderMgrmyOrderMgr
 

Detailed Description

Operation to preview and compute a mesh and show computation errors.

Member Typedef Documentation

typedef QList<int> SMESHGUI_PrecomputeOp::TListOfInt
private

fields for mesh order

Constructor & Destructor Documentation

SMESHGUI_PrecomputeOp::SMESHGUI_PrecomputeOp ( )

Constructor.

SMESHGUI_PrecomputeOp::~SMESHGUI_PrecomputeOp ( )
virtual

Destructor.

References myActiveDlg, myDlg, myOrderMgr, and myPreviewDisplayer.

Member Function Documentation

LightApp_Dialog * SMESHGUI_PrecomputeOp::dlg ( ) const
virtual

Gets current dialog of this operation.

Return values
LightApp_Dialog*- pointer to dialog of this operation

References myActiveDlg.

void SMESHGUI_PrecomputeOp::getAssignedAlgos ( _PTR(SObject theMesh,
QMap< int, int > &  theModeMap 
)
static
SMESH::SMESH_Mesh_ptr SMESHGUI_BaseComputeOp::getMesh ( )
inherited
SMESHGUI_BaseComputeOp::Handle ( SALOME_InteractiveObject  )
protectedinherited
void SMESHGUI_PrecomputeOp::initDialog ( )
protectedvirtual
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
protectedvirtualinherited

check the same operations on the same mesh

Reimplemented from SMESHGUI_Operation.

References SMESHGUI_BaseComputeOp::getMesh(), and SMESHGUI_BaseComputeOp::myMesh.

bool SMESHGUI_BaseComputeOp::onApply ( )
protectedvirtualslotinherited

returns from compute mesh result dialog

Referenced by startOperation().

void SMESHGUI_PrecomputeOp::onCancel ( )
protectedvirtualslot
void SMESHGUI_BaseComputeOp::onGroupOfBadMesh ( )
protectedslotinherited
void SMESHGUI_Operation::onHelp ( )
protectedslotinherited
void SMESHGUI_Operation::onOk ( )
protectedvirtualslotinherited
void SMESHGUI_PrecomputeOp::resumeOperation ( )
protectedvirtual

reinitialize dialog after operaiton become active again

References initDialog(), myActiveDlg, and myDlg.

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_PrecomputeOp::stopOperation ( )
protectedvirtual

Field Documentation

QPointer<LightApp_Dialog> SMESHGUI_PrecomputeOp::myActiveDlg
private
GEOM::GEOM_Object_var SMESHGUI_BaseComputeOp::myCurShape
protectedinherited
bool SMESHGUI_Operation::myIsApplyAndClose
protectedinherited
QMap< int, int > SMESHGUI_PrecomputeOp::myMapShapeId
private

private fields

Referenced by onCancel(), onCompute(), onPreview(), and stopOperation().

SMESHGUI_MeshOrderMgr* SMESHGUI_PrecomputeOp::myOrderMgr
private
SMESHGUI_MeshEditPreview* SMESHGUI_PrecomputeOp::myPreviewDisplayer
private
TListOfListOfInt SMESHGUI_PrecomputeOp::myPrevOrder
private

Referenced by initDialog(), and onCancel().