Version: 9.16.0
SMESHGUI_SewingDlg Class Reference

#include <SMESHGUI_SewingDlg.h>

Inheritance diagram for SMESHGUI_SewingDlg:

Data Structures

struct  BorderGroupDisplayer
 Dispalayer of free borders. More...
 

Public Member Functions

 SMESHGUI_SewingDlg (SMESHGUI *)
 
 ~SMESHGUI_SewingDlg ()
 

Protected Slots

virtual void reject ()
 

Private Slots

void ConstructorsClicked (int)
 
void onModeChange (int)
 
void onAutoSew (int)
 
void onDetectClicked ()
 
void onRemoveGroupClicked ()
 
void onSelectGroup ()
 
void onSelectAll (int)
 
void onSelectBorderPartFromGroup ()
 
void onSetFirstClicked ()
 
void onRemoveElemClicked ()
 
void onMoveBorderEnd (int)
 
void onSwapClicked ()
 
void ClickOnOk ()
 
bool ClickOnApply ()
 
void ClickOnHelp ()
 
void SetEditCurrentArgument ()
 
void SelectionIntoArgument (bool=true)
 
void DeactivateActiveDialog ()
 
void ActivateThisDialog ()
 
void onTextChange (const QString &)
 
void onOpenView ()
 
void onCloseView ()
 

Private Member Functions

void Init ()
 
void enterEvent (QEvent *)
 
void keyPressEvent (QKeyEvent *)
 
int GetConstructorId ()
 
bool IsValid ()
 
void UpdateButtons ()
 
bool haveBorders ()
 
QString getGroupText (int groupIndex)
 
QString getPartText (const SMESH::FreeBorderPart &part)
 
void showGroup (QListWidgetItem *item)
 
bool setCurrentGroup ()
 
bool setCurrentPart ()
 
void onGroupChange (bool partChange=false)
 
void setDisplayMode ()
 
void restoreDisplayMode ()
 

Private Attributes

SMESHGUImySMESHGUI
 
LightApp_SelectionMgr * mySelectionMgr
 
int myOk1
 
int myOk2
 
int myOk3
 
int myOk4
 
int myOk5
 
int myOk6
 
QLineEdit * myEditCurrentArgument
 
SVTK_Selector * mySelector
 
bool myBusy
 
SMESH::SMESH_Mesh_var myMesh
 
SMESH_ActormyActor
 
QGroupBoxConstructorsBox
 
QButtonGroup * GroupConstructors
 
QRadioButton * RadioButton1
 
QRadioButton * RadioButton2
 
QRadioButton * RadioButton3
 
QRadioButton * RadioButton4
 
QGroupBoxGroupButtons
 
QPushButton * buttonOk
 
QPushButton * buttonCancel
 
QPushButton * buttonApply
 
QPushButton * buttonHelp
 
QGroupBoxGroupArguments
 
QGroupBoxSubGroup1
 
QGroupBoxSubGroup2
 
QLabelTextLabel1
 
QLabelTextLabel2
 
QLabelTextLabel3
 
QLabelTextLabel4
 
QLabelTextLabel5
 
QLabelTextLabel6
 
QPushButton * SelectButton1
 
QPushButton * SelectButton2
 
QPushButton * SelectButton3
 
QPushButton * SelectButton4
 
QPushButton * SelectButton5
 
QPushButton * SelectButton6
 
QLineEdit * LineEdit1
 
QLineEdit * LineEdit2
 
QLineEdit * LineEdit3
 
QLineEdit * LineEdit4
 
QLineEdit * LineEdit5
 
QLineEdit * LineEdit6
 
QCheckBox * CheckBoxMerge
 
QCheckBox * CheckBoxPolygons
 
QCheckBox * CheckBoxPolyedrs
 
QWidgetSewFreeBordersWidget
 
QGroupBoxModeGroup
 
QButtonGroup * ModeButGrp
 
QLineEdit * LineEditMesh
 
