Version: 8.3.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
 
QLabel * TextLabel1
 
QLabel * TextLabel2
 
QLabel * TextLabel3
 
QLabel * TextLabel4
 
QLabel * TextLabel5
 
QLabel * TextLabel6
 
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 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 ( )

References myBorderDisplayers.

Member Function Documentation

void SMESHGUI_SewingDlg::ClickOnHelp ( )
privateslot

References myHelpFileName, and mySMESHGUI.

Referenced by keyPressEvent(), and SMESHGUI_SewingDlg().

void SMESHGUI_SewingDlg::ClickOnOk ( )
privateslot

References ClickOnApply(), and reject().

Referenced by 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
void SMESHGUI_SewingDlg::keyPressEvent ( QKeyEvent *  e)
private

References ClickOnHelp().

void SMESHGUI_SewingDlg::onAutoSew ( int  isAuto)
privateslot
void SMESHGUI_SewingDlg::onCloseView ( )
privateslot
void SMESHGUI_SewingDlg::onOpenView ( )
privateslot
void SMESHGUI_SewingDlg::onRemoveElemClicked ( )
privateslot
void SMESHGUI_SewingDlg::onRemoveGroupClicked ( )
privateslot
void SMESHGUI_SewingDlg::onSelectAll ( int  isOn)
privateslot

References ListCoincident.

Referenced by SMESHGUI_SewingDlg().

void SMESHGUI_SewingDlg::onSetFirstClicked ( )
privateslot
void SMESHGUI_SewingDlg::reject ( )
protectedvirtualslot
bool SMESHGUI_SewingDlg::setCurrentGroup ( )
private
bool SMESHGUI_SewingDlg::setCurrentPart ( )
private
void SMESHGUI_SewingDlg::showGroup ( QListWidgetItem *  item)
private
void SMESHGUI_SewingDlg::UpdateButtons ( )
private

Field Documentation

QCheckBox* SMESHGUI_SewingDlg::AutoSewCheck
private
QLineEdit* SMESHGUI_SewingDlg::BorderEndLine[2]
private
QPushButton* SMESHGUI_SewingDlg::buttonApply
private
QPushButton* SMESHGUI_SewingDlg::buttonCancel
private

Referenced by SMESHGUI_SewingDlg().

QPushButton* SMESHGUI_SewingDlg::buttonHelp
private

Referenced by SMESHGUI_SewingDlg().

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
QGroupBox* SMESHGUI_SewingDlg::GroupButtons
private
QWidget* SMESHGUI_SewingDlg::GroupCoincidentWidget
private

Referenced by onAutoSew(), and SMESHGUI_SewingDlg().

QButtonGroup* SMESHGUI_SewingDlg::GroupConstructors
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
QButtonGroup* SMESHGUI_SewingDlg::ModeButGrp
private
QGroupBox* SMESHGUI_SewingDlg::ModeGroup
private
QButtonGroup* SMESHGUI_SewingDlg::MoveBorderEndsButGrp
private
int SMESHGUI_SewingDlg::myCurPartIndex
private
QLineEdit* SMESHGUI_SewingDlg::myEditCurrentArgument
private
QString SMESHGUI_SewingDlg::myHelpFileName
private

Referenced by ClickOnHelp(), and SMESHGUI_SewingDlg().

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
unsigned int SMESHGUI_SewingDlg::myStoredEntityMode
private
int SMESHGUI_SewingDlg::myStoredRepresentation
private
QRadioButton* SMESHGUI_SewingDlg::RadioButton1
private

Referenced by SMESHGUI_SewingDlg().

QRadioButton* SMESHGUI_SewingDlg::RadioButton2
private

Referenced by SMESHGUI_SewingDlg().

QRadioButton* SMESHGUI_SewingDlg::RadioButton3
private

Referenced by SMESHGUI_SewingDlg().

QRadioButton* SMESHGUI_SewingDlg::RadioButton4
private

Referenced by SMESHGUI_SewingDlg().

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
SMESHGUI_SpinBox* SMESHGUI_SewingDlg::SpinBoxTolerance
private
SalomeApp_IntSpinBox* SMESHGUI_SewingDlg::StepSpin
private
QGroupBox* SMESHGUI_SewingDlg::SubGroup1
private
QGroupBox* SMESHGUI_SewingDlg::SubGroup2
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