Operation to compute a mesh and show computation errors. More...
#include <SMESHGUI_ComputeDlg.h>
Public Member Functions | |
SMESHGUI_ComputeOp () | |
Constructor. More... | |
virtual | ~SMESHGUI_ComputeOp () |
Desctructor. More... | |
virtual LightApp_Dialog * | dlg () const |
Gets dialog of this operation. 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 () |
perform it's intention action: compute mesh 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 |
Operation to compute a mesh and show computation errors.
SMESHGUI_ComputeOp::SMESHGUI_ComputeOp | ( | ) |
Constructor.
References SMESHGUI_Operation::myHelpFileName.
|
virtual |
Desctructor.
|
protectedinherited |
Referenced by SMESHGUI_ShapeByMeshOp::commitOperation(), SMESHGUI_Make2DFrom3DOp::compute2DMesh(), SMESHGUI_BaseComputeOp::computeMesh(), SMESHGUI_ConvToQuadOp::ConnectRadioButtons(), SMESHGUI_BaseComputeOp::evaluateMesh(), SMESHGUI_PrecomputeOp::getAssignedAlgos(), SMESHGUI_PrecomputeOp::initDialog(), SMESHGUI_ReorientFacesOp::isValid(), SMESHGUI_Make2DFrom3DOp::isValid(), SMESHGUI_ConvToQuadOp::onApply(), SMESHGUI_GroupOnShapeOp::onApply(), SMESHGUI_SplitBiQuadOp::onApply(), SMESHGUI_BaseComputeOp::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().
|
protectedinherited |
Gets dialog of compute operation.
SMESHGUI_ComputeDlg* | - pointer to dialog of this operation |
References SMESHGUI_BaseComputeOp::currentCellChanged(), me, SMESHGUI_BaseComputeOp::myCompDlg, SMESHGUI_BaseComputeOp::onGroupOfBadMesh(), SMESHGUI_BaseComputeOp::onPreviewShape(), SMESHGUI_BaseComputeOp::onPublishShape(), SMESHGUI_BaseComputeOp::onShowBadMesh(), and SMESHGUI_BaseComputeOp::table().
Referenced by dlg(), SMESHGUI_PrecomputeOp::onCancel(), SMESHGUI_PrecomputeOp::onCompute(), SMESHGUI_PrecomputeOp::onPreview(), SMESHGUI_BaseComputeOp::showComputeResult(), SMESHGUI_BaseComputeOp::startOperation(), and SMESHGUI_PrecomputeOp::startOperation().
|
protectedinherited |
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(), SMESHGUI_BaseComputeOp::Handle(), MESSAGE, SMESH::ModifiedMesh(), SMESHGUI_BaseComputeOp::myCompDlg, SMESHGUI_BaseComputeOp::myCurShape, SMESHGUI_BaseComputeOp::myMainShape, SMESHGUI_BaseComputeOp::myMesh, OCC_CATCH_SIGNALS, SMESH::OnVisuException(), SMESH::MemoryReserve::release(), SMESHGUI_ComputeDlg_QThreadQDialog::result(), SMESH_Actor::SetEntityMode(), SMESHGUI_BaseComputeOp::showComputeResult(), SObject(), SMESH::SObjectToObject(), and SMESH::Update().
Referenced by SMESHGUI_PrecomputeOp::onCompute(), and startOperation().
|
protectedslotinherited |
SLOT called when a selected cell in table() changed.
References COL_BAD_MESH, COL_PUBLISHED, COL_SHAPE, COL_SHAPEID, SMESH::getSelectedRows(), SMESH::TShapeDisplayer::HasReadyActorsFor(), SMESHGUI_BaseComputeOp::myBadMeshDisplayer, SMESHGUI_BaseComputeOp::myCompDlg, SMESHGUI_BaseComputeOp::myMainShape, SMESHGUI_BaseComputeOp::myTShapeDisplayer, SMESHGUI_MeshEditPreview::SetVisibility(), SMESH::TShapeDisplayer::SetVisibility(), SMESH::TShapeDisplayer::Show(), and SMESHGUI_BaseComputeOp::table().
Referenced by SMESHGUI_BaseComputeOp::computeDlg(), SMESHGUI_BaseComputeOp::evaluateDlg(), SMESHGUI_BaseComputeOp::onPreviewShape(), SMESHGUI_BaseComputeOp::onPublishShape(), SMESHGUI_BaseComputeOp::showComputeResult(), and SMESHGUI_BaseComputeOp::showEvaluateResult().
|
virtual |
Gets dialog of this operation.
LightApp_Dialog* | - pointer to dialog of this operation |
References SMESHGUI_BaseComputeOp::computeDlg().
|
protectedinherited |
Gets dialog of evaluate operation.
SMESHGUI_ComputeDlg* | - pointer to dialog of this operation |
References SMESHGUI_BaseComputeOp::currentCellChanged(), me, SMESHGUI_BaseComputeOp::myCompDlg, SMESHGUI_BaseComputeOp::onPreviewShape(), SMESHGUI_BaseComputeOp::onPublishShape(), SMESHGUI_BaseComputeOp::onShowBadMesh(), and SMESHGUI_BaseComputeOp::table().
Referenced by SMESHGUI_EvaluateOp::dlg(), SMESHGUI_BaseComputeOp::showEvaluateResult(), and SMESHGUI_EvaluateOp::startOperation().
|
protectedinherited |
References SMESHGUI_Operation::_PTR(), SMESH::GetMessageOnAlgoStateErrors(), SMESHGUI::GetSMESHGen(), SMESHGUI_Operation::getSMESHGUI(), SMESHGUI_BaseComputeOp::myCompDlg, SMESHGUI_BaseComputeOp::myMainShape, SMESHGUI_BaseComputeOp::myMesh, OCC_CATCH_SIGNALS, SMESH::MemoryReserve::release(), SMESHGUI_BaseComputeOp::showEvaluateResult(), and SObject().
Referenced by SMESHGUI_EvaluateOp::startOperation().
|
inherited |
References SMESH::GetMeshByIO(), SMESHGUI_BaseComputeOp::Handle(), and SMESHGUI_BaseComputeOp::myMesh.
Referenced by SMESHGUI_BaseComputeOp::isValid().
|
protectedinherited |
Referenced by SMESHGUI_BaseComputeOp::computeMesh(), SMESHGUI_BaseComputeOp::evaluateMesh(), SMESHGUI_Operation::isReadyToStart(), SMESHGUI_MeshOp::onGeomSelectionByMesh(), SMESHGUI_BaseComputeOp::onGroupOfBadMesh(), SMESHGUI_Operation::onHelp(), SMESHGUI_PrecomputeOp::onPreview(), SMESHGUI_BaseComputeOp::onPublishShape(), SMESHGUI_Add0DElemsOnAllNodesOp::onSetFilter(), SMESHGUI_BaseComputeOp::onShowBadMesh(), SMESHGUI_FindElemByPointOp::startOperation(), SMESHGUI_MakeNodeAtPointOp::startOperation(), and SMESHGUI_SelectionOp::viewWindow().
|
protectedinherited |
Referenced by SMESHGUI_BaseComputeOp::computeMesh(), and SMESHGUI_BaseComputeOp::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().
|
protectedvirtualinherited |
check the same operations on the same mesh
Reimplemented from SMESHGUI_Operation.
References SMESHGUI_BaseComputeOp::getMesh(), and SMESHGUI_BaseComputeOp::myMesh.
|
protectedvirtualslotinherited |
returns from compute mesh result dialog
Referenced by SMESHGUI_PrecomputeOp::startOperation().
|
protectedvirtualslotinherited |
|
protectedslotinherited |
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(), SMESHGUI_BaseComputeOp::myMesh, SObject(), and SMESHGUI_BaseComputeOp::table().
Referenced by SMESHGUI_BaseComputeOp::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().
|
protectedslotinherited |
update preview
References COL_SHAPEID, SMESHGUI_BaseComputeOp::currentCellChanged(), SMESH::getSelectedRows(), SMESHGUI_BaseComputeOp::myMainShape, SMESHGUI_BaseComputeOp::myTShapeDisplayer, SMESH::TShapeDisplayer::Show(), and SMESHGUI_BaseComputeOp::table().
Referenced by SMESHGUI_BaseComputeOp::computeDlg(), and SMESHGUI_BaseComputeOp::evaluateDlg().
|
protectedslotinherited |
publish selected sub-shape
References COL_PUBLISHED, COL_SHAPE, COL_SHAPEID, SMESHGUI_BaseComputeOp::currentCellChanged(), SMESH::GetGEOMGen(), SMESH::getSelectedRows(), SMESHGUI::GetSMESHGen(), SMESHGUI_Operation::getSMESHGUI(), SMESH::getSubShape(), SMESHGUI_BaseComputeOp::myMainShape, SMESHGUI_BaseComputeOp::myMesh, SMESH::shapeText(), SMESH::shapeTypeName(), and SMESHGUI_BaseComputeOp::table().
Referenced by SMESHGUI_BaseComputeOp::computeDlg(), and SMESHGUI_BaseComputeOp::evaluateDlg().
|
protectedslotinherited |
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(), SMESHGUI_BaseComputeOp::myBadMeshDisplayer, SMESHGUI_BaseComputeOp::myMesh, SMESHGUI_BaseComputeOp::myTShapeDisplayer, SMESHGUI_MeshEditPreview::SetData(), SMESH::TShapeDisplayer::SetVisibility(), and SMESHGUI_BaseComputeOp::table().
Referenced by SMESHGUI_BaseComputeOp::computeDlg(), and SMESHGUI_BaseComputeOp::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().
|
protectedinherited |
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, SMESHGUI_BaseComputeOp::computeDlg(), SMESHGUI_BaseComputeOp::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, SMESHGUI_BaseComputeOp::myMainShape, SMESHGUI_ComputeDlg::myMemoryLackGroup, SMESHGUI_BaseComputeOp::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 SMESHGUI_BaseComputeOp::computeMesh(), and SMESHGUI_PrecomputeOp::onPreview().
|
protectedinherited |
References SMESH::ComputeError::algoName, SMESH::ComputeError::code, COL_ALGO, COL_BAD_MESH, COL_ERROR, COL_PUBLISHED, COL_SHAPE, COL_SHAPEID, SMESH::ComputeError::comment, SMESHGUI_BaseComputeOp::currentCellChanged(), SMESH::errorText(), SMESHGUI_BaseComputeOp::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, SMESHGUI_BaseComputeOp::myMainShape, SMESHGUI_ComputeDlg::myMemoryLackGroup, SMESHGUI_BaseComputeOp::myMesh, SMESHGUI_ComputeDlg::myPublishBtn, SMESHGUI_ComputeDlg::myShowBtn, SMESHGUI_ComputeDlg::myTable, SMESHGUI_MeshInfosBox::SetMeshInfo(), SMESH::shapeText(), SMESHGUI_Dialog::show(), and SMESH::ComputeError::subShapeID.
Referenced by SMESHGUI_BaseComputeOp::evaluateMesh().
|
protectedvirtual |
perform it's intention action: compute mesh
Reimplemented from SMESHGUI_BaseComputeOp.
References SMESHGUI_BaseComputeOp::computeMesh(), SMESHGUI_BaseComputeOp::myMesh, and SMESHGUI_BaseComputeOp::startOperation().
|
protectedvirtualinherited |
Stops operation.
Reimplemented in SMESHGUI_PrecomputeOp.
References SMESHGUI_BaseComputeOp::myBadMeshDisplayer, SMESHGUI_BaseComputeOp::myTShapeDisplayer, SMESHGUI_MeshEditPreview::SetVisibility(), and SMESH::TShapeDisplayer::SetVisibility().
Referenced by SMESHGUI_PrecomputeOp::stopOperation().
|
protectedinherited |
|
protectedinherited |
Referenced by SMESHGUI_BaseComputeOp::computeMesh(), and SMESHGUI_BaseComputeOp::startOperation().
|
protectedinherited |
Referenced by SMESHGUI_PrecomputeOp::onCompute(), SMESHGUI_Operation::onHelp(), SMESHGUI_Add0DElemsOnAllNodesOp::SMESHGUI_Add0DElemsOnAllNodesOp(), SMESHGUI_BaseComputeOp::SMESHGUI_BaseComputeOp(), 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().
|
protectedinherited |
Referenced by SMESHGUI_BaseComputeOp::computeMesh(), SMESHGUI_BaseComputeOp::currentCellChanged(), SMESHGUI_BaseComputeOp::evaluateMesh(), SMESHGUI_PrecomputeOp::onPreview(), SMESHGUI_BaseComputeOp::onPreviewShape(), SMESHGUI_BaseComputeOp::onPublishShape(), SMESHGUI_BaseComputeOp::showComputeResult(), SMESHGUI_BaseComputeOp::showEvaluateResult(), and SMESHGUI_BaseComputeOp::startOperation().
|
protectedinherited |
Referenced by SMESHGUI_BaseComputeOp::computeMesh(), SMESHGUI_BaseComputeOp::evaluateMesh(), SMESHGUI_BaseComputeOp::getMesh(), SMESHGUI_PrecomputeOp::initDialog(), SMESHGUI_BaseComputeOp::isValid(), SMESHGUI_PrecomputeOp::onCancel(), SMESHGUI_BaseComputeOp::onGroupOfBadMesh(), SMESHGUI_PrecomputeOp::onPreview(), SMESHGUI_BaseComputeOp::onPublishShape(), SMESHGUI_BaseComputeOp::onShowBadMesh(), SMESHGUI_BaseComputeOp::showComputeResult(), SMESHGUI_BaseComputeOp::showEvaluateResult(), SMESHGUI_BaseComputeOp::startOperation(), startOperation(), SMESHGUI_PrecomputeOp::startOperation(), and SMESHGUI_EvaluateOp::startOperation().
|
protectedinherited |