SMESHGUI_SpinBoxSpinBoxTolerance
 
QCheckBox * AutoSewCheck
 
QWidgetGroupCoincidentWidget
 
QListWidget * ListCoincident
 
QPushButton * DetectButton
 
QPushButton * RemoveGroupButton
 
QCheckBox * SelectAllCheck
 
QListWidget * ListEdit
 
QButtonGroup * MoveBorderEndsButGrp
 
QLineEdit * BorderEndLine [2]
 
QPushButton * SwapBut
 
QPushButton * SetFirstButton
 
QPushButton * RemoveElemButton
 
SalomeApp_IntSpinBox * StepSpin
 
QString myHelpFileName
 
std::vector< BorderGroupDisplayer * > myBorderDisplayers
 
SMESH::CoincidentFreeBorders_var myBorders
 
int myCurGroupIndex
 
int myCurPartIndex
 
int myStoredRepresentation
 
unsigned int myStoredEntityMode
 

Constructor & Destructor Documentation

◆ SMESHGUI_SewingDlg()

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::~SMESHGUI_SewingDlg ( )

References myBorderDisplayers.

Member Function Documentation

◆ ActivateThisDialog

◆ ClickOnApply

◆ ClickOnHelp

void SMESHGUI_SewingDlg::ClickOnHelp ( )
privateslot

References myHelpFileName, and mySMESHGUI.

Referenced by keyPressEvent(), and SMESHGUI_SewingDlg().

◆ ClickOnOk

void SMESHGUI_SewingDlg::ClickOnOk ( )
privateslot

References ClickOnApply(), and reject().

Referenced by SMESHGUI_SewingDlg().

◆ ConstructorsClicked

◆ DeactivateActiveDialog

void SMESHGUI_SewingDlg::DeactivateActiveDialog ( )
privateslot

◆ enterEvent()

void SMESHGUI_SewingDlg::enterEvent ( QEvent *  )
private

◆ GetConstructorId()

int SMESHGUI_SewingDlg::GetConstructorId ( )
private

◆ getGroupText()

QString SMESHGUI_SewingDlg::getGroupText ( int  groupIndex)
private

◆ getPartText()

◆ haveBorders()

bool SMESHGUI_SewingDlg::haveBorders ( )
private

◆ Init()

void SMESHGUI_SewingDlg::Init ( )
private

◆ IsValid()

bool SMESHGUI_SewingDlg::IsValid ( )
private

◆ keyPressEvent()

void SMESHGUI_SewingDlg::keyPressEvent ( QKeyEvent *  e)
private

References ClickOnHelp().

◆ onAutoSew

void SMESHGUI_SewingDlg::onAutoSew ( int  isAuto)
privateslot

◆ onCloseView

void SMESHGUI_SewingDlg::onCloseView ( )
privateslot

◆ onDetectClicked

◆ onGroupChange()

◆ onModeChange

◆ onMoveBorderEnd

◆ onOpenView

void SMESHGUI_SewingDlg::onOpenView ( )
privateslot

◆ onRemoveElemClicked

void SMESHGUI_SewingDlg::onRemoveElemClicked ( )
privateslot

◆ onRemoveGroupClicked

void SMESHGUI_SewingDlg::onRemoveGroupClicked ( )
privateslot

◆ onSelectAll

void SMESHGUI_SewingDlg::onSelectAll ( int  isOn)
privateslot

References ListCoincident.

Referenced by SMESHGUI_SewingDlg().

◆ onSelectBorderPartFromGroup

◆ onSelectGroup

◆ onSetFirstClicked

void SMESHGUI_SewingDlg::onSetFirstClicked ( )
privateslot

◆ onSwapClicked

◆ onTextChange

◆ reject

void SMESHGUI_SewingDlg::reject ( )
protectedvirtualslot

◆ restoreDisplayMode()

◆ SelectionIntoArgument

◆ setCurrentGroup()

bool SMESHGUI_SewingDlg::setCurrentGroup ( )
private

