#include <SMESHGUI_SewingDlg.h>
SMESHGUI_SewingDlg::SMESHGUI_SewingDlg |
( |
SMESHGUI * |
theModule | ) |
|
References AutoSewCheck, BorderEndLine, buttonApply, buttonCancel, buttonHelp, buttonOk, CheckBoxMerge, CheckBoxPolyedrs, CheckBoxPolygons, ClickOnApply(), ClickOnHelp(), ClickOnOk(), ConstructorsBox, ConstructorsClicked(), COORD_MAX, DeactivateActiveDialog(), DetectButton, SMESH::GetResourceMgr(), SMESH::GetSelector(), SMESH::GetViewWindow(), GroupArguments, GroupButtons, GroupCoincidentWidget, GroupConstructors, SMESHGUI_MergeDlg::IconFirst(), Init(), LineEdit1, LineEdit2, LineEdit3, LineEdit4, LineEdit5, LineEdit6, LineEditMesh, ListCoincident, ListEdit, MARGIN, ModeButGrp, ModeGroup, MoveBorderEndsButGrp, myActor, myHelpFileName, mySelectionMgr, mySelector, mySMESHGUI, myStoredEntityMode, onAutoSew(), onCloseView(), onDetectClicked(), onModeChange(), onMoveBorderEnd(), onOpenView(), onRemoveElemClicked(), onRemoveGroupClicked(), onSelectAll(), onSelectBorderPartFromGroup(), onSelectGroup(), onSetFirstClicked(), onSwapClicked(), onTextChange(), RadioButton1, RadioButton2, RadioButton3, RadioButton4, SMESHGUI_SpinBox::RangeStepAndValidator(), reject(), RemoveElemButton, RemoveGroupButton, SelectAllCheck, SelectButton1, SelectButton2, SelectButton3, SelectButton4, SelectButton5, SelectButton6, SelectionIntoArgument(), SMESHGUI::SetActiveDialogBox(), setDisplayMode(), SetEditCurrentArgument(), SetFirstButton, SMESHGUI_SpinBox::SetValue(), SewFreeBordersWidget, SPACING, SpinBoxTolerance, StepSpin, SubGroup1, SubGroup2, SwapBut, TextLabel1, TextLabel2, TextLabel3, TextLabel4, TextLabel5, and TextLabel6.
SMESHGUI_SewingDlg::~SMESHGUI_SewingDlg |
( |
| ) |
|
void SMESHGUI_SewingDlg::ActivateThisDialog |
( |
| ) |
|
|
privateslot |
bool SMESHGUI_SewingDlg::ClickOnApply |
( |
| ) |
|
|
privateslot |
References AutoSewCheck, CheckBoxMerge, CheckBoxPolyedrs, CheckBoxPolygons, ConstructorsClicked(), GetConstructorId(), SMESHGUI_SpinBox::GetValue(), Handle(), Init(), SMESHGUI::isActiveStudyLocked(), IsValid(), LineEdit1, LineEdit2, LineEdit3, LineEdit4, LineEdit5, LineEdit6, ListCoincident, ModeButGrp, SMESHGUI::Modified(), myActor, myBorders, myMesh, mySelectionMgr, mySMESHGUI, SMESH::SMESH_MeshEditor::SEW_OK, SpinBoxTolerance, and SMESH::UpdateView().
Referenced by ClickOnOk(), and SMESHGUI_SewingDlg().
void SMESHGUI_SewingDlg::ClickOnHelp |
( |
| ) |
|
|
privateslot |
void SMESHGUI_SewingDlg::ClickOnOk |
( |
| ) |
|
|
privateslot |
void SMESHGUI_SewingDlg::ConstructorsClicked |
( |
int |
constructorId | ) |
|
|
privateslot |
References CheckBoxMerge, CheckBoxPolyedrs, CheckBoxPolygons, SMESH::GetViewWindow(), GroupArguments, LineEdit1, LineEdit2, LineEdit3, LineEdit4, LineEdit5, LineEdit6, ModeButGrp, ModeGroup, myActor, myEditCurrentArgument, myOk1, myOk2, myOk3, myOk4, myOk5, myOk6, mySelectionMgr, mySMESHGUI, onModeChange(), restoreDisplayMode(), SelectButton5, SelectButton6, SelectionIntoArgument(), SMESH_Actor::SetPointRepresentation(), SewFreeBordersWidget, SubGroup1, SubGroup2, TextLabel1, TextLabel2, TextLabel3, TextLabel4, TextLabel5, TextLabel6, and UpdateButtons().
Referenced by ActivateThisDialog(), ClickOnApply(), and SMESHGUI_SewingDlg().
void SMESHGUI_SewingDlg::DeactivateActiveDialog |
( |
| ) |
|
|
privateslot |
void SMESHGUI_SewingDlg::enterEvent |
( |
QEvent * |
e | ) |
|
|
private |
int SMESHGUI_SewingDlg::GetConstructorId |
( |
| ) |
|
|
private |
QString SMESHGUI_SewingDlg::getGroupText |
( |
int |
groupIndex | ) |
|
|
private |
bool SMESHGUI_SewingDlg::haveBorders |
( |
| ) |
|
|
private |
void SMESHGUI_SewingDlg::Init |
( |
| ) |
|
|
private |
bool SMESHGUI_SewingDlg::IsValid |
( |
| ) |
|
|
private |
References AutoSewCheck, GetConstructorId(), getGroupText(), haveBorders(), ListCoincident, ModeButGrp, myMesh, myOk1, myOk2, myOk3, myOk4, myOk5, and myOk6.
Referenced by ClickOnApply(), and UpdateButtons().
void SMESHGUI_SewingDlg::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
private |
void SMESHGUI_SewingDlg::onAutoSew |
( |
int |
isAuto | ) |
|
|
privateslot |
void SMESHGUI_SewingDlg::onCloseView |
( |
| ) |
|
|
privateslot |
void SMESHGUI_SewingDlg::onDetectClicked |
( |
| ) |
|
|
privateslot |
References getGroupText(), SMESHGUI_SpinBox::GetValue(), haveBorders(), ListCoincident, myBorderDisplayers, myBorders, myBusy, myMesh, onSelectGroup(), SpinBoxTolerance, and UpdateButtons().
Referenced by SMESHGUI_SewingDlg().
void SMESHGUI_SewingDlg::onGroupChange |
( |
bool |
partChange = false | ) |
|
|
private |
References getGroupText(), getPartText(), ListCoincident, ListEdit, myBorderDisplayers, myBorders, myCurGroupIndex, and onSelectBorderPartFromGroup().
Referenced by onMoveBorderEnd(), onRemoveElemClicked(), onSetFirstClicked(), and onSwapClicked().
void SMESHGUI_SewingDlg::onModeChange |
( |
int |
mode | ) |
|
|
privateslot |
References AutoSewCheck, SMESH::GetCurrentVtkView(), LineEdit1, LineEditMesh, myActor, myEditCurrentArgument, onAutoSew(), SMESH_Actor::SetPointRepresentation(), SewFreeBordersWidget, SubGroup1, and SubGroup2.
Referenced by ConstructorsClicked(), and SMESHGUI_SewingDlg().
void SMESHGUI_SewingDlg::onMoveBorderEnd |
( |
int |
button | ) |
|
|
privateslot |
References Abs(), SMESH::FreeBorderPart::border, myBorders, myCurGroupIndex, myCurPartIndex, SMESH::FreeBorderPart::node1, SMESH::FreeBorderPart::node2, SMESH::FreeBorder::nodeIDs, SMESH::FreeBorderPart::nodeLast, onGroupChange(), setCurrentPart(), and StepSpin.
Referenced by SMESHGUI_SewingDlg().
void SMESHGUI_SewingDlg::onOpenView |
( |
| ) |
|
|
privateslot |
void SMESHGUI_SewingDlg::onRemoveElemClicked |
( |
| ) |
|
|
privateslot |
void SMESHGUI_SewingDlg::onRemoveGroupClicked |
( |
| ) |
|
|
privateslot |
void SMESHGUI_SewingDlg::onSelectAll |
( |
int |
isOn | ) |
|
|
privateslot |
void SMESHGUI_SewingDlg::onSelectBorderPartFromGroup |
( |
| ) |
|
|
privateslot |
References Abs(), SMESH::FreeBorderPart::border, BorderEndLine, ListEdit, MoveBorderEndsButGrp, myBorderDisplayers, myBorders, myBusy, myCurGroupIndex, myCurPartIndex, SMESH::FreeBorderPart::node1, SMESH::FreeBorderPart::node2, SMESH::FreeBorder::nodeIDs, SMESH::FreeBorderPart::nodeLast, RemoveElemButton, SMESH::RepaintCurrentView(), setCurrentGroup(), setCurrentPart(), SetFirstButton, StepSpin, and SwapBut.
Referenced by onGroupChange(), onSelectGroup(), and SMESHGUI_SewingDlg().
void SMESHGUI_SewingDlg::onSelectGroup |
( |
| ) |
|
|
privateslot |
References BorderEndLine, getPartText(), haveBorders(), ListCoincident, ListEdit, myBorderDisplayers, myBorders, myBusy, myCurGroupIndex, onSelectBorderPartFromGroup(), RemoveGroupButton, SMESH::RepaintCurrentView(), SelectAllCheck, setCurrentGroup(), and showGroup().
Referenced by onDetectClicked(), onRemoveGroupClicked(), SelectionIntoArgument(), and SMESHGUI_SewingDlg().
void SMESHGUI_SewingDlg::onSetFirstClicked |
( |
| ) |
|
|
privateslot |
void SMESHGUI_SewingDlg::onSwapClicked |
( |
| ) |
|
|
privateslot |
References Abs(), SMESH::FreeBorderPart::border, myBorders, myCurGroupIndex, myCurPartIndex, SMESH::FreeBorderPart::node1, SMESH::FreeBorderPart::node2, SMESH::FreeBorder::nodeIDs, SMESH::FreeBorderPart::nodeLast, onGroupChange(), and setCurrentPart().
Referenced by SMESHGUI_SewingDlg().
void SMESHGUI_SewingDlg::onTextChange |
( |
const QString & |
theNewText | ) |
|
|
privateslot |
References SMDS_Mesh::FindElement(), SMDS_Mesh::FindNode(), GetConstructorId(), SMDS_MeshElement::GetID(), SMESH_Actor::GetObject(), SMESH::GetViewWindow(), LineEdit1, LineEdit2, LineEdit3, LineEdit4, LineEdit5, LineEdit6, myActor, myBusy, myEditCurrentArgument, myOk1, myOk2, myOk3, myOk4, myOk5, myOk6, mySelector, mySMESHGUI, SMESH::SetPointRepresentation(), and UpdateButtons().
Referenced by SMESHGUI_SewingDlg().
void SMESHGUI_SewingDlg::reject |
( |
| ) |
|
|
protectedvirtualslot |
void SMESHGUI_SewingDlg::restoreDisplayMode |
( |
| ) |
|
|
private |
void SMESHGUI_SewingDlg::SelectionIntoArgument |
( |
bool |
isSelectionChanged = true | ) |
|
|
privateslot |
References _PTR(), AutoSewCheck, buttonApply, buttonOk, CheckBoxPolyedrs, DetectButton, SMESH::FindActorByEntry(), GetConstructorId(), SMESH::GetMeshByIO(), SMESH::GetNameOfSelectedElements(), SMESH::GetNameOfSelectedNodes(), GroupButtons, Handle(), LineEdit1, LineEdit2, LineEdit3, LineEdit4, LineEdit5, LineEdit6, LineEditMesh, ListCoincident, ListEdit, myActor, myBusy, myEditCurrentArgument, myMesh, myOk1, myOk2, myOk3, myOk4, myOk5, myOk6, mySelectionMgr, mySelector, onSelectGroup(), restoreDisplayMode(), setDisplayMode(), SObject(), and UpdateButtons().
Referenced by ActivateThisDialog(), ConstructorsClicked(), Init(), SetEditCurrentArgument(), and SMESHGUI_SewingDlg().
bool SMESHGUI_SewingDlg::setCurrentGroup |
( |
| ) |
|
|
private |
bool SMESHGUI_SewingDlg::setCurrentPart |
( |
| ) |
|
|
private |
void SMESHGUI_SewingDlg::setDisplayMode |
( |
| ) |
|
|
private |
void SMESHGUI_SewingDlg::SetEditCurrentArgument |
( |
| ) |
|
|
privateslot |
References GetConstructorId(), SMESH::GetViewWindow(), LineEdit1, LineEdit2, LineEdit3, LineEdit4, LineEdit5, LineEdit6, myEditCurrentArgument, myOk1, myOk2, myOk3, myOk4, myOk5, myOk6, mySelectionMgr, mySMESHGUI, SelectButton1, SelectButton2, SelectButton3, SelectButton4, SelectButton5, SelectButton6, SelectionIntoArgument(), and SMESH::SetPointRepresentation().
Referenced by SMESHGUI_SewingDlg().
void SMESHGUI_SewingDlg::showGroup |
( |
QListWidgetItem * |
item | ) |
|
|
private |
void SMESHGUI_SewingDlg::UpdateButtons |
( |
| ) |
|
|
private |
QCheckBox* SMESHGUI_SewingDlg::AutoSewCheck |
|
private |
QLineEdit* SMESHGUI_SewingDlg::BorderEndLine[2] |
|
private |
QPushButton* SMESHGUI_SewingDlg::buttonApply |
|
private |
QPushButton* SMESHGUI_SewingDlg::buttonCancel |
|
private |
QPushButton* SMESHGUI_SewingDlg::buttonHelp |
|
private |
QPushButton* SMESHGUI_SewingDlg::buttonOk |
|
private |
QCheckBox* SMESHGUI_SewingDlg::CheckBoxMerge |
|
private |
QCheckBox* SMESHGUI_SewingDlg::CheckBoxPolyedrs |
|
private |
QCheckBox* SMESHGUI_SewingDlg::CheckBoxPolygons |
|
private |
QGroupBox* SMESHGUI_SewingDlg::ConstructorsBox |
|
private |
QPushButton* SMESHGUI_SewingDlg::DetectButton |
|
private |
QGroupBox* SMESHGUI_SewingDlg::GroupArguments |
|
private |
QWidget* SMESHGUI_SewingDlg::GroupCoincidentWidget |
|
private |
QButtonGroup* SMESHGUI_SewingDlg::GroupConstructors |
|
private |
QLineEdit* SMESHGUI_SewingDlg::LineEdit1 |
|
private |
QLineEdit* SMESHGUI_SewingDlg::LineEdit2 |
|
private |
QLineEdit* SMESHGUI_SewingDlg::LineEdit3 |
|
private |
QLineEdit* SMESHGUI_SewingDlg::LineEdit4 |
|
private |
QLineEdit* SMESHGUI_SewingDlg::LineEdit5 |
|
private |
QLineEdit* SMESHGUI_SewingDlg::LineEdit6 |
|
private |
QLineEdit* SMESHGUI_SewingDlg::LineEditMesh |
|
private |
QListWidget* SMESHGUI_SewingDlg::ListCoincident |
|
private |
Referenced by ClickOnApply(), IsValid(), onDetectClicked(), onGroupChange(), onRemoveGroupClicked(), onSelectAll(), onSelectGroup(), SelectionIntoArgument(), setCurrentGroup(), showGroup(), and SMESHGUI_SewingDlg().
QListWidget* SMESHGUI_SewingDlg::ListEdit |
|
private |
QButtonGroup* SMESHGUI_SewingDlg::ModeButGrp |
|
private |
QButtonGroup* SMESHGUI_SewingDlg::MoveBorderEndsButGrp |
|
private |
SMESH::CoincidentFreeBorders_var SMESHGUI_SewingDlg::myBorders |
|
private |
Referenced by ClickOnApply(), getGroupText(), SMESHGUI_SewingDlg::BorderGroupDisplayer::getPartEnds(), getPartText(), haveBorders(), onDetectClicked(), onGroupChange(), onMoveBorderEnd(), onRemoveElemClicked(), onRemoveGroupClicked(), onSelectBorderPartFromGroup(), onSelectGroup(), onSetFirstClicked(), onSwapClicked(), setCurrentGroup(), setCurrentPart(), showGroup(), and SMESHGUI_SewingDlg::BorderGroupDisplayer::Update().
bool SMESHGUI_SewingDlg::myBusy |
|
private |
int SMESHGUI_SewingDlg::myCurGroupIndex |
|
private |
int SMESHGUI_SewingDlg::myCurPartIndex |
|
private |
QLineEdit* SMESHGUI_SewingDlg::myEditCurrentArgument |
|
private |
QString SMESHGUI_SewingDlg::myHelpFileName |
|
private |
SMESH::SMESH_Mesh_var SMESHGUI_SewingDlg::myMesh |
|
private |
int SMESHGUI_SewingDlg::myOk1 |
|
private |
int SMESHGUI_SewingDlg::myOk2 |
|
private |
int SMESHGUI_SewingDlg::myOk3 |
|
private |
int SMESHGUI_SewingDlg::myOk4 |
|
private |
int SMESHGUI_SewingDlg::myOk5 |
|
private |
int SMESHGUI_SewingDlg::myOk6 |
|
private |
LightApp_SelectionMgr* SMESHGUI_SewingDlg::mySelectionMgr |
|
private |
SVTK_Selector* SMESHGUI_SewingDlg::mySelector |
|
private |
SMESHGUI* SMESHGUI_SewingDlg::mySMESHGUI |
|
private |
Referenced by ActivateThisDialog(), ClickOnApply(), ClickOnHelp(), ConstructorsClicked(), DeactivateActiveDialog(), enterEvent(), onOpenView(), onTextChange(), reject(), SetEditCurrentArgument(), and SMESHGUI_SewingDlg().
unsigned int SMESHGUI_SewingDlg::myStoredEntityMode |
|
private |
int SMESHGUI_SewingDlg::myStoredRepresentation |
|
private |
QRadioButton* SMESHGUI_SewingDlg::RadioButton1 |
|
private |
QRadioButton* SMESHGUI_SewingDlg::RadioButton2 |
|
private |
QRadioButton* SMESHGUI_SewingDlg::RadioButton3 |
|
private |
QRadioButton* SMESHGUI_SewingDlg::RadioButton4 |
|
private |
QPushButton* SMESHGUI_SewingDlg::RemoveElemButton |
|
private |
QPushButton* SMESHGUI_SewingDlg::RemoveGroupButton |
|
private |
QCheckBox* SMESHGUI_SewingDlg::SelectAllCheck |
|
private |
QPushButton* SMESHGUI_SewingDlg::SelectButton1 |
|
private |
QPushButton* SMESHGUI_SewingDlg::SelectButton2 |
|
private |
QPushButton* SMESHGUI_SewingDlg::SelectButton3 |
|
private |
QPushButton* SMESHGUI_SewingDlg::SelectButton4 |
|
private |
QPushButton* SMESHGUI_SewingDlg::SelectButton5 |
|
private |
QPushButton* SMESHGUI_SewingDlg::SelectButton6 |
|
private |
QPushButton* SMESHGUI_SewingDlg::SetFirstButton |
|
private |
QWidget* SMESHGUI_SewingDlg::SewFreeBordersWidget |
|
private |
SalomeApp_IntSpinBox* SMESHGUI_SewingDlg::StepSpin |
|
private |
QPushButton* SMESHGUI_SewingDlg::SwapBut |
|
private |
QLabel* SMESHGUI_SewingDlg::TextLabel1 |
|
private |
QLabel* SMESHGUI_SewingDlg::TextLabel2 |
|
private |
QLabel* SMESHGUI_SewingDlg::TextLabel3 |
|
private |
QLabel* SMESHGUI_SewingDlg::TextLabel4 |
|
private |
QLabel* SMESHGUI_SewingDlg::TextLabel5 |
|
private |
QLabel* SMESHGUI_SewingDlg::TextLabel6 |
|
private |