Operation for mech creation or editing. More...
#include <SMESHGUI_MeshOp.h>

Public Types | |
| enum | HypType { Algo = 0 , MainHyp , AddHyp , NbHypTypes } |
| enum | MeshType { MT_ANY = 0 , MT_TRIANGULAR , MT_QUADRILATERAL , MT_TETRAHEDRAL , MT_HEXAHEDRAL } |
| typedef std::pair< SMESH::SMESH_Hypothesis_var, QString > | THypItem |
| typedef QList< THypItem > | THypList |
| typedef int | THypType |
| typedef QMap< THypType, THypList > | TType2HypList |
| typedef int | THypDim |
| typedef QMap< THypDim, TType2HypList > | TDim2Type2HypList |
| typedef QList< int > | IdList |
Public Member Functions | |
| SMESHGUI_MeshOp (const bool, const bool=true) | |
| Constructor. More... | |
| virtual | ~SMESHGUI_MeshOp () |
| Destructor. More... | |
| virtual LightApp_Dialog * | dlg () const |
| Gets dialog of this operation. More... | |
Static Public Member Functions | |
| static void | extractIds (const QStringList &, IdList &, const QChar) |
Protected Types | |
| enum | EntityType { Object , MeshNode , MeshElement } |
Protected Slots | |
| virtual bool | onApply () |
| Creates or edits mesh. More... | |
| void | onCreateHyp (const int, const int) |
| Create hypothesis. More... | |
| void | onEditHyp (const int, const int) |
| Calls plugin methods for hypothesis editing. More... | |
| void | onHypoSet (const QString &) |
| Creates and selects hypothesis of hypotheses set. More... | |
| void | onGeomSelectionByMesh (bool) |
| SLOT. More... | |
| void | onPublishShapeByMeshDlg (SUIT_Operation *) |
| SLOT. More... | |
| void | onCloseShapeByMeshDlg (SUIT_Operation *) |
| SLOT. More... | |
| void | onAlgoSelected (const int, const int=-1) |
| Set available algos and hypos according to the selected algorithm. More... | |
| void | onHypoCreated (int) |
| Necessary steps after hypothesis creation. More... | |
| void | onHypoEdited (int) |
| Necessary steps after hypothesis edition. More... | |
| void | onAlgoSetByMeshType (const int, const int) |
| SLOT. More... | |
| virtual void | onActivateObject (int) |
| Installs filter corresponding to certain object selection widget. More... | |
| virtual void | onDeactivateObject (int) |
| Removes filter corresponding to certain object selection widget. More... | |
| virtual void | onSelectionChanged (int) |
| Empty default implementation. More... | |
| virtual void | onTextChanged (int, const QStringList &) |
| Default implementation allowing user to edit selected ids "by hands". More... | |
| virtual void | onOk () |
| virtual void | onCancel () |
| void | onHelp () |
Protected Member Functions | |
| virtual void | startOperation () |
| Creates dialog if necessary and shows it. More... | |
| virtual void | commitOperation () |
| Selects a recently created mesh or sub-mesh if necessary. More... | |
| virtual void | selectionDone () |
| virtual SUIT_SelectionFilter * | createFilter (const int) const |
| Creates selection filter. More... | |
| virtual bool | isValid (SUIT_Operation *) const |
| Verifies whether given operator is valid for this one. More... | |
| void | extractIds (const QStringList &, IdList &) const |
| Find in QStringList correct node or element ids representation and append integer(id) to IdList. More... | |
| virtual void | abortOperation () |
| virtual void | initDialog () |
| sets the dialog widgets to state just after operation start More... | |
| void | removeCustomFilters () |
| Remove only filters set by this operation (they are in map myFilters ) More... | |
| Selection_Mode | selectionMode () const |
| Return what selection mode is set in VTK viewer. More... | |
| void | setSelectionMode (const Selection_Mode) |
| Set selection mode in VTK viewer. More... | |
| void | highlight (const Handle(SALOME_InteractiveObject)&, const bool, const bool=true) |
| Highlight object in VTK viewer. More... | |
| void | addOrRemoveIndex (const Handle(SALOME_InteractiveObject)&, const SVTK_TVtkIDsMap &, const bool isModeShift) |
| Select some nodes or elements in VTK. More... | |
| SVTK_ViewWindow * | viewWindow () const |
| SVTK_Selector * | selector () const |
| virtual void | selected (QStringList &, SMESHGUI_Dialog::TypesList &, QStringList &) const |
| Get names, types and ids of selected objects. More... | |
| virtual int | typeById (const QString &, const EntityType) const |
| Find type by id. More... | |
| virtual QChar | idChar () const |
| Char using to divide <entry> and <id> in string id representation. By default, '#'. More... | |
| void | selectedIds (const int, IdList &) const |
| Try to find in certain object selection widget selected node or element ids and return it. More... | |
| SMESH::SMESH_Mesh_var | mesh () const |
| Return selected mesh if selection mode isn't ActorSelection and only one object is selected. More... | |
| SMESH_Actor * | actor () const |
| Return actor according to selected mesh if selection mode isn't ActorSelection. 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 |
Protected Attributes | |
| QString | myHelpFileName |
| bool | myIsApplyAndClose |
Private Types | |
| typedef QList< HypothesisData * > | THypDataList |
| typedef QMap< QString, bool > | THypLabelIsAppMap |
| typedef QMap< int, SUIT_SelectionFilter * > | Filters |
Private Member Functions | |
| bool | isValid (QString &) const |
| Verifies validity of input data. More... | |
| bool | isCompatibleToGeometry (HypothesisData *, const int) |
| check compatibility of the geometry More... | |
| bool | isCompatibleToMeshType (HypothesisData *, const int) |
| check compatibility of the mesh type More... | |
| void | availableHyps (const int, const int, QStringList &, THypDataList &, HypothesisData *=0, HypothesisData *=0, const QString &="") |
| Get available hypotheses or algorithms. More... | |
| void | existingHyps (const int, const int, _PTR(SObject), QStringList &, THypList &, HypothesisData *=0) const |
| Gets existing hypotheses or algorithms. More... | |
| HypothesisData * | hypData (const int, const int, const int) |
| access to hypothesis data More... | |
| void | createHypothesis (const int, const int, const QString &) |
| Create hypothesis and update dialog. More... | |
| bool | createMesh (QString &, QStringList &) |
| Creates mesh. More... | |
| bool | createSubMesh (QString &, QStringList &) |
| Create sub-mesh. More... | |
| bool | editMeshOrSubMesh (QString &, QStringList &) |
| Edits mesh or sub-mesh. More... | |
| void | createSubMeshOnInternalEdges (SMESH::SMESH_Mesh_ptr mesh, GEOM::GEOM_Object_ptr mainShape) |
| Create a sub-mesh on internal edges in the case where the global algorithm is of type 1D-2D[-3D] so that the internal edges would remain not meshed. More... | |
| bool | checkSubMeshConcurrency (SMESH::SMESH_Mesh_ptr mesh, SMESH::SMESH_subMesh_ptr submesh, bool askUser=false) |
| Checks if a concurrent sub-meshes appear as result of sub-mesh creation/edition and, if (askUser) , proposes the uses to set up a desired order of sub-mesh computation. More... | |
| int | currentHyp (const int, const int) const |
| Return index of current hypothesis or algorithm. More... | |
| bool | isSelectedHyp (int, int, int) const |
| Checks if a hypothesis is selected. More... | |
| int | nbDlgHypTypes (const int) const |
| Returns nb of HypType's taking into account possible several selected additional hypotheses which are coded as additional HypType's. More... | |
| bool | isAccessibleDim (const int) const |
| Returns true if hypotheses of given dim can be assigned. More... | |
| void | setCurrentHyp (const int, const int, const int, const bool=false) |
| Sets current hypothesis or algorithms. More... | |
| void | setDefaultName (const QString &prefix="") const |
| Generates default and sets mesh/submesh name. More... | |
| SMESH::SMESH_Hypothesis_var | getAlgo (const int) |
| Gets algorithm or creates it if necessary. More... | |
| void | readMesh () |
| Reads parameters of an edited mesh/sub-mesh and assigns them to the dialog. More... | |
| QString | name (_PTR(SObject)) const |
| Gets name of object. More... | |
| int | find (const SMESH::SMESH_Hypothesis_var &, const THypList &) const |
| Finds hypothesis in input list. More... | |
| SMESH::SMESH_Hypothesis_var | getInitParamsHypothesis (const QString &, const QString &, const SMESH::HypInitParams *prm=0) const |
| If create or edit a submesh, return a hypothesis holding parameters used to mesh a sub-shape. More... | |
| void | initHypCreator (SMESHGUI_GenericHypothesisCreator *aCreator) |
| initialize a hypothesis creator More... | |
| bool | getAverageSize (double &averageSize) |
| Ask the user to enter an average size which will be used to create hypotheses of a hypo-set basing on this size. More... | |
| bool | isSubshapeOk () const |
| check if selected shape is a sub-shape of the shape to mesh More... | |
| char * | isSubmeshIgnored () const |
| Return name of the algorithm that does not support sub-meshes and makes sub-mesh creation useless. More... | |
| _PTR (SObject) getSubmeshByGeom() const | |
| void | selectObject (_PTR(SObject)) const |
| Selects a SObject. More... | |
| void | updateMeshTypeList () |
| Update available list of mesh types. More... | |
| void | updateHypoSets () |
| Update available list of hypothesis sets. More... | |
| void | setFilteredAlgoData () |
| Update list of algorithms and hypotheses according to currently selected algorithm, geometry and mesh type. More... | |
| QStringList | getHypoNames () |
| Return names of all existing hypotheses. More... | |
| void | logSmeshParams () |
| Log meshers info. More... | |
Private Attributes | |
| SMESHGUI_MeshDlg * | myDlg |
| SMESHGUI_ShapeByMeshOp * | myShapeByMeshOp |
| bool | myToCreate |
| bool | myIsMesh |
| bool | myIsOnGeometry |
| TRUE if edited mesh is based on geometry. More... | |
| bool | myHasConcurrentSubBefore |
| bool | myIsInvalidSubMesh |
| "invalid sub-mesh" is edited More... | |
| QString | myGeomEntry |
| GEOM::GEOM_Object_var | myGeom |
| TDim2Type2HypList | myExistingHyps |
| all hypothesis of SMESH module More... | |
| TDim2Type2HypList | myObjHyps |
| hypothesis assigned to the current More... | |
| THypDataList | myAvailableHypData [4][NbHypTypes] |
| QString | myLastGeomEntry |
| THypLabelIsAppMap | myHypMapIsApplicable |
| bool | myIgnoreAlgoSelection |
| int | myDim |
| int | myType |
| int | myMaxShapeDim |
| HypothesesSet * | myHypoSet |
| double | myAverageSize |
| QString | myObjectToSelect |
| Filters | myFilters |
| Selection_Mode | myDefSelectionMode |
| Selection_Mode | myOldSelectionMode |
Operation for mech creation or editing.
This operation is used for mech creation or editing.
|
privateinherited |
|
inherited |
| typedef QMap< THypDim, TType2HypList > SMESHGUI_MeshOp::TDim2Type2HypList |
|
private |
| typedef int SMESHGUI_MeshOp::THypDim |
| typedef std::pair<SMESH::SMESH_Hypothesis_var, QString> SMESHGUI_MeshOp::THypItem |
|
private |
| typedef QList< THypItem > SMESHGUI_MeshOp::THypList |
| typedef int SMESHGUI_MeshOp::THypType |
| typedef QMap< THypType, THypList > SMESHGUI_MeshOp::TType2HypList |
|
protectedinherited |
Constructor.
| theToCreate | - if this parameter is true then operation is used for creation, for editing otherwise |
Initialize operation
References myIsOnGeometry, and myMaxShapeDim.
|
virtual |
Destructor.
References myDlg.
|
private |
Referenced by _PTR(), checkSubMeshConcurrency(), createMesh(), createSubMesh(), editMeshOrSubMesh(), existingHyps(), getAlgo(), getInitParamsHypothesis(), initHypCreator(), isSubmeshIgnored(), isSubshapeOk(), isValid(), name(), onAlgoSelected(), onGeomSelectionByMesh(), onHypoCreated(), onPublishShapeByMeshDlg(), readMesh(), and setDefaultName().
|
protectedvirtualinherited |
|
protectedinherited |
Return actor according to selected mesh if selection mode isn't ActorSelection.
References SMESH::FindActorByObject(), and SMESHGUI_SelectionOp::mesh().
Referenced by SMESHGUI_Make2DFrom3DOp::compute2DMesh(), SMESHGUI_MakeFull2DFrom3DOp::compute2DMesh(), SMESHGUI_ShapeByMeshOp::onElemIdChanged(), and SMESHGUI_SelectionOp::onTextChanged().
|
protectedinherited |
Select some nodes or elements in VTK.
References SMESHGUI_SelectionOp::selector().
Referenced by SMESHGUI_FindElemByPointOp::onElemSelected(), and SMESHGUI_ReorientFacesOp::onTextChange().
|
private |
Get available hypotheses or algorithms.
| theDim | - specifies dimension of returned hypotheses/algorifms |
| theHypType | - specifies whether algorims or hypotheses or additional ones are retrieved (possible values are in HypType enumeration) |
| theHyps | - output list of hypotheses' names |
| thePrevAlgoData | - to select hypos able to be used by previously algo (optional) |
| theNextAlgoData | - to select hypos able to be used by next algo (optional) |
| theMeshType | - type of mesh for filtering algorithms (optional) |
Get available hypotheses or algorithm in accordance with input parameters. Result (theHyps) optionally depends on the following:
References AddHyp, Algo, SMESH::GetAvailableHypotheses(), SMESH::GetGroupTitle(), SMESH::GetHypothesisData(), HypothesisData::GroupID, isCompatible(), isCompatibleToGeometry(), isCompatibleToMeshType(), HypothesisData::Label, myIsMesh, myIsOnGeometry, and HypothesisData::Priority.
Referenced by onAlgoSelected(), readMesh(), setFilteredAlgoData(), and updateHypoSets().
|
private |
Checks if a concurrent sub-meshes appear as result of sub-mesh creation/edition and, if (askUser) , proposes the uses to set up a desired order of sub-mesh computation.
Returns true if a sub-mesh concurrency detected.
References _PTR(), SMESHGUI_MeshDlg::getActiveObject(), SMESHGUI::GetSMESHGUI(), SMESHGUI_SelectionOp::mesh(), myDlg, myToCreate, SMESHGUI_SelectionOp::onActivateObject(), SMESHGUI::OnGUIEvent(), SMESHOp::OpMeshOrder, selectionDone(), and selectObject().
Referenced by createSubMesh(), editMeshOrSubMesh(), and readMesh().
|
protectedvirtual |
Selects a recently created mesh or sub-mesh if necessary.
Virtual method redefined from base class called when operation is committed selects a recently created mesh or sub-mesh if necessary. Allows to perform selection when the custom selection filters are removed.
Reimplemented from SMESHGUI_SelectionOp.
References SMESHGUI_SelectionOp::commitOperation(), and myObjectToSelect.
|
protectedvirtual |
Creates selection filter.
| theId | - identifier of current selection widget |
| SUIT_SelectionFilter* | - pointer to the created filter or null |
Creates selection filter in accordance with identifier of current selection widget
Reimplemented from SMESHGUI_SelectionOp.
References SMESHGUI_MeshDlg::Geom, SMESH::MESH, SMESHGUI_MeshDlg::Mesh, SMESH::MESHorSUBMESH, myToCreate, and SMESHGUI_MeshDlg::Obj.
|
private |
Create hypothesis and update dialog.
| theDim | - dimension of hypothesis to be created |
| theType | - hypothesis category (algorithm, hypothesis, additional hypothesis) |
| theTypeName | - specifies hypothesis to be created |
References HypothesisData::ClientLibName, SMESHGUI_GenericHypothesisCreator::create(), SMESH::CreateHypothesis(), getHypoNames(), SMESH::GetHypothesisCreator(), SMESH::GetHypothesisData(), getInitParamsHypothesis(), initHypCreator(), HypothesisData::Label, myDim, myDlg, myType, onHypoCreated(), SMESHGUI_SelectionOp::removeCustomFilters(), and HypothesisData::ServerLibName.
Referenced by onCreateHyp(), and onHypoSet().
|
private |
Creates mesh.
| theMess | - Output parameter intended for returning error message |
| theEntryList | - List of entries of published objects |
| bool | - TRUE if mesh is created, FALSE otherwise |
References _PTR(), AddHyp, SMESH::AddHypothesisOnMesh(), SMESH::ALL, createSubMeshOnInternalEdges(), currentHyp(), SMESH::DIM_0D, SMESH::DIM_3D, SMESH::ELEM0D, SMESHGUI_GroupOnShapeOp::ElementType(), SMESHGUI_MeshDlg::Geom, getAlgo(), SMESH_Gen_i::GetSMESHGen(), SMESHGUI::GetSMESHGen(), isAccessibleDim(), MainHyp, myDlg, myExistingHyps, name(), nbDlgHypTypes(), SMESH::NODE, SMESHGUI_MeshDlg::Obj, SMESH_Gen_i::ObjectToSObject(), setDefaultName(), SMESH::SetName(), and SMESHGUI_MeshDlg::toCreateAllGroups().
Referenced by onApply().
|
private |
Create sub-mesh.
| theMess | - Output parameter intended for returning error message |
| theEntryList | - List of entries of published objects |
| bool | - TRUE if sub-mesh is created, FALSE otherwise |
References _PTR(), AddHyp, SMESH::AddHypothesisOnSubMesh(), checkSubMeshConcurrency(), currentHyp(), SMESH::DIM_0D, SMESH::DIM_3D, SMESHGUI_MeshDlg::Geom, getAlgo(), SMESHGUI::GetSMESHGen(), isAccessibleDim(), MainHyp, SMESHGUI_MeshDlg::Mesh, myDlg, myExistingHyps, myIsInvalidSubMesh, nbDlgHypTypes(), SMESHGUI_MeshDlg::Obj, selectionDone(), selectObject(), and SMESH::SetName().
Referenced by onApply().
|
private |
Create a sub-mesh on internal edges in the case where the global algorithm is of type 1D-2D[-3D] so that the internal edges would remain not meshed.
References SMESH::AddHypothesisOnSubMesh(), Algo, HypothesesSet::current(), HypothesisData::Dim, getAlgo(), getHypoNames(), SMESH::GetHypothesisData(), getInitParamsHypothesis(), SMESHGUI::GetSMESHGen(), HypothesesSet::init(), HypothesesSet::INTERN, isAccessibleDim(), HypothesisData::Label, HypothesesSet::more(), myAvailableHypData, myAverageSize, myDim, myDlg, myHypoSet, HypothesesSet::next(), HypothesisData::ServerLibName, SMESHGUI_MeshTab::setAvailableHyps(), setCurrentHyp(), SMESHGUI_MeshDlg::tab(), and HypothesisData::TypeName.
Referenced by createMesh(), and editMeshOrSubMesh().
|
private |
Return index of current hypothesis or algorithm.
| theDim | - dimension of hypothesis or algorithm |
| theHypType | - Type of hypothesis (Algo, MainHyp, AddHyp) |
| int | - index of current hypothesis or algorithm, -1 if None selected |
References SMESHGUI_MeshTab::currentHyp(), myDlg, and SMESHGUI_MeshDlg::tab().
Referenced by createMesh(), createSubMesh(), editMeshOrSubMesh(), getAlgo(), isSelectedHyp(), logSmeshParams(), onAlgoSelected(), onHypoCreated(), readMesh(), and setFilteredAlgoData().
|
virtual |
Gets dialog of this operation.
| LightApp_Dialog* | - pointer to dialog of this operation |
References myDlg.
Referenced by getAverageSize(), isValid(), onApply(), and onEditHyp().
|
private |
Edits mesh or sub-mesh.
| theMess | - Output parameter intended for returning error message |
| theEntryList | - List of entries of published objects |
| bool | - TRUE if mesh is edited successfully, FALSE otherwise |
Assigns new name hypotheses and algorithms to the mesh or sub-mesh
References _PTR(), AddHyp, SMESH::AddHypothesisOnMesh(), SMESH::AddHypothesisOnSubMesh(), Algo, checkSubMeshConcurrency(), createSubMeshOnInternalEdges(), currentHyp(), SMESH::DIM_0D, SMESH::DIM_2D, SMESH::DIM_3D, existingHyps(), find(), getAlgo(), SMESHGUI::GetSMESHGen(), isSelectedHyp(), MainHyp, myDlg, myExistingHyps, myHasConcurrentSubBefore, myIsOnGeometry, myObjHyps, nbDlgHypTypes(), SMESHGUI_MeshDlg::Obj, SMESH::RemoveHypothesisOrAlgorithmOnMesh(), and SMESH::SetName().
Referenced by onApply().
|
private |
Gets existing hypotheses or algorithms.
| theDim | - specifies dimension of returned hypotheses/algorifms |
| theHypType | - specifies whether algorims or hypotheses or additional ones are retrieved (possible values are in HypType enumeration) |
| theFather | - start object for finding ( may be component, mesh, or sub-mesh ) |
| theHyps | - output list of names. |
| theHypVars | - output list of variables. |
| theAlgoData | - to select hypos able to be used by this algo (optional) |
Gets existing (i.e. already created) hypotheses or algorithm in accordance with input parameters.
WARNING: when using this method to get hyps existing in Mesh component, call availableHyps() before in order to get only hyps of available types that was filtered by availableHyps()
References _PTR(), AddHyp, Algo, HypothesisData::Dim, SMESH::GetHypothesisData(), HypothesisData::IsAuxOrNeedHyp, isCompatible(), myAvailableHypData, SMESH::Tag_AlgorithmsRoot, SMESH::Tag_HypothesisRoot, SMESH::Tag_RefOnAppliedAlgorithms, and SMESH::Tag_RefOnAppliedHypothesis.
Referenced by editMeshOrSubMesh(), getAlgo(), isSubmeshIgnored(), onAlgoSelected(), onHypoCreated(), and readMesh().
|
protectedinherited |
Find in QStringList correct node or element ids representation and append integer(id) to IdList.
References SMESHGUI_SelectionOp::extractIds(), and SMESHGUI_SelectionOp::idChar().
|
staticinherited |
|
private |
Finds hypothesis in input list.
| theHyp | - hypothesis to be found |
| theHypList | - input list of hypotheses |
| int | - index of hypothesis or -1 if it is not found |
Finds position of hypothesis in input list
Referenced by editMeshOrSubMesh(), onAlgoSelected(), and readMesh().
|
private |
Gets algorithm or creates it if necessary.
| theDim | - specifies dimension of returned hypotheses/algorifms |
| SMESH::SMESH_Hypothesis_var | - algorithm |
Gets algorithm or creates it if necessary
References _PTR(), Algo, HypothesisData::ClientLibName, SMESHGUI_GenericHypothesisCreator::create(), SMESH::CreateHypothesis(), currentHyp(), existingHyps(), SMESH::GetHypothesisCreator(), SMESH::GetHypothesisData(), HypothesisData::Label, myAvailableHypData, myDlg, and myExistingHyps.
Referenced by createMesh(), createSubMesh(), createSubMeshOnInternalEdges(), and editMeshOrSubMesh().
|
private |
Ask the user to enter an average size which will be used to create hypotheses of a hypo-set basing on this size.
| [out] | averageSize | - average element size |
References dlg(), SMESHGUI_GenericHypothesisCreator::edit(), HypothesesSet::getCommonHypoSetHypoType(), SMESH::GetHypothesisCreator(), SMESH::GetHypothesisData(), getInitParamsHypothesis(), hypData(), initHypCreator(), myDlg, onHypoEdited(), HypothesisData::ServerLibName, and HypothesisData::TypeName.
Referenced by onHypoSet().
|
private |
Return names of all existing hypotheses.
References myExistingHyps.
Referenced by createHypothesis(), createSubMeshOnInternalEdges(), and onHypoSet().
|
private |
If create or edit a submesh, return a hypothesis holding parameters used to mesh a sub-shape.
| aHypType | - The hypothesis type name |
| aServerLib | - Server library name |
| hypData | - The structure holding the hypothesis type etc. |
| SMESH::SMESH_Hypothesis_var | - the hypothesis holding parameter values |
References _PTR(), SMESH::HypInitParams::averageLength, SMESHGUI_MeshDlg::Geom, SMESH::GetShapeOnMeshOrSubMesh(), SMESHGUI::GetSMESHGen(), SMESHGUI_MeshDlg::Mesh, myDlg, myIsMesh, myToCreate, SMESHGUI_MeshDlg::Obj, SMESH::HypInitParams::quadDominated, and SMESH::HypInitParams::way.
Referenced by createHypothesis(), createSubMeshOnInternalEdges(), getAverageSize(), onEditHyp(), and onHypoSet().
|
protectedinherited |
Referenced by SMESHGUI_BaseComputeOp::computeMesh(), SMESHGUI_InteractiveOp::deactivateCurrentViewOperation(), SMESHGUI_BaseComputeOp::evaluateMesh(), SMESHGUI_Operation::isReadyToStart(), onGeomSelectionByMesh(), SMESHGUI_BaseComputeOp::onGroupOfBadMesh(), SMESHGUI_Operation::onHelp(), SMESHGUI_PrecomputeOp::onPreview(), SMESHGUI_BaseComputeOp::onPublishShape(), SMESHGUI_Add0DElemsOnAllNodesOp::onSetFilter(), SMESHGUI_BaseComputeOp::onShowBadMesh(), SMESHGUI_ShowErrorsOp::startOperation(), SMESHGUI_FindElemByPointOp::startOperation(), SMESHGUI_RemoveNodeReconnectionOp::startOperation(), SMESHGUI_AddNodeOnFaceOp::startOperation(), SMESHGUI_AddNodeOnSegmentOp::startOperation(), SMESHGUI_InteractiveOp::startOperation(), SMESHGUI_MakeNodeAtPointOp::startOperation(), and SMESHGUI_SelectionOp::viewWindow().
|
protectedinherited |
Highlight object in VTK viewer.
References SMESHGUI_SelectionOp::highlight(), and SMESHGUI_SelectionOp::viewWindow().
Referenced by SMESHGUI_SelectionOp::highlight(), SMESHGUI_ReorientFacesOp::onTextChange(), and SMESHGUI_SelectionOp::onTextChanged().
|
private |
access to hypothesis data
| theDim | - hyp dimension |
| theHypType | - hyp type (Algo,MainHyp or AddHyp) |
| theIndex | - index in the list |
| HypothesisData* | - result data, may be 0 |
References SMESH::DIM_3D, myAvailableHypData, and NbHypTypes.
Referenced by getAverageSize(), logSmeshParams(), onAlgoSelected(), onHypoCreated(), and setFilteredAlgoData().
|
protectedvirtualinherited |
Char using to divide <entry> and <id> in string id representation. By default, '#'.
Referenced by SMESHGUI_SelectionOp::extractIds(), SMESHGUI_SelectionOp::selected(), and SMESHGUI_SelectionOp::typeById().
|
protectedvirtualinherited |
sets the dialog widgets to state just after operation start
Reimplemented from SMESHGUI_Operation.
|
private |
initialize a hypothesis creator
References _PTR(), SMESHGUI_MeshDlg::Geom, SMESH::GetShapeOnMeshOrSubMesh(), SMESHGUI_MeshDlg::Mesh, myDlg, myIsMesh, myIsOnGeometry, myToCreate, SMESHGUI_MeshDlg::Obj, SMESHGUI_GenericHypothesisCreator::setMainShapeEntry(), SMESHGUI_GenericHypothesisCreator::setNoGeomMesh(), and SMESHGUI_GenericHypothesisCreator::setShapeEntry().
Referenced by createHypothesis(), getAverageSize(), and onEditHyp().
|
private |
Returns true if hypotheses of given dim can be assigned.
| theDim | - hypotheses dimension |
| bool | - result |
References SMESHGUI_MeshDlg::isTabEnabled(), and myDlg.
Referenced by createMesh(), createSubMesh(), createSubMeshOnInternalEdges(), and onAlgoSelected().
|
protectedvirtualinherited |
References SMESHGUI_Operation::myIsApplyAndClose.
Referenced by SMESHGUI_GroupOnShapeOp::onApply(), SMESHGUI_Make2DFrom3DOp::onApply(), SMESHGUI_MakeFull2DFrom3DOp::onApply(), and onApply().
|
private |
check compatibility of the geometry
| theAlgoData | - to select hypos able to be used by this algo |
| theDim | - algo dimension |
| bool | - check result |
References SMESH::IsApplicable(), myGeom, myGeomEntry, myHypMapIsApplicable, myIsMesh, myLastGeomEntry, and HypothesisData::TypeName.
Referenced by availableHyps().
|
private |
check compatibility of the mesh type
| theAlgoData | - to select hypos able to be used by this algo |
| theDim | - algo dimension |
| bool | - check result |
References SMESHGUI_MeshDlg::currentMeshType(), MT_ANY, MT_HEXAHEDRAL, MT_QUADRILATERAL, MT_TETRAHEDRAL, MT_TRIANGULAR, myDlg, and HypothesisData::OutputTypes.
Referenced by availableHyps().
|
protectedvirtualinherited |
References SMESHGUI_Operation::getSMESHGUI(), and SMESHGUI::isStudyLocked().
|
private |
Checks if a hypothesis is selected.
References AddHyp, currentHyp(), and nbDlgHypTypes().
Referenced by editMeshOrSubMesh().
|
private |
Return name of the algorithm that does not support sub-meshes and makes sub-mesh creation useless.
| char* | - string is to be deleted!!! |
References _PTR(), Algo, existingHyps(), SMESHGUI_MeshDlg::Geom, SMESH::GetHypothesisData(), HypothesisData::InputTypes, HypothesisData::IsSupportSubmeshes, SMESHGUI_MeshDlg::Mesh, myDlg, myIsMesh, and myToCreate.
|
private |
check if selected shape is a sub-shape of the shape to mesh
| bool | - check result |
References _PTR(), SMESH::ContainsSubShape(), SMESHGUI_MeshDlg::Geom, SMESHGUI_MeshDlg::Mesh, SMESHGUI_SelectionOp::mesh(), myDlg, myIsMesh, and myToCreate.
Referenced by isValid().
|
private |
Verifies validity of input data.
| theMess | - Output parameter intended for returning error message |
| bool | - TRUE if input data is valid, false otherwise |
Verifies validity of input data. This method is called when "Apply" or "OK" button is pressed before mesh creation or editing.
References _PTR(), dlg(), SMESHGUI_MeshDlg::Geom, isSubshapeOk(), SMESHGUI_MeshDlg::Mesh, myDlg, myIsInvalidSubMesh, myIsMesh, myToCreate, and SMESHGUI_MeshDlg::Obj.
|
protectedvirtual |
Verifies whether given operator is valid for this one.
| theOtherOp | - other operation |
method redefined from base class verifies whether given operator is valid for this one (i.e. can be started "above" this operator). In current implementation method returns false if theOtherOp operation is not intended for deleting objects or mesh elements.
Reimplemented from SMESHGUI_Operation.
References SMESHGUI_Operation::isValid().
Referenced by onApply().
|
private |
Log meshers info.
References Algo, currentHyp(), SMESHGUI_MeshDlg::currentMeshType(), hypData(), HypothesisData::Label, MT_ANY, MT_HEXAHEDRAL, MT_QUADRILATERAL, MT_TETRAHEDRAL, MT_TRIANGULAR, and myDlg.
Referenced by onApply().
|
protectedinherited |
Return selected mesh if selection mode isn't ActorSelection and only one object is selected.
References SMESH::GetMeshByIO(), and SMESHGUI_SelectionOp::selectionMode().
Referenced by SMESHGUI_SelectionOp::actor(), checkSubMeshConcurrency(), SMESHGUI_ConvToQuadOp::ConnectRadioButtons(), isSubshapeOk(), SMESHGUI_AddNodeOnSegmentOp::isValid(), SMESHGUI_Add0DElemsOnAllNodesOp::onApply(), SMESHGUI_ConvToQuadOp::onApply(), SMESHGUI_CreateDualMeshOp::onApply(), SMESHGUI_GroupOnShapeOp::onApply(), SMESHGUI_SplitBiQuadOp::onApply(), SMESHGUI_Add0DElemsOnAllNodesOp::onSetFilter(), SMESHGUI_AddNodeOnSegmentOp::processStyleEvents(), SMESHGUI_Add0DElemsOnAllNodesOp::selectionDone(), SMESHGUI_ConvToQuadOp::selectionDone(), SMESHGUI_CreateDualMeshOp::selectionDone(), SMESHGUI_SelectionOp::typeById(), and SMESHGUI_Add0DElemsOnAllNodesOp::updateButtons().
|
private |
Gets name of object.
| theSO | - SObject |
| QString | - name of object |
Gets name of object
References _PTR().
Referenced by createMesh(), and readMesh().
|
private |
Returns nb of HypType's taking into account possible several selected additional hypotheses which are coded as additional HypType's.
References myDlg, SMESHGUI_MeshTab::nbAddHypTypes(), NbHypTypes, and SMESHGUI_MeshDlg::tab().
Referenced by createMesh(), createSubMesh(), editMeshOrSubMesh(), isSelectedHyp(), and onAlgoSelected().
|
protectedvirtualslotinherited |
Installs filter corresponding to certain object selection widget.
References SMESHGUI_SelectionOp::createFilter(), SMESHGUI_SelectionOp::myFilters, and SMESHGUI_SelectionOp::selectionDone().
Referenced by checkSubMeshConcurrency(), SMESHGUI_GroupOnShapeOp::init(), SMESHGUI_ReorientFacesOp::onActivateObject(), SMESHGUI_GroupOnShapeOp::onButtonClick(), onHypoCreated(), onHypoEdited(), and SMESHGUI_SelectionOp::startOperation().
|
protectedslot |
Set available algos and hypos according to the selected algorithm.
| theIndex | - algorithm index |
| theDim | - algorithm dimension |
References _PTR(), AddHyp, Algo, availableHyps(), currentHyp(), SMESH::DIM_0D, SMESH::DIM_3D, SMESHGUI_MeshDlg::disableTab(), SMESHGUI_MeshDlg::enableTab(), existingHyps(), find(), SMESH::GetHypothesisData(), getTabDim(), hypData(), isAccessibleDim(), HypothesisData::IsAuxOrNeedHyp, SMESH::IsAvailableHypothesis(), isCompatible(), MainHyp, SMESHGUI_MeshDlg::Mesh, myAvailableHypData, myDlg, myExistingHyps, myIgnoreAlgoSelection, myIsMesh, myObjHyps, myToCreate, nbDlgHypTypes(), SMESHGUI_MeshTab::setAvailableHyps(), setCurrentHyp(), SMESHGUI_MeshTab::setExistingHyps(), and SMESHGUI_MeshDlg::tab().
Referenced by onHypoSet(), readMesh(), setFilteredAlgoData(), and startOperation().
|
protectedslot |
SLOT.
Is called when the user select type of mesh
| theTabIndex | - Index of current active tab |
| theIndex | - Index of current type of mesh |
References setFilteredAlgoData().
Referenced by startOperation().
|
protectedvirtualslot |
Creates or edits mesh.
| bool | - TRUE if operation is performed successfully, FALSE otherwise |
Virtual slot redefined from the base class called when "Apply" button is clicked creates or edits mesh
References createMesh(), createSubMesh(), dlg(), editMeshOrSubMesh(), SMESHGUI_Operation::isApplyAndClose(), SMESHGUI::isStudyLocked(), isValid(), logSmeshParams(), SMESHGUI::Modified(), myDlg, myHypoSet, myIsInvalidSubMesh, myIsMesh, myObjectToSelect, myToCreate, and setDefaultName().
|
protectedvirtualslotinherited |
|
protectedslot |
SLOT.
Is called when Close is pressed in SMESHGUI_ShapeByMeshDlg
References myDlg, myShapeByMeshOp, and SMESHGUI_Dialog::show().
Referenced by onGeomSelectionByMesh().
|
protectedslot |
Create hypothesis.
| theHypType | - hypothesis category (main or additional) |
| theIndex | - index of type of hypothesis to be created |
Specifies dimension of hypothesis to be created (using sender() method), specifies its type and calls method for hypothesis creation
References createHypothesis(), getTabDim(), myAvailableHypData, and myDlg.
Referenced by startOperation().
|
protectedvirtualslotinherited |
Removes filter corresponding to certain object selection widget.
References SMESHGUI_SelectionOp::removeCustomFilters().
Referenced by SMESHGUI_SelectionOp::startOperation().
|
protectedslot |
Calls plugin methods for hypothesis editing.
| theHypType | - specifies whether main hypothesis or additional one is edited |
| theIndex | - index of existing hypothesis |
Calls plugin methods for hypothesis editing
References dlg(), SMESHGUI_GenericHypothesisCreator::edit(), SMESH::GetHypothesisCreator(), getInitParamsHypothesis(), getTabDim(), initHypCreator(), myDlg, myExistingHyps, onHypoEdited(), SMESHGUI_SelectionOp::removeCustomFilters(), and SMESHGUI_GenericHypothesisCreator::setInitParamsHypothesis().
Referenced by startOperation().
|
protectedslot |
SLOT.
Is called when the user selects a way of geometry selection
| theByMesh | - true if the user wants to find geometry by mesh element |
References _PTR(), SMESHGUI_Operation::getSMESHGUI(), SMESHGUI_MeshDlg::Mesh, myDlg, myShapeByMeshOp, onCloseShapeByMeshDlg(), onPublishShapeByMeshDlg(), and SMESHGUI_ShapeByMeshOp::SetMesh().
Referenced by startOperation().
|
protectedslotinherited |
References SMESHGUI_Operation::getSMESHGUI(), and SMESHGUI_Operation::myHelpFileName.
Referenced by SMESHGUI_PrecomputeOp::startOperation(), and SMESHGUI_Operation::startOperation().
|
protectedslot |
Necessary steps after hypothesis creation.
| result | - creation result: 0 = rejected 1 = accepted 2 = additional value meaning that slot is called not from dialog box |
References _PTR(), SMESHGUI_MeshTab::addHyp(), Algo, currentHyp(), existingHyps(), SMESHGUI_MeshDlg::getActiveObject(), hypData(), myDim, myDlg, myExistingHyps, myType, SMESHGUI_SelectionOp::onActivateObject(), SMESHGUI_Dialog::show(), and SMESHGUI_MeshDlg::tab().
Referenced by createHypothesis(), and onHypoSet().
|
protectedslot |
Necessary steps after hypothesis edition.
| result | - creation result: 0 = rejected 1 = accepted |
References SMESHGUI_MeshDlg::getActiveObject(), myDlg, SMESHGUI_SelectionOp::onActivateObject(), and SMESHGUI_Dialog::show().
Referenced by getAverageSize(), and onEditHyp().
|
protectedslot |
Creates and selects hypothesis of hypotheses set.
| theSetName | - The name of hypotheses set |
References AddHyp, Algo, HypothesesSet::ALT, createHypothesis(), HypothesesSet::current(), HypothesisData::Dim, SMESH::DIM_0D, SMESH::DIM_3D, HypothesesSet::getAlgoAvailable(), getAverageSize(), getHypoNames(), SMESH::GetHypothesesSet(), SMESH::GetHypothesisData(), getInitParamsHypothesis(), HypothesesSet::getPreferredHypType(), SMESHGUI::GetSMESHGen(), HypothesesSet::init(), HypothesesSet::isQuadDominated(), HypothesisData::Label, HypothesesSet::MAIN, MainHyp, HypothesesSet::more(), myAvailableHypData, myAverageSize, myDim, myDlg, myHypoSet, myType, HypothesesSet::next(), onAlgoSelected(), onHypoCreated(), HypothesisData::ServerLibName, setCurrentHyp(), SMESHGUI_MeshDlg::setCurrentTab(), HypothesesSet::toUseCommonSize(), and HypothesisData::TypeName.
Referenced by startOperation().
|
protectedvirtualslotinherited |
References SMESHGUI_Operation::onApply(), and SMESHGUI_Operation::setIsApplyAndClose().
Referenced by SMESHGUI_PrecomputeOp::startOperation(), and SMESHGUI_Operation::startOperation().
|
protectedslot |
SLOT.
Is called when Ok is pressed in SMESHGUI_ShapeByMeshDlg
References _PTR(), SMESHGUI_ShapeByMeshOp::GetShape(), SMESHGUI::GetSMESHGUI(), myDlg, myShapeByMeshOp, selectionDone(), selectObject(), and SMESHGUI_Dialog::show().
Referenced by onGeomSelectionByMesh().
|
protectedvirtualslotinherited |
Empty default implementation.
In successors it may be used for more advanced selection checking. This slot is connected to signal when the selection changed in some object selection widget
Referenced by SMESHGUI_SelectionOp::startOperation().
|
protectedvirtualslotinherited |
Default implementation allowing user to edit selected ids "by hands".
In order to run default mechanism, you must set for some object selection widget the "name indication" to "ListOfNames", "read only" state to false and connect the dialog's signal "objectChanged" to this slot Warning: this mechanism can process only integer ids, NOT MESH OR GROUP NAMES!!!
References SMESHGUI_SelectionOp::actor(), SMESHGUI_SelectionOp::extractIds(), SMDS_Mesh::FindElement(), SMDS_Mesh::FindNode(), SMESH_Actor::GetObject(), SMESHGUI_SelectionOp::highlight(), SMESHGUI_SelectionOp::selected(), SMESHGUI_SelectionOp::selectionMode(), and SMESHGUI_SelectionOp::selector().
Referenced by SMESHGUI_Add0DElemsOnAllNodesOp::onTextChanged().
|
private |
Reads parameters of an edited mesh/sub-mesh and assigns them to the dialog.
Called when mesh is edited only.
References _PTR(), AddHyp, Algo, availableHyps(), checkSubMeshConcurrency(), currentHyp(), SMESH::DIM_0D, SMESH::DIM_2D, SMESH::DIM_3D, existingHyps(), find(), SMESHGUI_MeshDlg::Geom, SMESH::GetGeomName(), SMESH::GetHypothesisData(), MainHyp, SMESHGUI_MeshDlg::Mesh, myAvailableHypData, myDlg, myExistingHyps, myHasConcurrentSubBefore, myIsInvalidSubMesh, myIsOnGeometry, myObjHyps, name(), SMESHGUI_MeshDlg::Obj, onAlgoSelected(), SMESHGUI_MeshTab::setAvailableHyps(), setCurrentHyp(), SMESHGUI_MeshTab::setExistingHyps(), and SMESHGUI_MeshDlg::tab().
|
protectedinherited |
Remove only filters set by this operation (they are in map myFilters )
References SMESHGUI_SelectionOp::myFilters.
Referenced by SMESHGUI_SelectionOp::abortOperation(), SMESHGUI_SelectionOp::commitOperation(), createHypothesis(), SMESHGUI_GroupOnShapeOp::init(), SMESHGUI_GroupOnShapeOp::onApply(), SMESHGUI_GroupOnShapeOp::onButtonClick(), SMESHGUI_SelectionOp::onDeactivateObject(), onEditHyp(), and SMESHGUI_SelectionOp::~SMESHGUI_SelectionOp().
|
protectedvirtualinherited |
Get names, types and ids of selected objects.
References SMESH::_PTR(), SMESHGUI_SelectionOp::idChar(), SMESHGUI_SelectionOp::MeshElement, SMESHGUI_SelectionOp::MeshNode, SMESHGUI_SelectionOp::Object, SMESHGUI_SelectionOp::selectionMode(), and SMESHGUI_SelectionOp::typeById().
Referenced by SMESHGUI_SelectionOp::onTextChanged(), SMESHGUI_GroupOnShapeOp::selectionDone(), SMESHGUI_Make2DFrom3DOp::selectionDone(), SMESHGUI_MakeFull2DFrom3DOp::selectionDone(), and SMESHGUI_SelectionOp::selectionDone().
|
protectedinherited |
Try to find in certain object selection widget selected node or element ids and return it.
References SMESHGUI_SelectionOp::extractIds().
|
protectedvirtual |
Reimplemented from SMESHGUI_SelectionOp.
Referenced by checkSubMeshConcurrency(), createSubMesh(), onPublishShapeByMeshDlg(), and startOperation().
|
protectedinherited |
Return what selection mode is set in VTK viewer.
References SMESHGUI_SelectionOp::viewWindow().
Referenced by SMESHGUI_ShapeByMeshOp::activateSelection(), SMESHGUI_SelectionOp::mesh(), SMESHGUI_FindElemByPointOp::onElemSelected(), SMESHGUI_FindElemByPointOp::onElemTypeChange(), SMESHGUI_SelectionOp::onTextChanged(), SMESHGUI_SelectionOp::selected(), SMESHGUI_SelectionOp::selectionDone(), and SMESHGUI_SelectionOp::startOperation().
|
private |
Selects a SObject.
| theSObj | - the SObject to select |
References Handle().
Referenced by checkSubMeshConcurrency(), createSubMesh(), and onPublishShapeByMeshDlg().
|
protectedinherited |
References SMESHGUI_SelectionOp::viewWindow().
Referenced by SMESHGUI_SelectionOp::addOrRemoveIndex(), SMESHGUI_Add0DElemsOnAllNodesOp::onApply(), SMESHGUI_AddNodeOnSegmentOp::onApply(), SMESHGUI_ShapeByMeshOp::onElemIdChanged(), SMESHGUI_AddNodeOnFaceOp::onSelectionDone(), SMESHGUI_AddNodeOnSegmentOp::onSelectionDone(), SMESHGUI_MakeNodeAtPointOp::onSelectionDone(), SMESHGUI_RemoveNodeReconnectionOp::onSelectionDone(), SMESHGUI_ShapeByMeshOp::onSelectionDone(), SMESHGUI_AddNodeOnFaceOp::onTextChange(), SMESHGUI_AddNodeOnSegmentOp::onTextChange(), SMESHGUI_MakeNodeAtPointOp::onTextChange(), SMESHGUI_RemoveNodeReconnectionOp::onTextChange(), SMESHGUI_SelectionOp::onTextChanged(), SMESHGUI_Add0DElemsOnAllNodesOp::selectionDone(), and SMESHGUI_ReorientFacesOp::selectionDone().
|
private |
Sets current hypothesis or algorithms.
| theDim | - dimension of hypothesis or algorithm |
| theHypType | - Type of hypothesis (Algo, MainHyp, AddHyp) |
| theIndex | - Index of hypothesis |
| updateHypsOnAlgoDeselection | - to clear and disable hyps if algo deselected |
Gets current hypothesis or algorithms
References AddHyp, Algo, MainHyp, myDlg, myIgnoreAlgoSelection, SMESHGUI_MeshTab::setAvailableHyps(), SMESHGUI_MeshTab::setCurrentHyp(), SMESHGUI_MeshTab::setExistingHyps(), and SMESHGUI_MeshDlg::tab().
Referenced by createSubMeshOnInternalEdges(), onAlgoSelected(), onHypoSet(), readMesh(), and setFilteredAlgoData().
|
private |
Generates default and sets mesh/submesh name.
Generates and sets default mesh/submesh name(Mesh_1, Mesh_2, etc.)
References _PTR(), myDlg, myIsMesh, and SMESHGUI_MeshDlg::Obj.
Referenced by createMesh(), onApply(), and startOperation().
|
protectedvirtualinherited |
Set according dialog active or inactive.
References MESHCUT::d.
|
private |
Update list of algorithms and hypotheses according to currently selected algorithm, geometry and mesh type.
References Algo, availableHyps(), currentHyp(), SMESHGUI_MeshDlg::currentMeshType(), SMESHGUI_MeshDlg::currentTab(), SMESH::DIM_0D, SMESH::DIM_3D, hypData(), MT_ANY, myAvailableHypData, myDlg, myGeom, myGeomEntry, myHypMapIsApplicable, myLastGeomEntry, myMaxShapeDim, myToCreate, onAlgoSelected(), SMESHGUI_MeshTab::setAvailableHyps(), setCurrentHyp(), SMESHGUI_MeshDlg::setCurrentMeshType(), SMESHGUI_MeshDlg::setMaxHypoDim(), SMESHGUI_MeshDlg::tab(), updateHypoSets(), and updateMeshTypeList().
Referenced by onAlgoSetByMeshType().
|
protectedvirtualinherited |
References SMESHGUI_Operation::myIsApplyAndClose.
Referenced by SMESHGUI_Operation::onOk().
|
protectedinherited |
Set selection mode in VTK viewer.
References SMESHGUI_SelectionOp::viewWindow().
Referenced by SMESHGUI_SelectionOp::abortOperation(), SMESHGUI_RemoveNodeReconnectionOp::activateSelection(), SMESHGUI_ShapeByMeshOp::activateSelection(), SMESHGUI_MakeNodeAtPointOp::activateSelection(), SMESHGUI_SelectionOp::commitOperation(), SMESHGUI_ReorientFacesOp::onActivateObject(), SMESHGUI_FindElemByPointOp::onElemSelected(), SMESHGUI_FindElemByPointOp::onElemTypeChange(), SMESHGUI_AddNodeOnFaceOp::onSelTypeChange(), SMESHGUI_AddNodeOnSegmentOp::onSelTypeChange(), SMESHGUI_Add0DElemsOnAllNodesOp::onSelTypeChange(), and SMESHGUI_SelectionOp::startOperation().
|
protectedvirtual |
Creates dialog if necessary and shows it.
Virtual method redefined from base class called when operation is started creates dialog if necessary and shows it, activates selection
Reimplemented from SMESHGUI_SelectionOp.
References AddHyp, Algo, SMESH::DIM_0D, SMESH::DIM_3D, SMESHGUI_MeshDlg::Geom, MainHyp, SMESHGUI_MeshDlg::Mesh, MT_ANY, myDlg, myExistingHyps, myHasConcurrentSubBefore, SMESHGUI_Operation::myHelpFileName, myHypoSet, myIgnoreAlgoSelection, myIsMesh, myObjectToSelect, myToCreate, SMESHGUI_MeshDlg::Obj, onAlgoSelected(), onAlgoSetByMeshType(), onCreateHyp(), onEditHyp(), onGeomSelectionByMesh(), onHypoSet(), selectionDone(), SMESHGUI_MeshTab::setAvailableHyps(), SMESHGUI_MeshDlg::setCurrentMeshType(), SMESHGUI_MeshDlg::setCurrentTab(), setDefaultName(), SMESHGUI_MeshTab::setExistingHyps(), SMESHGUI_MeshDlg::setGeomPopupEnabled(), SMESHGUI_Dialog::show(), SMESHGUI_SelectionOp::startOperation(), SMESHGUI_MeshDlg::tab(), and updateMeshTypeList().
|
protectedvirtualinherited |
Find type by id.
References SMESH::_PTR(), SMESHGUI_SelectionOp::idChar(), SMESHGUI_SelectionOp::mesh(), SMESHGUI_SelectionOp::MeshElement, SMESHGUI_SelectionOp::Object, SMESHGUI_Dialog::prefix(), and SMESHGUI_Selection::type().
Referenced by SMESHGUI_SelectionOp::selected().
|
private |
Update available list of hypothesis sets.
References Algo, HypothesesSet::ALT, availableHyps(), HypothesesSet::current(), SMESHGUI_MeshDlg::currentMeshType(), SMESH::DIM_0D, HypothesesSet::getAlgoAvailable(), SMESH::GetHypothesesSet(), SMESH::GetHypothesesSets(), SMESH::GetHypothesisData(), HypothesesSet::getPreferredHypType(), HypothesesSet::hasAlgo(), SMESHUtils::Increment(), HypothesesSet::init(), HypothesesSet::MAIN, HypothesesSet::more(), MT_ANY, myAvailableHypData, myDlg, myMaxShapeDim, HypothesesSet::next(), HypothesesSet::setAlgoAvailable(), and SMESHGUI_MeshDlg::setHypoSets().
Referenced by setFilteredAlgoData().
|
private |
Update available list of mesh types.
References myDlg, myMaxShapeDim, and SMESHGUI_MeshDlg::setAvailableMeshType().
Referenced by setFilteredAlgoData(), and startOperation().
|
protectedinherited |
References SMESHGUI_Operation::getSMESHGUI(), and SMESH::GetViewWindow().
Referenced by SMESHGUI_SelectionOp::highlight(), SMESHGUI_ConvToQuadOp::onApply(), SMESHGUI_ShapeByMeshOp::onElemIdChanged(), SMESHGUI_SelectionOp::selectionMode(), SMESHGUI_SelectionOp::selector(), and SMESHGUI_SelectionOp::setSelectionMode().
|
private |
|
private |
Referenced by createSubMeshOnInternalEdges(), and onHypoSet().
|
privateinherited |
Referenced by SMESHGUI_SelectionOp::startOperation().
|
private |
Referenced by createHypothesis(), createSubMeshOnInternalEdges(), onHypoCreated(), and onHypoSet().
|
private |
Referenced by _PTR(), checkSubMeshConcurrency(), createHypothesis(), createMesh(), createSubMesh(), createSubMeshOnInternalEdges(), currentHyp(), dlg(), editMeshOrSubMesh(), getAlgo(), getAverageSize(), getInitParamsHypothesis(), initHypCreator(), isAccessibleDim(), isCompatibleToMeshType(), isSubmeshIgnored(), isSubshapeOk(), isValid(), logSmeshParams(), nbDlgHypTypes(), onAlgoSelected(), onApply(), onCloseShapeByMeshDlg(), onCreateHyp(), onEditHyp(), onGeomSelectionByMesh(), onHypoCreated(), onHypoEdited(), onHypoSet(), onPublishShapeByMeshDlg(), readMesh(), setCurrentHyp(), setDefaultName(), setFilteredAlgoData(), startOperation(), updateHypoSets(), updateMeshTypeList(), and ~SMESHGUI_MeshOp().
|
private |
all hypothesis of SMESH module
Referenced by createMesh(), createSubMesh(), editMeshOrSubMesh(), getAlgo(), getHypoNames(), onAlgoSelected(), onEditHyp(), onHypoCreated(), readMesh(), and startOperation().
|
privateinherited |
Referenced by SMESHGUI_SelectionOp::onActivateObject(), and SMESHGUI_SelectionOp::removeCustomFilters().
|
private |
Referenced by _PTR(), isCompatibleToGeometry(), and setFilteredAlgoData().
|
private |
Referenced by _PTR(), isCompatibleToGeometry(), and setFilteredAlgoData().
|
private |
Referenced by editMeshOrSubMesh(), readMesh(), and startOperation().
|
protectedinherited |
Referenced by SMESHGUI_PrecomputeOp::onCompute(), SMESHGUI_Operation::onHelp(), SMESHGUI_Add0DElemsOnAllNodesOp::SMESHGUI_Add0DElemsOnAllNodesOp(), SMESHGUI_AddNodeOnFaceOp::SMESHGUI_AddNodeOnFaceOp(), SMESHGUI_AddNodeOnSegmentOp::SMESHGUI_AddNodeOnSegmentOp(), SMESHGUI_BaseComputeOp::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_RemoveNodeReconnectionOp::SMESHGUI_RemoveNodeReconnectionOp(), SMESHGUI_ReorientFacesOp::SMESHGUI_ReorientFacesOp(), SMESHGUI_PrecomputeOp::startOperation(), SMESHGUI_ConvToQuadOp::startOperation(), SMESHGUI_CreateDualMeshOp::startOperation(), SMESHGUI_Make2DFrom3DOp::startOperation(), SMESHGUI_MakeFull2DFrom3DOp::startOperation(), startOperation(), and SMESHGUI_SplitBiQuadOp::startOperation().
|
private |
Referenced by isCompatibleToGeometry(), and setFilteredAlgoData().
|
private |
Referenced by createSubMeshOnInternalEdges(), onApply(), onHypoSet(), and startOperation().
|
private |
Referenced by onAlgoSelected(), setCurrentHyp(), and startOperation().
|
protectedinherited |
Referenced by SMESHGUI_Operation::isApplyAndClose(), and SMESHGUI_Operation::setIsApplyAndClose().
|
private |
"invalid sub-mesh" is edited
Referenced by createSubMesh(), isValid(), onApply(), and readMesh().
|
private |
|
private |
TRUE if edited mesh is based on geometry.
Referenced by availableHyps(), editMeshOrSubMesh(), initHypCreator(), readMesh(), and SMESHGUI_MeshOp().
|
private |
Referenced by isCompatibleToGeometry(), and setFilteredAlgoData().
|
private |
Referenced by setFilteredAlgoData(), SMESHGUI_MeshOp(), updateHypoSets(), and updateMeshTypeList().
|
private |
Referenced by commitOperation(), onApply(), and startOperation().
|
private |
hypothesis assigned to the current
Referenced by editMeshOrSubMesh(), onAlgoSelected(), and readMesh().
|
privateinherited |
|
private |
Referenced by onCloseShapeByMeshDlg(), onGeomSelectionByMesh(), and onPublishShapeByMeshDlg().
|
private |
|
private |
Referenced by createHypothesis(), onHypoCreated(), and onHypoSet().