Base operation to compute a mesh and show computation errors. More...
#include <SMESHGUI_ComputeDlg.h>

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_ComputeDlg * | computeDlg () 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_ComputeDlg * | evaluateDlg () 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... | |
| SMESHGUI * | getSMESHGUI () 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::TShapeDisplayer * | myTShapeDisplayer |
| SMESHGUI_MeshEditPreview * | myBadMeshDisplayer |
| QString | myHelpFileName |
| bool | myIsApplyAndClose |
Private Member Functions | |
| QTableWidget * | table () |
| Return a table. More... | |
Private Attributes | |
| QPointer< SMESHGUI_ComputeDlg > | myCompDlg |
Base operation to compute a mesh and show computation errors.
| SMESHGUI_BaseComputeOp::SMESHGUI_BaseComputeOp | ( | ) |
Constructor.
References myBadMeshDisplayer, SMESHGUI_Operation::myHelpFileName, and myTShapeDisplayer.
|
virtual |
Destructor.
References myBadMeshDisplayer, myCompDlg, and myTShapeDisplayer.
|
protectedinherited |
Referenced by SMESHGUI_ShapeByMeshOp::commitOperation(), SMESHGUI_Make2DFrom3DOp::compute2DMesh(), computeMesh(), SMESHGUI_ConvToQuadOp::ConnectRadioButtons(), evaluateMesh(), SMESHGUI_PrecomputeOp::getAssignedAlgos(), SMESHGUI_PrecomputeOp::initDialog(), SMESHGUI_ReorientFacesOp::isValid(), SMESHGUI_Make2DFrom3DOp::isValid(), SMESHGUI_ConvToQuadOp::onApply(), SMESHGUI_GroupOnShapeOp::onApply(), SMESHGUI_SplitBiQuadOp::onApply(), onGroupOfBadMesh(), SMESHGUI_PrecomputeOp::onPreview(), SMESHGUI_FindElemByPointOp::onSelectionDone(), SMESHGUI_SelectionOp::selected(), SMESHGUI_GroupOnShapeOp::selectionDone(), SMESHGUI_ConvToQuadOp::selectionDone(), SMESHGUI_Add0DElemsOnAllNodesOp::selectionDone(), SMESHGUI_Make2DFrom3DOp::selectionDone(), SMESHGUI_ShapeByMeshOp::SetMesh(), and SMESHGUI_SelectionOp::typeById().
|
protected |
Gets dialog of compute operation.
| SMESHGUI_ComputeDlg* | - pointer to dialog of this operation |
References currentCellChanged(), me, myCompDlg, onGroupOfBadMesh(), onPreviewShape(), onPublishShape(), onShowBadMesh(), and table().
Referenced by SMESHGUI_ComputeOp::dlg(), SMESHGUI_PrecomputeOp::onCancel(), SMESHGUI_PrecomputeOp::onCompute(), SMESHGUI_PrecomputeOp::onPreview(), showComputeResult(), startOperation(), and SMESHGUI_PrecomputeOp::startOperation().
|
protected |
References SMESHGUI_Operation::_PTR(), SMDS_Mesh::CheckMemory(), SMESH::COMPERR_MEMORY_PB, SMESH::CreateActor(), SMESH::DisplayActor(), SMESH_Actor::e0DElements, SMESH_Actor::eAllEntity, SMESH_Actor::eBallElem, SMESH_Actor::eEdges, SMESH_Actor::eFaces, SMESH_Actor::eVolumes, SMESH::FindActorByObject(), SMESH::GetActiveWindow(), SMESH::GetMessageOnAlgoStateErrors(), SMESH::GetResourceMgr(), SMESHGUI::GetSMESHGen(), SMESHGUI_Operation::getSMESHGUI(), SMESHGUI::GetSMESHGUI(), SMESH::GetVtkViewWindow(), Handle(), MESSAGE, SMESH::ModifiedMesh(), myCompDlg, myCurShape, myMainShape, myMesh, OCC_CATCH_SIGNALS, SMESH::OnVisuException(), SMESH::MemoryReserve::release(), SMESHGUI_ComputeDlg_QThreadQDialog::result(), SMESH_Actor::SetEntityMode(), showComputeResult(), SObject(), SMESH::SObjectToObject(), and SMESH::Update().
Referenced by SMESHGUI_PrecomputeOp::onCompute(), and SMESHGUI_ComputeOp::startOperation().
|
protectedslot |
SLOT called when a selected cell in table() changed.
References COL_BAD_MESH, COL_PUBLISHED, COL_SHAPE, COL_SHAPEID, SMESH::getSelectedRows(), SMESH::TShapeDisplayer::HasReadyActorsFor(), myBadMeshDisplayer, myCompDlg, myMainShape, myTShapeDisplayer, SMESHGUI_MeshEditPreview::SetVisibility(), SMESH::TShapeDisplayer::SetVisibility(), SMESH::TShapeDisplayer::Show(), and table().
Referenced by computeDlg(), evaluateDlg(), onPreviewShape(), onPublishShape(), showComputeResult(), and showEvaluateResult().
|
protected |
Gets dialog of evaluate operation.
| 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().
|
protected |
References SMESHGUI_Operation::_PTR(), SMESH::GetMessageOnAlgoStateErrors(), SMESHGUI::GetSMESHGen(), SMESHGUI_Operation::getSMESHGUI(), myCompDlg, myMainShape, myMesh, OCC_CATCH_SIGNALS, SMESH::MemoryReserve::release(), showEvaluateResult(), and SObject().
Referenced by SMESHGUI_EvaluateOp::startOperation().
| SMESH::SMESH_Mesh_ptr SMESHGUI_BaseComputeOp::getMesh | ( | ) |
References SMESH::GetMeshByIO(), Handle(), and myMesh.
Referenced by isValid().
|
protectedinherited |
Referenced by computeMesh(), evaluateMesh(), SMESHGUI_Operation::isReadyToStart(), SMESHGUI_MeshOp::onGeomSelectionByMesh(), onGroupOfBadMesh(), SMESHGUI_Operation::onHelp(), SMESHGUI_PrecomputeOp::onPreview(), onPublishShape(), SMESHGUI_Add0DElemsOnAllNodesOp::onSetFilter(), onShowBadMesh(), SMESHGUI_FindElemByPointOp::startOperation(), SMESHGUI_MakeNodeAtPointOp::startOperation(), and SMESHGUI_SelectionOp::viewWindow().
|
protected |
Referenced by computeMesh(), and getMesh().
|
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().
|
protectedvirtualinherited |
References SMESHGUI_Operation::myIsApplyAndClose.
Referenced by SMESHGUI_GroupOnShapeOp::onApply(), SMESHGUI_MeshOp::onApply(), and SMESHGUI_Make2DFrom3DOp::onApply().
|
protectedvirtualinherited |
References SMESHGUI_Operation::getSMESHGUI(), and SMESHGUI_Operation::isStudyLocked().
Verifies whether study of operation is locked.
| theMess | - specifies whether message box must be shown if study is locked |
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().
|
protectedvirtual |
check the same operations on the same mesh
Reimplemented from SMESHGUI_Operation.
|
protectedvirtualslot |
returns from compute mesh result dialog
Referenced by SMESHGUI_PrecomputeOp::startOperation().
|
protectedvirtualslotinherited |
Referenced by SMESHGUI_PrecomputeOp::onCancel(), SMESHGUI_Operation::startOperation(), and startOperation().
|
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().
|
protectedslotinherited |
References SMESHGUI_Operation::getSMESHGUI(), and SMESHGUI_Operation::myHelpFileName.
Referenced by SMESHGUI_Operation::startOperation(), and SMESHGUI_PrecomputeOp::startOperation().
|
protectedvirtualslotinherited |
References SMESHGUI_Operation::onApply(), and SMESHGUI_Operation::setIsApplyAndClose().
Referenced by SMESHGUI_Operation::startOperation(), and SMESHGUI_PrecomputeOp::startOperation().
|
protectedslot |
update preview
References COL_SHAPEID, currentCellChanged(), SMESH::getSelectedRows(), myMainShape, myTShapeDisplayer, SMESH::TShapeDisplayer::Show(), and table().
Referenced by computeDlg(), and evaluateDlg().
|
protectedslot |
publish selected sub-shape
References COL_PUBLISHED, COL_SHAPE, COL_SHAPEID, currentCellChanged(), SMESH::GetGEOMGen(), SMESH::getSelectedRows(), SMESHGUI::GetSMESHGen(), SMESHGUI_Operation::getSMESHGUI(), SMESH::getSubShape(), myMainShape, myMesh, SMESH::shapeText(), SMESH::shapeTypeName(), and table().
Referenced by computeDlg(), and evaluateDlg().
|
protectedslot |
show mesh elements preventing computation of a submesh of current row
References COL_BAD_MESH, COL_SHAPEID, SMESHGUI_MeshEditPreview::GetActor(), SMESH::GetFloat(), SMESH::getSelectedRows(), SMESHGUI::GetSMESHGen(), SMESHGUI_Operation::getSMESHGUI(), SMESH::GetViewWindow(), myBadMeshDisplayer, myMesh, myTShapeDisplayer, SMESHGUI_MeshEditPreview::SetData(), SMESH::TShapeDisplayer::SetVisibility(), and table().
Referenced by computeDlg(), and evaluateDlg().
|
protectedvirtualinherited |
Set according dialog active or inactive.
References MESHCUT::d, and SMESHGUI_Dialog::setContentActive().
|
protectedvirtualinherited |
References SMESHGUI_Operation::myIsApplyAndClose.
Referenced by SMESHGUI_Operation::onOk().
|
protected |
References SMESH::ComputeError::algoName, SMESH::ComputeError::code, COL_ALGO, COL_BAD_MESH, COL_ERROR, COL_PUBLISHED, COL_SHAPE, COL_SHAPEID, SMESH::ComputeError::comment, SMESH::COMPERR_NO_MESH_ON_SHAPE, SMESH::COMPERR_WARNING, computeDlg(), currentCellChanged(), SMESH::errorText(), SMESH::ComputeError::hasBadMesh, SMESHGUI_ComputeDlg::myBadMeshBtn, SMESHGUI_ComputeDlg::myBadMeshToGroupBtn, SMESHGUI_ComputeDlg::myBriefInfo, SMESHGUI_ComputeDlg::myCompErrorGroup, SMESHGUI_ComputeDlg::myFullInfo, SMESHGUI_ComputeDlg::myHypErrorGroup, SMESHGUI_ComputeDlg::myHypErrorLabel, myMainShape, SMESHGUI_ComputeDlg::myMemoryLackGroup, myMesh, SMESHGUI_ComputeDlg::myPublishBtn, SMESHGUI_ComputeDlg::myShowBtn, SMESHGUI_ComputeDlg::myTable, SMESHGUI_ComputeDlg::myWarningLabel, SMESHGUI_MeshInfosBox::SetMeshInfo(), SMESH::shapeText(), SMESHGUI_Dialog::show(), and SMESH::ComputeError::subShapeID.
Referenced by computeMesh(), and SMESHGUI_PrecomputeOp::onPreview().
|
protected |
References SMESH::ComputeError::algoName, SMESH::ComputeError::code, COL_ALGO, COL_BAD_MESH, COL_ERROR, COL_PUBLISHED, COL_SHAPE, COL_SHAPEID, SMESH::ComputeError::comment, currentCellChanged(), SMESH::errorText(), evaluateDlg(), SMESH::ComputeError::hasBadMesh, SMESHGUI_ComputeDlg::myBadMeshBtn, SMESHGUI_ComputeDlg::myBadMeshToGroupBtn, SMESHGUI_ComputeDlg::myBriefInfo, SMESHGUI_ComputeDlg::myCompErrorGroup, SMESHGUI_ComputeDlg::myFullInfo, SMESHGUI_ComputeDlg::myHypErrorGroup, SMESHGUI_ComputeDlg::myHypErrorLabel, myMainShape, SMESHGUI_ComputeDlg::myMemoryLackGroup, myMesh, SMESHGUI_ComputeDlg::myPublishBtn, SMESHGUI_ComputeDlg::myShowBtn, SMESHGUI_ComputeDlg::myTable, SMESHGUI_MeshInfosBox::SetMeshInfo(), SMESH::shapeText(), SMESHGUI_Dialog::show(), and SMESH::ComputeError::subShapeID.
Referenced by evaluateMesh().
|
protectedvirtual |
Start operation Init dialog fields, connect signals and slots, show dialog.
Reimplemented from SMESHGUI_Operation.
Reimplemented in SMESHGUI_EvaluateOp, SMESHGUI_PrecomputeOp, and SMESHGUI_ComputeOp.
References computeDlg(), SMESH::IObjectToObject(), myCurShape, myMainShape, myMesh, SMESHGUI_Operation::onCancel(), and SMESHGUI_Operation::startOperation().
Referenced by SMESHGUI_ComputeOp::startOperation(), SMESHGUI_PrecomputeOp::startOperation(), and SMESHGUI_EvaluateOp::startOperation().
|
protectedvirtual |
Stops operation.
Reimplemented in SMESHGUI_PrecomputeOp.
References myBadMeshDisplayer, myTShapeDisplayer, SMESHGUI_MeshEditPreview::SetVisibility(), and SMESH::TShapeDisplayer::SetVisibility().
Referenced by SMESHGUI_PrecomputeOp::stopOperation().
|
private |
Return a table.
References myCompDlg.
Referenced by computeDlg(), currentCellChanged(), evaluateDlg(), onGroupOfBadMesh(), onPreviewShape(), onPublishShape(), and onShowBadMesh().
|
protected |
Referenced by currentCellChanged(), onShowBadMesh(), SMESHGUI_BaseComputeOp(), stopOperation(), and ~SMESHGUI_BaseComputeOp().
|
private |
Referenced by computeDlg(), computeMesh(), currentCellChanged(), evaluateDlg(), evaluateMesh(), table(), and ~SMESHGUI_BaseComputeOp().
|
protected |
Referenced by computeMesh(), and startOperation().
|
protectedinherited |
Referenced by SMESHGUI_PrecomputeOp::onCompute(), SMESHGUI_Operation::onHelp(), SMESHGUI_Add0DElemsOnAllNodesOp::SMESHGUI_Add0DElemsOnAllNodesOp(), SMESHGUI_BaseComputeOp(), SMESHGUI_ComputeOp::SMESHGUI_ComputeOp(), SMESHGUI_EvaluateOp::SMESHGUI_EvaluateOp(), SMESHGUI_FindElemByPointOp::SMESHGUI_FindElemByPointOp(), SMESHGUI_GroupOnShapeOp::SMESHGUI_GroupOnShapeOp(), SMESHGUI_MakeNodeAtPointOp::SMESHGUI_MakeNodeAtPointOp(), SMESHGUI_MeshOrderOp::SMESHGUI_MeshOrderOp(), SMESHGUI_Operation::SMESHGUI_Operation(), SMESHGUI_ReorientFacesOp::SMESHGUI_ReorientFacesOp(), SMESHGUI_ConvToQuadOp::startOperation(), SMESHGUI_SplitBiQuadOp::startOperation(), SMESHGUI_MeshOp::startOperation(), SMESHGUI_Make2DFrom3DOp::startOperation(), and SMESHGUI_PrecomputeOp::startOperation().
|
protectedinherited |
Referenced by SMESHGUI_Operation::isApplyAndClose(), and SMESHGUI_Operation::setIsApplyAndClose().
|
protected |
|
protected |
Referenced by computeMesh(), evaluateMesh(), getMesh(), SMESHGUI_PrecomputeOp::initDialog(), isValid(), SMESHGUI_PrecomputeOp::onCancel(), onGroupOfBadMesh(), SMESHGUI_PrecomputeOp::onPreview(), onPublishShape(), onShowBadMesh(), showComputeResult(), showEvaluateResult(), startOperation(), SMESHGUI_ComputeOp::startOperation(), SMESHGUI_PrecomputeOp::startOperation(), and SMESHGUI_EvaluateOp::startOperation().
|
protected |
Referenced by currentCellChanged(), onPreviewShape(), onShowBadMesh(), SMESHGUI_BaseComputeOp(), stopOperation(), and ~SMESHGUI_BaseComputeOp().