◆ setCurrentPart()

bool SMESHGUI_SewingDlg::setCurrentPart ( )
private

◆ setDisplayMode()

◆ SetEditCurrentArgument

◆ showGroup()

void SMESHGUI_SewingDlg::showGroup ( QListWidgetItem *  item)
private

◆ UpdateButtons()

void SMESHGUI_SewingDlg::UpdateButtons ( )
private

Field Documentation

◆ AutoSewCheck

QCheckBox* SMESHGUI_SewingDlg::AutoSewCheck
private

◆ BorderEndLine

QLineEdit* SMESHGUI_SewingDlg::BorderEndLine[2]
private

◆ buttonApply

QPushButton* SMESHGUI_SewingDlg::buttonApply
private

◆ buttonCancel

QPushButton* SMESHGUI_SewingDlg::buttonCancel
private

Referenced by SMESHGUI_SewingDlg().

◆ buttonHelp

QPushButton* SMESHGUI_SewingDlg::buttonHelp
private

Referenced by SMESHGUI_SewingDlg().

◆ buttonOk

QPushButton* SMESHGUI_SewingDlg::buttonOk
private

◆ CheckBoxMerge

QCheckBox* SMESHGUI_SewingDlg::CheckBoxMerge
private

◆ CheckBoxPolyedrs

QCheckBox* SMESHGUI_SewingDlg::CheckBoxPolyedrs
private

◆ CheckBoxPolygons

QCheckBox* SMESHGUI_SewingDlg::CheckBoxPolygons
private

◆ ConstructorsBox

QGroupBox* SMESHGUI_SewingDlg::ConstructorsBox
private

◆ DetectButton

QPushButton* SMESHGUI_SewingDlg::DetectButton
private

◆ GroupArguments

QGroupBox* SMESHGUI_SewingDlg::GroupArguments
private

◆ GroupButtons

QGroupBox* SMESHGUI_SewingDlg::GroupButtons
private

◆ GroupCoincidentWidget

QWidget* SMESHGUI_SewingDlg::GroupCoincidentWidget
private

Referenced by onAutoSew(), and SMESHGUI_SewingDlg().

◆ GroupConstructors

QButtonGroup* SMESHGUI_SewingDlg::GroupConstructors
private

◆ LineEdit1

◆ LineEdit2

QLineEdit* SMESHGUI_SewingDlg::LineEdit2
private

◆ LineEdit3

QLineEdit* SMESHGUI_SewingDlg::LineEdit3
private

◆ LineEdit4

QLineEdit* SMESHGUI_SewingDlg::LineEdit4
private

◆ LineEdit5

QLineEdit* SMESHGUI_SewingDlg::LineEdit5
private

◆ LineEdit6

QLineEdit* SMESHGUI_SewingDlg::LineEdit6
private

◆ LineEditMesh

QLineEdit* SMESHGUI_SewingDlg::LineEditMesh
private

◆ ListCoincident

◆ ListEdit

◆ ModeButGrp

QButtonGroup* SMESHGUI_SewingDlg::ModeButGrp
private

◆ ModeGroup

QGroupBox* SMESHGUI_SewingDlg::ModeGroup
private

◆ MoveBorderEndsButGrp

QButtonGroup* SMESHGUI_SewingDlg::MoveBorderEndsButGrp
private

◆ myActor

◆ myBorderDisplayers

◆ myBorders

◆ myBusy

◆ myCurGroupIndex

◆ myCurPartIndex

int SMESHGUI_SewingDlg::myCurPartIndex
private

◆ myEditCurrentArgument

QLineEdit* SMESHGUI_SewingDlg::myEditCurrentArgument
private

◆ myHelpFileName

QString SMESHGUI_SewingDlg::myHelpFileName
private

Referenced by ClickOnHelp(), and SMESHGUI_SewingDlg().

◆ myMesh

SMESH::SMESH_Mesh_var SMESHGUI_SewingDlg::myMesh
private

