Operation creating 0D elements on all nodes of given elements. More...
#include <SMESHGUI_Add0DElemsOnAllNodesDlg.h>
Public Types | |
typedef QList< int > | IdList |
Public Member Functions | |
SMESHGUI_Add0DElemsOnAllNodesOp () | |
Operation Constructor. More... | |
~SMESHGUI_Add0DElemsOnAllNodesOp () | |
Destructor. More... | |
virtual LightApp_Dialog * | dlg () const |
Static Public Member Functions | |
static void | extractIds (const QStringList &, IdList &, const QChar) |
Protected Types | |
enum | EntityType { Object , MeshNode , MeshElement } |
Protected Slots | |
virtual bool | onApply () |
Makes its main job. More... | |
void | onSelTypeChange (int) |
Sets selection mode. More... | |
void | onSetFilter () |
Install filters. More... | |
virtual void | onTextChanged (int, const QStringList &) |
void | updateButtons () |
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 | onOk () |
virtual void | onCancel () |
void | onHelp () |
Protected Member Functions | |
virtual void | startOperation () |
Start. More... | |
virtual void | selectionDone () |
Treat changed selection. More... | |
virtual SUIT_SelectionFilter * | createFilter (const int) const |
Return a filter of objects. 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 | commitOperation () |
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 |
virtual bool | isValid (SUIT_Operation *) const |
Verifies whether given operator is valid for this one. More... | |
Protected Attributes | |
QString | myHelpFileName |
bool | myIsApplyAndClose |
Private Types | |
typedef QMap< int, SUIT_SelectionFilter * > | Filters |
Private Member Functions | |
Handle (SALOME_InteractiveObject) myIO | |
Private Attributes | |
SMESHGUI_Add0DElemsOnAllNodesDlg * | myDlg |
SMESHGUI_FilterDlg * | myFilterDlg |
Filters | myFilters |
Selection_Mode | myDefSelectionMode |
Selection_Mode | myOldSelectionMode |
Operation creating 0D elements on all nodes of given elements.
|
privateinherited |
|
inherited |
|
protectedinherited |
SMESHGUI_Add0DElemsOnAllNodesOp::SMESHGUI_Add0DElemsOnAllNodesOp | ( | ) |
Operation Constructor.
References myDlg, SMESHGUI_Add0DElemsOnAllNodesDlg::myFilterBtn, SMESHGUI_Add0DElemsOnAllNodesDlg::myGroupBox, SMESHGUI_Operation::myHelpFileName, onSelTypeChange(), onSetFilter(), and updateButtons().
SMESHGUI_Add0DElemsOnAllNodesOp::~SMESHGUI_Add0DElemsOnAllNodesOp | ( | ) |
Destructor.
References myFilterDlg.
|
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().
|
protectedvirtualinherited |
Reimplemented in SMESHGUI_ShapeByMeshOp, and SMESHGUI_MeshOp.
References SMESHGUI_SelectionOp::myOldSelectionMode, SMESHGUI_SelectionOp::removeCustomFilters(), and SMESHGUI_SelectionOp::setSelectionMode().
Referenced by SMESHGUI_MeshOp::commitOperation(), and SMESHGUI_ShapeByMeshOp::commitOperation().
|
protectedvirtual |
Return a filter of objects.
Reimplemented from SMESHGUI_SelectionOp.
References SMESHGUI_Add0DElemsOnAllNodesDlg::getSelectionType(), SMESH::GROUP_0D, SMESH::IDSOURCE, SMESH_LogicalFilter::LO_AND, SMESH_LogicalFilter::LO_NOT, myDlg, and SEL_OBJECT.
|
virtual |
|
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 |
|
protectedinherited |
Referenced by SMESHGUI_BaseComputeOp::computeMesh(), SMESHGUI_InteractiveOp::deactivateCurrentViewOperation(), SMESHGUI_BaseComputeOp::evaluateMesh(), SMESHGUI_Operation::isReadyToStart(), SMESHGUI_MeshOp::onGeomSelectionByMesh(), SMESHGUI_BaseComputeOp::onGroupOfBadMesh(), SMESHGUI_Operation::onHelp(), SMESHGUI_PrecomputeOp::onPreview(), SMESHGUI_BaseComputeOp::onPublishShape(), 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().
|
private |
|
protectedinherited |
Highlight object in VTK viewer.
References SMESHGUI_SelectionOp::viewWindow().
Referenced by SMESHGUI_ReorientFacesOp::onTextChange(), and SMESHGUI_SelectionOp::onTextChanged().
|
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.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
References SMESHGUI_Operation::getSMESHGUI(), and SMESHGUI::isStudyLocked().
|
protectedvirtualinherited |
Verifies whether given operator is valid for this one.
theOtherOp | - other operation |
Virtual 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 in SMESHGUI_BaseComputeOp, and SMESHGUI_MeshOp.
Referenced by SMESHGUI_MeshOp::isValid().
|
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(), SMESHGUI_MeshOp::checkSubMeshConcurrency(), SMESHGUI_ConvToQuadOp::ConnectRadioButtons(), SMESHGUI_MeshOp::isSubshapeOk(), SMESHGUI_AddNodeOnSegmentOp::isValid(), onApply(), SMESHGUI_ConvToQuadOp::onApply(), SMESHGUI_CreateDualMeshOp::onApply(), SMESHGUI_GroupOnShapeOp::onApply(), SMESHGUI_SplitBiQuadOp::onApply(), onSetFilter(), SMESHGUI_AddNodeOnSegmentOp::processStyleEvents(), selectionDone(), SMESHGUI_ConvToQuadOp::selectionDone(), SMESHGUI_CreateDualMeshOp::selectionDone(), SMESHGUI_SelectionOp::typeById(), and updateButtons().
|
protectedvirtualslotinherited |
Installs filter corresponding to certain object selection widget.
References SMESHGUI_SelectionOp::createFilter(), SMESHGUI_SelectionOp::myFilters, and SMESHGUI_SelectionOp::selectionDone().
Referenced by SMESHGUI_MeshOp::checkSubMeshConcurrency(), SMESHGUI_GroupOnShapeOp::init(), SMESHGUI_ReorientFacesOp::onActivateObject(), SMESHGUI_GroupOnShapeOp::onButtonClick(), SMESHGUI_MeshOp::onHypoCreated(), SMESHGUI_MeshOp::onHypoEdited(), and SMESHGUI_SelectionOp::startOperation().
|
protectedvirtualslot |
Makes its main job.
References SMESH::ALL, SMESHGUI_Add0DElemsOnAllNodesDlg::getSelectionType(), SMESHGUI::GetSMESHGUI(), SMESH::IObjectToObject(), SMESHGUI_Add0DElemsOnAllNodesDlg::isValid(), SMESHGUI_SelectionOp::mesh(), SMESHGUI::Modified(), myDlg, SMESHGUI_Add0DElemsOnAllNodesDlg::myDuplicateElemsChkBox, SMESHGUI_Add0DElemsOnAllNodesDlg::myGroupBox, SMESHGUI_Add0DElemsOnAllNodesDlg::myGroupListCmBox, SMESH::NODE, SEL_NODES, SEL_OBJECT, selectionDone(), SMESHGUI_SelectionOp::selector(), and SMESH::UpdateView().
|
protectedvirtualslotinherited |
|
protectedvirtualslotinherited |
Removes filter corresponding to certain object selection widget.
References SMESHGUI_SelectionOp::removeCustomFilters().
Referenced by SMESHGUI_SelectionOp::startOperation().
|
protectedslotinherited |
References SMESHGUI_Operation::getSMESHGUI(), and SMESHGUI_Operation::myHelpFileName.
Referenced by SMESHGUI_PrecomputeOp::startOperation(), and SMESHGUI_Operation::startOperation().
|
protectedvirtualslotinherited |
References SMESHGUI_Operation::onApply(), and SMESHGUI_Operation::setIsApplyAndClose().
Referenced by SMESHGUI_PrecomputeOp::startOperation(), and SMESHGUI_Operation::startOperation().
|
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().
|
protectedslot |
Sets selection mode.
References myDlg, SMESHGUI_Add0DElemsOnAllNodesDlg::myGroupListCmBox, onTextChanged(), SEL_ELEMENTS, SEL_NODES, SEL_OBJECT, selectionDone(), SMESHGUI_SelectionOp::setSelectionMode(), and updateButtons().
Referenced by SMESHGUI_Add0DElemsOnAllNodesOp().
|
protectedslot |
Install filters.
References SMESH::ALL, SMESH::EDGE, SMESH::FACE, SMESH::GetMeshByIO(), SMESHGUI_Add0DElemsOnAllNodesDlg::getSelectionType(), SMESHGUI_Operation::getSMESHGUI(), SMESHGUI_FilterDlg::Init(), SMESHGUI_SelectionOp::mesh(), myDlg, myFilterDlg, SMESH::NODE, SEL_ELEMENTS, SEL_NODES, SMESHGUI_FilterDlg::SetMesh(), SMESHGUI_FilterDlg::SetSelection(), SMESHGUI_FilterDlg::SetSourceWg(), and SMESH::VOLUME.
Referenced by SMESHGUI_Add0DElemsOnAllNodesOp().
|
protectedvirtualslot |
References SMESHGUI_SelectionOp::onTextChanged(), and updateButtons().
Referenced by onSelTypeChange().
|
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(), SMESHGUI_MeshOp::createHypothesis(), SMESHGUI_GroupOnShapeOp::init(), SMESHGUI_GroupOnShapeOp::onApply(), SMESHGUI_GroupOnShapeOp::onButtonClick(), SMESHGUI_SelectionOp::onDeactivateObject(), SMESHGUI_MeshOp::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 |
Treat changed selection.
Reimplemented from SMESHGUI_SelectionOp.
References SMESH::_PTR(), SMESH::GetMeshByIO(), SMESH::GetNameOfSelectedElements(), SMESH::GetNameOfSelectedNodes(), SMESHGUI_Add0DElemsOnAllNodesDlg::getSelectionType(), SMESHGUI_SelectionOp::mesh(), myDlg, myFilterDlg, SMESHGUI_Add0DElemsOnAllNodesDlg::myGroupBox, SMESHGUI_Add0DElemsOnAllNodesDlg::myGroupListCmBox, SEL_ELEMENTS, SEL_NODES, SEL_OBJECT, SMESHGUI_SelectionOp::selectionDone(), SMESHGUI_SelectionOp::selector(), SMESH::Tag_0DElementsGroups, and updateButtons().
Referenced by onApply(), onSelTypeChange(), 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().
|
protectedinherited |
References SMESHGUI_SelectionOp::viewWindow().
Referenced by SMESHGUI_SelectionOp::addOrRemoveIndex(), 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(), selectionDone(), and SMESHGUI_ReorientFacesOp::selectionDone().
|
protectedvirtualinherited |
Set according dialog active or inactive.
References MESHCUT::d.
|
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(), onSelTypeChange(), and SMESHGUI_SelectionOp::startOperation().
|
protectedvirtual |
Start.
Reimplemented from SMESHGUI_SelectionOp.
References myDlg, SMESHGUI_Add0DElemsOnAllNodesDlg::myGroupBox, selectionDone(), SMESHGUI_Dialog::show(), and SMESHGUI_SelectionOp::startOperation().
|
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().
|
protectedslot |
References SMESH::ALL, SMESH::GetMeshByIO(), SMESHGUI_Add0DElemsOnAllNodesDlg::getSelectionType(), SMESHGUI_SelectionOp::mesh(), myDlg, SMESHGUI_Add0DElemsOnAllNodesDlg::myGroupBox, SMESHGUI_Add0DElemsOnAllNodesDlg::myGroupListCmBox, SEL_ELEMENTS, and SEL_OBJECT.
Referenced by onSelTypeChange(), onTextChanged(), selectionDone(), and SMESHGUI_Add0DElemsOnAllNodesOp().
|
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().
|
privateinherited |
Referenced by SMESHGUI_SelectionOp::startOperation().
|
private |
Referenced by createFilter(), onApply(), onSelTypeChange(), onSetFilter(), selectionDone(), SMESHGUI_Add0DElemsOnAllNodesOp(), startOperation(), and updateButtons().
|
private |
Referenced by onSetFilter(), selectionDone(), and ~SMESHGUI_Add0DElemsOnAllNodesOp().
|
privateinherited |
Referenced by SMESHGUI_SelectionOp::onActivateObject(), and SMESHGUI_SelectionOp::removeCustomFilters().
|
protectedinherited |
Referenced by SMESHGUI_PrecomputeOp::onCompute(), SMESHGUI_Operation::onHelp(), 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(), SMESHGUI_MeshOp::startOperation(), and SMESHGUI_SplitBiQuadOp::startOperation().
|
protectedinherited |
Referenced by SMESHGUI_Operation::isApplyAndClose(), and SMESHGUI_Operation::setIsApplyAndClose().
|
privateinherited |