#include <SMESHGUI_MergeDlg.h>
|
typedef QList
< SMESH::SMESH_GroupBase_var > | GrpList |
|
SMESHGUI_MergeDlg::SMESHGUI_MergeDlg |
( |
SMESHGUI * |
theModule, |
|
|
int |
theAction |
|
) |
| |
References AddElemButton, AddGroupButton, AddKeepNodesButton, AvoidMakingHoles, buttonApply, buttonCancel, buttonHelp, buttonOk, DetectButton, SMESH::GetResourceMgr(), SMESH::GetViewWindow(), SMESH::GROUP, GroupButtons, GroupCoincident, GroupEdit, GroupExclude, GroupKeep, GroupMesh, GroupType, IconFirst(), Init(), KeepFromButGroup, KeepList, LineEditMesh, ListCoincident, ListEdit, ListExclude, SMESH_LogicalFilter::LO_OR, MARGIN, myAction, myIdPreview, mySMESHGUI, mySubMeshOrGroupFilter, myTypeId, NodeSpecWidget, RemoveElemButton, RemoveGroupButton, RemoveKeepNodesButton, SelectAllCB, SelectKeepNodesButton, SelectMeshButton, SeparateCornersAndMedium, SetFirstButton, ShowIDs, SPACING, SpinBoxTolerance, SMESH::SUBMESH, TextLabelName, and TypeBox.
SMESHGUI_MergeDlg::~SMESHGUI_MergeDlg |
( |
| ) |
|
void SMESHGUI_MergeDlg::ActivateThisDialog |
( |
| ) |
|
|
privateslot |
References SMESHGUI::EmitSignalDeactivateDialog(), GroupButtons, GroupCoincident, GroupEdit, GroupExclude, GroupKeep, GroupMesh, myAction, mySelectionMgr, mySMESHGUI, SelectionIntoArgument(), SMESHGUI::SetActiveDialogBox(), and TypeBox.
Referenced by enterEvent(), and onOpenView().
bool SMESHGUI_MergeDlg::ClickOnApply |
( |
| ) |
|
|
privateslot |
References AvoidMakingHoles, SMESHGUI::desktop(), Handle(), SMESHGUI::isActiveStudyLocked(), isKeepNodesIDsSelection(), KeepList, LineEditMesh, ListCoincident, SMESHGUI::Modified(), myAction, myEditCurrentArgument, myMesh, mySMESHGUI, myTypeId, SMESH::NODE, onDetect(), and SMESH::UpdateView().
Referenced by ClickOnOk(), and Init().
void SMESHGUI_MergeDlg::ClickOnHelp |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MergeDlg::ClickOnOk |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MergeDlg::DeactivateActiveDialog |
( |
| ) |
|
|
privateslot |
References GroupButtons, GroupCoincident, GroupEdit, GroupExclude, GroupKeep, GroupMesh, myAction, mySelectionMgr, mySMESHGUI, SMESHGUI::ResetState(), SMESHGUI::SetActiveDialogBox(), and TypeBox.
Referenced by Init(), and onCloseView().
void SMESHGUI_MergeDlg::enterEvent |
( |
QEvent * |
| ) |
|
|
private |
void SMESHGUI_MergeDlg::FindGravityCenter |
( |
TColStd_MapOfInteger & |
theElemsIdMap, |
|
|
std::vector< int > & |
theIDs, |
|
|
std::list< gp_XYZ > & |
theGrCentersXYZ |
|
) |
| |
|
private |
QPixmap SMESHGUI_MergeDlg::IconFirst |
( |
| ) |
|
|
static |
void SMESHGUI_MergeDlg::Init |
( |
| ) |
|
|
private |
References AddElemButton, AddGroupButton, AddKeepNodesButton, buttonApply, buttonCancel, buttonHelp, buttonOk, ClickOnApply(), ClickOnHelp(), ClickOnOk(), COORD_MAX, DeactivateActiveDialog(), DetectButton, SMESH::GetSelector(), SMESH::GetViewWindow(), GroupType, KeepFromButGroup, KeepList, LineEditMesh, ListCoincident, ListEdit, myAction, myActor, myEditCurrentArgument, myHelpFileName, myIsBusy, mySelectionMgr, mySelector, mySMESHGUI, mySubMeshOrGroup, onAddElement(), onAddGroup(), onAddKeepNode(), onCloseView(), onDetect(), onKeepNodeSourceChanged(), onOpenView(), onRemoveElement(), onRemoveGroup(), onRemoveKeepNode(), onSelectAll(), onSelectElementFromGroup(), onSelectGroup(), onSelectKeepNode(), onSetFirst(), onTypeChanged(), SMESHGUI_SpinBox::RangeStepAndValidator(), reject(), RemoveElemButton, RemoveGroupButton, RemoveKeepNodesButton, SelectAllCB, SelectionIntoArgument(), SelectKeepNodesButton, SelectMeshButton, SMESHGUI::SetActiveDialogBox(), SetEditCurrentArgument(), SetFirstButton, SMESHGUI_SpinBox::SetValue(), ShowIDs, SpinBoxTolerance, and updateControls().
Referenced by SMESHGUI_MergeDlg().
bool SMESHGUI_MergeDlg::isKeepNodesIDsSelection |
( |
| ) |
|
|
private |
bool SMESHGUI_MergeDlg::isNewKeepNodesGroup |
( |
const char * |
entry | ) |
|
|
private |
void SMESHGUI_MergeDlg::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
private |
void SMESHGUI_MergeDlg::onAddElement |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MergeDlg::onAddGroup |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MergeDlg::onAddKeepNode |
( |
| ) |
|
|
privateslot |
References AddKeepNodesButton, SMESH::GetNameOfSelectedNodes(), Handle(), isKeepNodesIDsSelection(), isNewKeepNodesGroup(), KeepList, myActor, myIsBusy, mySelectionMgr, mySelector, and RemoveKeepNodesButton.
Referenced by Init().
void SMESHGUI_MergeDlg::onCloseView |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MergeDlg::onDetect |
( |
| ) |
|
|
privateslot |
References SMESHGUI_SpinBox::GetValue(), GroupExclude, LineEditMesh, ListCoincident, ListEdit, ListExclude, myAction, myGroups, myMesh, mySubMeshOrGroup, SeparateCornersAndMedium, SpinBoxTolerance, updateControls(), and SMESH::UpdateView().
Referenced by ClickOnApply(), and Init().
void SMESHGUI_MergeDlg::onEditGroup |
( |
| ) |
|
|
private |
void SMESHGUI_MergeDlg::onKeepNodeSourceChanged |
( |
int |
isGroup | ) |
|
|
privateslot |
void SMESHGUI_MergeDlg::onOpenView |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MergeDlg::onRemoveElement |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MergeDlg::onRemoveGroup |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MergeDlg::onRemoveKeepNode |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MergeDlg::onSelectAll |
( |
bool |
isToggled | ) |
|
|
privateslot |
void SMESHGUI_MergeDlg::onSelectElementFromGroup |
( |
| ) |
|
|
privateslot |
References FindGravityCenter(), SMESH_Actor::GetObject(), SMESH::GetViewWindow(), isKeepNodesIDsSelection(), KeepList, ListCoincident, ListEdit, myAction, myActor, myEditCurrentArgument, myIdPreview, myIsBusy, mySelectionMgr, mySelector, mySMESHGUI, SMESHGUI_IdPreview::SetElemsData(), SetFirstButton, SMESH::SetPointRepresentation(), SMESHGUI_IdPreview::SetPointsData(), SMESHGUI_IdPreview::SetPointsLabeled(), and ShowIDs.
Referenced by Init().
void SMESHGUI_MergeDlg::onSelectGroup |
( |
| ) |
|
|
privateslot |
References FindGravityCenter(), SMESH_Actor::GetObject(), SMESH::GetViewWindow(), isKeepNodesIDsSelection(), KeepList, ListCoincident, ListEdit, myAction, myActor, myEditCurrentArgument, myIdPreview, myIsBusy, mySelectionMgr, mySelector, mySMESHGUI, SelectAllCB, SMESHGUI_IdPreview::SetElemsData(), SMESH::SetPointRepresentation(), SMESHGUI_IdPreview::SetPointsData(), SMESHGUI_IdPreview::SetPointsLabeled(), ShowIDs, and updateControls().
Referenced by Init().
void SMESHGUI_MergeDlg::onSelectKeepNode |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MergeDlg::onSetFirst |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MergeDlg::onTypeChanged |
( |
int |
id | ) |
|
|
privateslot |
References SMESH::GetViewWindow(), SMESH::GROUP, GroupCoincident, GroupEdit, GroupMesh, SMESH_LogicalFilter::LO_OR, SMESH::MESHorSUBMESH, myAction, myIdPreview, myMeshOrSubMeshOrGroupFilter, mySelectionMgr, mySelector, mySMESHGUI, myTypeId, SelectionIntoArgument(), SMESH::SetPointRepresentation(), SMESHGUI_IdPreview::SetPointsLabeled(), updateControls(), and SMESH::UpdateView().
Referenced by Init().
void SMESHGUI_MergeDlg::reject |
( |
| ) |
|
|
protectedvirtualslot |
void SMESHGUI_MergeDlg::SelectionIntoArgument |
( |
| ) |
|
|
privateslot |
References AddKeepNodesButton, SMESH::FindActorByEntry(), SMESH::FindActorByObject(), SMESH::GetMeshByIO(), SMESH::GetNameOfSelectedIObjects(), SMESH::GetNameOfSelectedNodes(), SMESH::GetViewWindow(), GroupExclude, Handle(), isKeepNodesIDsSelection(), isNewKeepNodesGroup(), KeepList, LineEditMesh, ListCoincident, ListEdit, ListExclude, myAction, myActor, myEditCurrentArgument, myEntry, myGroups, myIdPreview, myMesh, myMeshOrSubMeshOrGroupFilter, mySelectionMgr, mySelector, mySMESHGUI, mySubMeshOrGroup, myTypeId, RemoveKeepNodesButton, SMESH::SetPointRepresentation(), SMESHGUI_IdPreview::SetPointsLabeled(), and updateControls().
Referenced by ActivateThisDialog(), Init(), onTypeChanged(), and SetEditCurrentArgument().
void SMESHGUI_MergeDlg::SetEditCurrentArgument |
( |
| ) |
|
|
privateslot |
References SMESH::GetViewWindow(), isKeepNodesIDsSelection(), KeepList, LineEditMesh, myEditCurrentArgument, myMeshOrSubMeshOrGroupFilter, mySelectionMgr, mySMESHGUI, mySubMeshOrGroupFilter, myTypeId, SelectionIntoArgument(), SelectKeepNodesButton, SelectMeshButton, and SMESH::SetPointRepresentation().
Referenced by Init().
void SMESHGUI_MergeDlg::updateControls |
( |
| ) |
|
|
privateslot |
References AddKeepNodesButton, buttonApply, buttonOk, DetectButton, KeepList, ListCoincident, ListEdit, myAction, myEditCurrentArgument, myMesh, myTypeId, SMESH::ORDER_QUADRATIC, RemoveKeepNodesButton, SeparateCornersAndMedium, and SetFirstButton.
Referenced by Init(), onAddGroup(), onDetect(), onRemoveGroup(), onSelectGroup(), onTypeChanged(), and SelectionIntoArgument().
QPushButton* SMESHGUI_MergeDlg::AddElemButton |
|
private |
QPushButton* SMESHGUI_MergeDlg::AddGroupButton |
|
private |
QPushButton* SMESHGUI_MergeDlg::AddKeepNodesButton |
|
private |
QCheckBox* SMESHGUI_MergeDlg::AvoidMakingHoles |
|
private |
QPushButton* SMESHGUI_MergeDlg::buttonApply |
|
private |
QPushButton* SMESHGUI_MergeDlg::buttonCancel |
|
private |
QPushButton* SMESHGUI_MergeDlg::buttonHelp |
|
private |
QPushButton* SMESHGUI_MergeDlg::buttonOk |
|
private |
QPushButton* SMESHGUI_MergeDlg::DetectButton |
|
private |
QGroupBox* SMESHGUI_MergeDlg::GroupCoincident |
|
private |
QButtonGroup* SMESHGUI_MergeDlg::GroupType |
|
private |
QButtonGroup* SMESHGUI_MergeDlg::KeepFromButGroup |
|
private |
QListWidget* SMESHGUI_MergeDlg::KeepList |
|
private |
Referenced by ClickOnApply(), Init(), isNewKeepNodesGroup(), onAddKeepNode(), onKeepNodeSourceChanged(), onRemoveKeepNode(), onSelectElementFromGroup(), onSelectGroup(), onSelectKeepNode(), SelectionIntoArgument(), SetEditCurrentArgument(), SMESHGUI_MergeDlg(), and updateControls().
QLineEdit* SMESHGUI_MergeDlg::LineEditMesh |
|
private |
QListWidget* SMESHGUI_MergeDlg::ListCoincident |
|
private |
Referenced by ClickOnApply(), Init(), onAddGroup(), onDetect(), onEditGroup(), onRemoveElement(), onRemoveGroup(), onSelectAll(), onSelectElementFromGroup(), onSelectGroup(), onSetFirst(), SelectionIntoArgument(), SMESHGUI_MergeDlg(), and updateControls().
QListWidget* SMESHGUI_MergeDlg::ListEdit |
|
private |
Referenced by Init(), onAddElement(), onDetect(), onEditGroup(), onRemoveElement(), onRemoveGroup(), onSelectElementFromGroup(), onSelectGroup(), onSetFirst(), SelectionIntoArgument(), SMESHGUI_MergeDlg(), and updateControls().
QListWidget* SMESHGUI_MergeDlg::ListExclude |
|
private |
int SMESHGUI_MergeDlg::myAction |
|
private |
Referenced by ActivateThisDialog(), ClickOnApply(), DeactivateActiveDialog(), Init(), onDetect(), onSelectElementFromGroup(), onSelectGroup(), onTypeChanged(), SelectionIntoArgument(), SMESHGUI_MergeDlg(), and updateControls().
QWidget* SMESHGUI_MergeDlg::myEditCurrentArgument |
|
private |
QString SMESHGUI_MergeDlg::myEntry |
|
private |
GrpList SMESHGUI_MergeDlg::myGroups |
|
private |
QString SMESHGUI_MergeDlg::myHelpFileName |
|
private |
bool SMESHGUI_MergeDlg::myIsBusy |
|
private |
SMESH::SMESH_Mesh_var SMESHGUI_MergeDlg::myMesh |
|
private |
LightApp_SelectionMgr* SMESHGUI_MergeDlg::mySelectionMgr |
|
private |
Referenced by ActivateThisDialog(), DeactivateActiveDialog(), Init(), onAddKeepNode(), onSelectElementFromGroup(), onSelectGroup(), onSelectKeepNode(), onTypeChanged(), reject(), SelectionIntoArgument(), and SetEditCurrentArgument().
SVTK_Selector* SMESHGUI_MergeDlg::mySelector |
|
private |
Referenced by enterEvent(), Init(), onAddElement(), onAddGroup(), onAddKeepNode(), onCloseView(), onOpenView(), onSelectElementFromGroup(), onSelectGroup(), onSelectKeepNode(), onTypeChanged(), and SelectionIntoArgument().
Referenced by ActivateThisDialog(), ClickOnApply(), ClickOnHelp(), DeactivateActiveDialog(), enterEvent(), Init(), onOpenView(), onSelectElementFromGroup(), onSelectGroup(), onTypeChanged(), reject(), SelectionIntoArgument(), SetEditCurrentArgument(), and SMESHGUI_MergeDlg().
SMESH::SMESH_IDSource_var SMESHGUI_MergeDlg::mySubMeshOrGroup |
|
private |
int SMESHGUI_MergeDlg::myTypeId |
|
private |
QWidget* SMESHGUI_MergeDlg::NodeSpecWidget |
|
private |
QPushButton* SMESHGUI_MergeDlg::RemoveElemButton |
|
private |
QPushButton* SMESHGUI_MergeDlg::RemoveGroupButton |
|
private |
QPushButton* SMESHGUI_MergeDlg::RemoveKeepNodesButton |
|
private |
QCheckBox* SMESHGUI_MergeDlg::SelectAllCB |
|
private |
QPushButton* SMESHGUI_MergeDlg::SelectKeepNodesButton |
|
private |
QPushButton* SMESHGUI_MergeDlg::SelectMeshButton |
|
private |
QCheckBox* SMESHGUI_MergeDlg::SeparateCornersAndMedium |
|
private |
QPushButton* SMESHGUI_MergeDlg::SetFirstButton |
|
private |
QCheckBox* SMESHGUI_MergeDlg::ShowIDs |
|
private |
QLabel* SMESHGUI_MergeDlg::TextLabelName |
|
private |