#include "SMESHGUI_MeshOp.h"
#include "SMESHGUI.h"
#include "SMESHGUI_GEOMGenUtils.h"
#include "SMESHGUI_Hypotheses.h"
#include "SMESHGUI_HypothesesUtils.h"
#include "SMESHGUI_MeshDlg.h"
#include "SMESHGUI_Operations.h"
#include "SMESHGUI_ShapeByMeshDlg.h"
#include "SMESHGUI_Utils.h"
#include "SMESH_NumberFilter.hxx"
#include "SMESH_TypeFilter.hxx"
#include <GEOM_SelectionFilter.h>
#include <GEOMBase.h>
#include <GeometryGUI.h>
#include <GEOM_wrap.hxx>
#include <GEOMImpl_Types.hxx>
#include <SalomeApp_Tools.h>
#include <SalomeApp_Application.h>
#include <LightApp_Application.h>
#include <LightApp_SelectionMgr.h>
#include <LightApp_UpdateFlags.h>
#include <SUIT_MessageBox.h>
#include <SUIT_OverrideCursor.h>
#include <SUIT_Session.h>
#include <SALOME_InteractiveObject.hxx>
#include <SALOME_ListIO.hxx>
#include <SALOMEDS_SComponent.hxx>
#include <SALOMEDS_SObject.hxx>
#include <SALOMEDS_Study.hxx>
#include <SALOMEDS_wrap.hxx>
#include <QStringList>
#include <QLineEdit>
#include <QApplication>
#include <TopoDS.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Shell.hxx>
#include <TopExp_Explorer.hxx>
#include <BRep_Tool.hxx>
#include <SALOMEconfig.h>
#include <CORBA_CLIENT_HEADER(SMESH_Gen)>
Functions | |
_PTR (SObject) pMesh = studyDS()->FindObjectID( aGeomEntry.toLatin1().data() ) | |
Return SO of a sub-shape. More... | |
if (pMesh &&pGeom) | |
return _PTR() | SObject () |
static bool | isCompatible (const HypothesisData *theAlgoData, const HypothesisData *theHypData, const int theHypType) |
check compatibility of the algorithm and another algorithm or hypothesis More... | |
static int | getTabDim (const QObject *tab, SMESHGUI_MeshDlg *dlg) |
Returns tab dimension More... | |
Variables | |
_PTR(SObject) SMESHGUI_MeshOp QString | aGeomEntry = myDlg->selectedObject( SMESHGUI_MeshDlg::Geom ) |
find an existing submesh by the selected shape More... | |
Return SO of a sub-shape.
References SMESH::_PTR(), and SObject().
Referenced by SMESH::_PTR(), _PTR(), SMESH::AddHypothesisOnMesh(), SMESH::AddHypothesisOnSubMesh(), SMESH::AddNode(), SMESH::CreateActor(), SMESH::CreateHypothesis(), SMESH::DataOwnerToObject(), SMESH::FindActorByObject(), SMESH::GetGeom(), SMESH::GetGeomEntries(), SMESH::GetGeomName(), SMESH::GetMeshesUsingAlgoOrHypothesis(), SMESH::GetSubShape(), SMESH::getSubShape(), SMESH::GetVisualObj(), SMESH::IObjectToObject(), SMESH::ModifiedMesh(), SMESH::processHypothesisStatus(), SMESH::RemoveHypothesisOrAlgorithmOnMesh(), SMESH::setFileName(), SMESH::setFileType(), SMESH::SetName(), SMESH::SetValue(), SMESH::shapeText(), SMESH::SObjectToObject(), SMESH::UniqueMeshName(), SMESH::UniqueName(), SMESH::Update(), SMESH::UpdateNulData(), and SMESH::UpdateView().
|
static |
Returns tab dimension
tab | - the tab in the dlg |
dlg | - my dialogue |
int | - dimension |
References SMESH::DIM_0D, SMESH::DIM_3D, and SMESHGUI_MeshDlg::tab().
Referenced by SMESHGUI_MeshOp::onAlgoSelected(), SMESHGUI_MeshOp::onCreateHyp(), and SMESHGUI_MeshOp::onEditHyp().
if | ( | pMesh && | pGeom | ) |
|
static |
check compatibility of the algorithm and another algorithm or hypothesis
theAlgoData | - algorithm data |
theHypData | - hypothesis data |
theHypType | - hypothesis type |
theHypTypeName | - hypothesis type name, must be provided if 2-nd arg is not algo |
bool | - check result |
References SMESHGUI_MeshOp::Algo, SMESH::IsAvailableHypothesis(), SMESH::IsCompatibleAlgorithm(), and HypothesisData::TypeName.
Referenced by SMESHGUI_MeshOp::availableHyps(), SMESHGUI_MeshOp::existingHyps(), SMESHGUI::isSelectionCompatible(), and SMESHGUI_MeshOp::onAlgoSelected().
return _PTR() SObject | ( | ) |
Referenced by _PTR(), SMESH::AddHypothesisOnMesh(), SMESH::AddHypothesisOnSubMesh(), SMESH::AddNode(), SMESHGUI_MeshOp::availableHyps(), SMESHGUI_Displayer::canBeDisplayed(), SMESHGUI_MeshOp::checkSubMeshConcurrency(), SMESHGUI_CopyMeshDlg::ClickOnApply(), SMESHGUI_BuildCompoundDlg::ClickOnApply(), SMESHGUI_ScaleDlg::ClickOnApply(), SMESHGUI_TranslationDlg::ClickOnApply(), SMESHGUI_RotationDlg::ClickOnApply(), SMESHGUI_SymmetryDlg::ClickOnApply(), SMESHGUI_Make2DFrom3DOp::compute2DMesh(), SMESHGUI_BaseComputeOp::computeMesh(), SMESHGUI_ConvToQuadOp::ConnectRadioButtons(), SMESHGUI::contextMenuPopup(), SMESH::CreateActor(), SMESH::CreateHypothesis(), SMESHGUI_MeshOp::createMesh(), SMESHGUI_MeshOp::createSubMesh(), SMESH::DataOwnerToObject(), SMESHGUI_Selection::dim(), SMESHGUI_MeshOp::editMeshOrSubMesh(), SMESHGUI_Selection::elemTypes(), GeomSelectionTools::entryToShapeType(), SMESHGUI_BaseComputeOp::evaluateMesh(), SMESHGUI_MeshOp::existingHyps(), SMESH::FindActorByObject(), SMESHGUI_MeshOp::getAlgo(), SMESHGUI_PrecomputeOp::getAssignedAlgos(), SMESHGUI_BuildCompoundDlg::GetDefaultName(), SMESHGUI_GroupDlg::GetDefaultName(), GeomSelectionTools::getEntryOfObject(), GeomSelectionTools::getFirstSelectedComponentDataType(), SMESH_NumberFilter::getGeom(), SMESH::GetGeom(), SMESH::GetGeomEntries(), SMESH::GetGeomName(), SMESHGUI_MeshOp::getInitParamsHypothesis(), SMESH::GetMeshesUsingAlgoOrHypothesis(), SMESHGUI_MeshOrderMgr::GetMeshOrder(), GeomSelectionTools::getNameFromEntry(), SMESH::GetShapeOnMeshOrSubMesh(), SMESH::getSubShape(), SMESH::GetVisualObj(), SMESHGUI_AddInfo::groupInfo(), SMESHGUI_Selection::groupType(), SMESHGUI_Selection::hasChildren(), SMESHGUI_Selection::hasGeomReference(), if(), SMESHGUI_SimpleElemInfo::information(), SMESHGUI_TreeElemInfo::information(), SMESHGUI_GroupDlg::init(), SMESHGUI_PrecomputeOp::initDialog(), SMESHGUI_MeshOp::initHypCreator(), SMESH::IObjectToObject(), SMESHGUI_Selection::isAutoColor(), SMESHGUI_Selection::isComputable(), SMESHGUI_Selection::isEditableHyp(), SMESHGUI_Selection::isImported(), SMESH_TypeFilter::isOk(), SMESHGUI_Selection::isPreComputable(), SMESHGUI_Selection::isQuadratic(), SMESHGUI_MeshOp::isSubmeshIgnored(), SMESHGUI_MeshOp::isSubshapeOk(), SMESHGUI_ReorientFacesOp::isValid(), SMESHGUI_MeshOp::isValid(), SMESHGUI_Make2DFrom3DOp::isValid(), SMESHGUI_AddInfo::meshInfo(), SMESHGUI::message(), SMESH::ModifiedMesh(), SMESHGUI_Selection::nbChildren(), SMESHGUI_Selection::numberOfNodes(), SMESHGUI_GroupDlg::onAdd(), SMESHGUI_MeshOp::onAlgoSelected(), SMESHGUI_ConvToQuadOp::onApply(), SMESHGUI_GroupOnShapeOp::onApply(), SMESHGUI_SplitBiQuadOp::onApply(), SMESHGUI_DuplicateNodesDlg::onApply(), SMESHGUI_MeshPatternDlg::onApply(), SMESHGUI_GroupDlg::onApply(), SMESHGUI_UnionGroupsDlg::onApply(), SMESHGUI_IntersectGroupsDlg::onApply(), SMESHGUI_CutGroupsDlg::onApply(), SMESHGUI_DimGroupDlg::onApply(), SMESHGUI_GenericHypothesisCreator::onDialogFinished(), SMESHGUI::OnEditDelete(), SMESHGUI_MeshOp::onGeomSelectionByMesh(), SMESHGUI_BaseComputeOp::onGroupOfBadMesh(), SMESHGUI::OnGUIEvent(), SMESHGUI_GroupDlg::onObjectSelectionChanged(), SMESHGUI_PrecomputeOp::onPreview(), SMESHGUI_MeshOp::onPublishShapeByMeshDlg(), SMESHGUI_GroupDlg::onPublishShapeByMeshDlg(), SMESHGUI_FindElemByPointOp::onSelectionDone(), SMESHGUI_CreatePatternDlg::onSelectionDone(), SMESHGUI_MeshPatternDlg::onSelectionDone(), SMESH::processHypothesisStatus(), SMESHGUI_MeshOp::readMesh(), SMESH::RemoveHypothesisOrAlgorithmOnMesh(), SMESHGUI::renameObject(), SMESHGUI::restoreVisualParameters(), SMESHGUI_SelectionOp::selected(), SMESHGUI_GroupOnShapeOp::selectionDone(), SMESHGUI_ConvToQuadOp::selectionDone(), SMESHGUI_MeshOp::selectionDone(), SMESHGUI_Add0DElemsOnAllNodesOp::selectionDone(), SMESHGUI_Make2DFrom3DOp::selectionDone(), SMESHGUI_ScaleDlg::SelectionIntoArgument(), SMESHGUI_TranslationDlg::SelectionIntoArgument(), SMESHGUI_RotationDlg::SelectionIntoArgument(), SMESHGUI_SymmetryDlg::SelectionIntoArgument(), SMESHGUI_SewingDlg::SelectionIntoArgument(), SMESHGUI_GroupDlg::SetAppropriateActor(), SMESHGUI_FilterTable::SetCriterion(), SMESHGUI_MeshOp::setDefaultName(), SMESHGUI_GroupDlg::setDefaultName(), SMESHGUI_MeshOrderMgr::SetMesh(), SMESHGUI_CreatePatternDlg::SetMesh(), SMESHGUI_ShapeByMeshOp::SetMesh(), SMESH_Swig::SetMeshIcon(), SMESHGUI_MeshOrderMgr::SetMeshOrder(), SMESHGUI_ScaleDlg::setNewMeshName(), SMESHGUI_TranslationDlg::setNewMeshName(), SMESHGUI_RotationDlg::setNewMeshName(), SMESHGUI_SymmetryDlg::setNewMeshName(), StdMeshersGUI_ObjectReferenceParamWdg::SetObject(), StdMeshersGUI_ObjectReferenceParamWdg::SetObjects(), SMESH::shapeText(), SMESHGUI_AddInfo::showGroups(), SMESHGUI_MeshInfo::showInfo(), SMESHGUI_AddInfo::showInfo(), SMESHGUI_CtrlInfo::showInfo(), SMESHGUI_AddInfo::showSubMeshes(), SMESHGUI_AddInfo::subMeshInfo(), SMESHGUI_Selection::type(), SMESHGUI_SelectionOp::typeById(), SMESH::UniqueName(), and SMESHGUI_ClippingDlg::updateActorList().
_PTR (SObject) SMESHGUI_MeshOp QString aGeomEntry = myDlg->selectedObject( SMESHGUI_MeshDlg::Geom ) |
find an existing submesh by the selected shape
_PTR(SObject) | - the found submesh SObject |
Referenced by StdMeshersGUI_NbSegmentsCreator::buildFrame(), SMESHGUI_MeshOp::initHypCreator(), SMESHGUI_MeshOp::isSubmeshIgnored(), and StdMeshersGUI_StdHypothesisCreator::makeReverseEdgesWdg().