◆ myOk1

int SMESHGUI_SewingDlg::myOk1
private

◆ myOk2

int SMESHGUI_SewingDlg::myOk2
private

◆ myOk3

int SMESHGUI_SewingDlg::myOk3
private

◆ myOk4

int SMESHGUI_SewingDlg::myOk4
private

◆ myOk5

int SMESHGUI_SewingDlg::myOk5
private

◆ myOk6

int SMESHGUI_SewingDlg::myOk6
private

◆ mySelectionMgr

LightApp_SelectionMgr* SMESHGUI_SewingDlg::mySelectionMgr
private

◆ mySelector

SVTK_Selector* SMESHGUI_SewingDlg::mySelector
private

◆ mySMESHGUI

◆ myStoredEntityMode

unsigned int SMESHGUI_SewingDlg::myStoredEntityMode
private

◆ myStoredRepresentation

int SMESHGUI_SewingDlg::myStoredRepresentation
private

◆ RadioButton1

QRadioButton* SMESHGUI_SewingDlg::RadioButton1
private

Referenced by SMESHGUI_SewingDlg().

◆ RadioButton2

QRadioButton* SMESHGUI_SewingDlg::RadioButton2
private

Referenced by SMESHGUI_SewingDlg().

◆ RadioButton3

QRadioButton* SMESHGUI_SewingDlg::RadioButton3
private

Referenced by SMESHGUI_SewingDlg().

◆ RadioButton4

QRadioButton* SMESHGUI_SewingDlg::RadioButton4
private

Referenced by SMESHGUI_SewingDlg().

◆ RemoveElemButton

QPushButton* SMESHGUI_SewingDlg::RemoveElemButton
private

◆ RemoveGroupButton

QPushButton* SMESHGUI_SewingDlg::RemoveGroupButton
private

◆ SelectAllCheck

QCheckBox* SMESHGUI_SewingDlg::SelectAllCheck
private

◆ SelectButton1

QPushButton* SMESHGUI_SewingDlg::SelectButton1
private

◆ SelectButton2

QPushButton* SMESHGUI_SewingDlg::SelectButton2
private

◆ SelectButton3

QPushButton* SMESHGUI_SewingDlg::SelectButton3
private

◆ SelectButton4

QPushButton* SMESHGUI_SewingDlg::SelectButton4
private

◆ SelectButton5

QPushButton* SMESHGUI_SewingDlg::SelectButton5
private

◆ SelectButton6

QPushButton* SMESHGUI_SewingDlg::SelectButton6
private

◆ SetFirstButton

QPushButton* SMESHGUI_SewingDlg::SetFirstButton
private

◆ SewFreeBordersWidget

QWidget* SMESHGUI_SewingDlg::SewFreeBordersWidget
private

◆ SpinBoxTolerance

SMESHGUI_SpinBox* SMESHGUI_SewingDlg::SpinBoxTolerance
private

◆ StepSpin

SalomeApp_IntSpinBox* SMESHGUI_SewingDlg::StepSpin
private

◆ SubGroup1

QGroupBox* SMESHGUI_SewingDlg::SubGroup1
private

◆ SubGroup2

QGroupBox* SMESHGUI_SewingDlg::SubGroup2
private

◆ SwapBut

QPushButton* SMESHGUI_SewingDlg::SwapBut
private

◆ TextLabel1

QLabel* SMESHGUI_SewingDlg::TextLabel1
private

◆ TextLabel2

QLabel* SMESHGUI_SewingDlg::TextLabel2
private

◆ TextLabel3

QLabel* SMESHGUI_SewingDlg::TextLabel3
private

◆ TextLabel4

QLabel* SMESHGUI_SewingDlg::TextLabel4
private

◆ TextLabel5

QLabel* SMESHGUI_SewingDlg::TextLabel5
private

◆ TextLabel6

QLabel* SMESHGUI_SewingDlg::TextLabel6
private