Class : SMESHGUI_CreatePatternDlg Description : Dialog to specify filters for VTK viewer. More...
#include <SMESHGUI_CreatePatternDlg.h>
Public Types | |
enum | { Type_2d, Type_3d } |
Signals | |
void | NewPattern () |
void | Close () |
Public Member Functions | |
SMESHGUI_CreatePatternDlg (SMESHGUI *, const int) | |
Class : SMESHGUI_CreatePatternDlg Description : Dialog to specify filters for VTK viewer. More... | |
virtual | ~SMESHGUI_CreatePatternDlg () |
void | Init (const int) |
QString | GetPatternName () const |
SMESH::SMESH_Pattern_ptr | GetPattern () |
void | SetMesh (SMESH::SMESH_Mesh_ptr) |
Private Slots | |
void | onOk () |
void | onSave () |
void | reject () |
void | onHelp () |
void | onDeactivate () |
void | onSelectionDone () |
void | onTypeChanged (int) |
void | onProject (bool) |
void | onSelBtnClicked () |
Private Member Functions | |
void | enterEvent (QEvent *) |
void | keyPressEvent (QKeyEvent *) |
QWidget * | createButtonFrame (QWidget *) |
QWidget * | createMainFrame (QWidget *) |
void | displayPreview () |
void | erasePreview () |
void | activateSelection () |
QString | autoExtension (const QString &) const |
bool | isValid () |
bool | loadFromObject (const bool=true) |
QString | getDefaultName () const |
GEOM::GEOM_Object_ptr | getGeom (SALOMEDSClient_SObject *) const |
Private Attributes | |
QButtonGroup * | myTypeGrp |
QRadioButton * | mySwitch2d |
QRadioButton * | mySwitch3d |
QLineEdit * | myMeshEdit |
QLineEdit * | myName |
SMESHGUI_PatternWidget * | myPicture2d |
QCheckBox * | myProjectChk |
SMESHGUI * | mySMESHGUI |
LightApp_SelectionMgr * | mySelectionMgr |
int | myType |
SMESH::SMESH_Mesh_var | myMesh |
SMESH::SMESH_subMesh_var | mySubMesh |
GEOM::GEOM_Object_var | myGeomObj |
SMESH::SMESH_Pattern_var | myPattern |
bool | myIsLoaded |
QString | myHelpFileName |
Class : SMESHGUI_CreatePatternDlg Description : Dialog to specify filters for VTK viewer.
Class : SMESHGUI_CreatePatternDlg Description : Dialog to specify filters for VTK viewer.
References createButtonFrame(), createMainFrame(), Init(), MARGIN, myHelpFileName, and SPACING.
|
virtual |
|
private |
References SMESH::GetViewWindow(), mySelectionMgr, mySMESHGUI, myType, and Type_2d.
Referenced by enterEvent(), and Init().
|
private |
Referenced by onSave().
|
signal |
Referenced by reject().
References SMESH::GetResourceMgr(), MARGIN, myMeshEdit, myName, myPicture2d, myProjectChk, mySMESHGUI, mySwitch2d, mySwitch3d, myTypeGrp, onProject(), onSelBtnClicked(), onTypeChanged(), SPACING, Type_2d, and Type_3d.
Referenced by SMESHGUI_CreatePatternDlg().
|
private |
References erasePreview(), myIsLoaded, myPattern, myPicture2d, and SMESHGUI_PatternWidget::SetPoints().
Referenced by onProject(), onSelectionDone(), and SetMesh().
|
private |
|
private |
References myPicture2d, and SMESHGUI_PatternWidget::SetPoints().
Referenced by displayPreview(), Init(), and onSelectionDone().
|
private |
|
private |
SMESH::SMESH_Pattern_ptr SMESHGUI_CreatePatternDlg::GetPattern | ( | ) |
References myPattern.
Referenced by SMESHGUI_MeshPatternDlg::onOkCreationDlg().
QString SMESHGUI_CreatePatternDlg::GetPatternName | ( | ) | const |
References myName.
Referenced by SMESHGUI_MeshPatternDlg::onOkCreationDlg().
void SMESHGUI_CreatePatternDlg::Init | ( | const int | theType | ) |
References activateSelection(), erasePreview(), getDefaultName(), myGeomObj, myIsLoaded, myMesh, myMeshEdit, myName, myPattern, mySelectionMgr, mySMESHGUI, mySubMesh, mySwitch2d, mySwitch3d, myType, myTypeGrp, onDeactivate(), onSelectionDone(), onTypeChanged(), reject(), SMESHGUI::SetActiveDialogBox(), Type_2d, and Type_3d.
Referenced by SMESHGUI_MeshPatternDlg::onNew(), and SMESHGUI_CreatePatternDlg().
|
private |
|
private |
References onHelp().
References SMESH::SMESH_Pattern::ERR_LOAD_EMPTY_SUBMESH, SMESH::SMESH_Pattern::ERR_LOADF_CANT_PROJECT, SMESH::SMESH_Pattern::ERR_LOADF_CLOSED_FACE, SMESH::SMESH_Pattern::ERR_LOADF_NARROW_FACE, SMESH::SMESH_Pattern::ERR_LOADV_BAD_SHAPE, SMESH::SMESH_Pattern::ERR_LOADV_COMPUTE_PARAMS, SMESH::GetPattern(), myGeomObj, myIsLoaded, myMesh, myPattern, myProjectChk, mySubMesh, myType, and Type_2d.
Referenced by onOk(), onProject(), onSave(), onSelectionDone(), and SetMesh().
|
privateslot |
References mySelectionMgr.
Referenced by Init().
|
privateslot |
References myHelpFileName, and mySMESHGUI.
Referenced by createButtonFrame(), and keyPressEvent().
|
privateslot |
References SMESH::GetViewWindow(), isValid(), loadFromObject(), myIsLoaded, mySelectionMgr, mySMESHGUI, NewPattern(), and SMESHGUI::ResetState().
Referenced by createButtonFrame().
|
privateslot |
References displayPreview(), and loadFromObject().
Referenced by createMainFrame().
|
privateslot |
References autoExtension(), SMESH::GetViewWindow(), isValid(), loadFromObject(), myIsLoaded, myName, myPattern, mySelectionMgr, mySMESHGUI, NewPattern(), and SMESHGUI::ResetState().
Referenced by createButtonFrame().
|
privateslot |
References onSelectionDone().
Referenced by createMainFrame().
|
privateslot |
References _PTR(), displayPreview(), erasePreview(), SMESH::GetGeom(), SMESH::GetNameOfSelectedIObjects(), Handle(), loadFromObject(), myGeomObj, myMesh, myMeshEdit, mySelectionMgr, mySubMesh, myType, SObject(), and Type_2d.
Referenced by enterEvent(), Init(), and onSelBtnClicked().
|
privateslot |
References myPicture2d, myProjectChk, myType, and Type_2d.
Referenced by createMainFrame(), and Init().
|
privateslot |
References Close(), SMESH::GetViewWindow(), mySelectionMgr, mySMESHGUI, and SMESHGUI::ResetState().
Referenced by createButtonFrame(), and Init().
void SMESHGUI_CreatePatternDlg::SetMesh | ( | SMESH::SMESH_Mesh_ptr | thePtr | ) |
References _PTR(), displayPreview(), SMESH::GetGeom(), loadFromObject(), myGeomObj, myMesh, myMeshEdit, mySelectionMgr, mySubMesh, myType, SObject(), and Type_2d.
Referenced by SMESHGUI_MeshPatternDlg::onNew().
|
private |
Referenced by Init(), isValid(), loadFromObject(), onSelectionDone(), and SetMesh().
|
private |
Referenced by onHelp(), and SMESHGUI_CreatePatternDlg().
|
private |
Referenced by displayPreview(), Init(), loadFromObject(), onOk(), and onSave().
|
private |
Referenced by Init(), loadFromObject(), onSelectionDone(), and SetMesh().
|
private |
Referenced by createMainFrame(), Init(), onSelectionDone(), and SetMesh().
|
private |
Referenced by createMainFrame(), GetPatternName(), Init(), and onSave().
|
private |
Referenced by displayPreview(), GetPattern(), Init(), loadFromObject(), and onSave().
|
private |
Referenced by createMainFrame(), displayPreview(), erasePreview(), and onTypeChanged().
|
private |
Referenced by createMainFrame(), loadFromObject(), and onTypeChanged().
|
private |
Referenced by activateSelection(), enterEvent(), Init(), onDeactivate(), onOk(), onSave(), onSelectionDone(), reject(), and SetMesh().
|
private |
Referenced by activateSelection(), createMainFrame(), enterEvent(), Init(), onHelp(), onOk(), onSave(), and reject().
|
private |
Referenced by Init(), loadFromObject(), onSelectionDone(), and SetMesh().
|
private |
Referenced by createMainFrame(), and Init().
|
private |
Referenced by createMainFrame(), and Init().
|
private |
Referenced by activateSelection(), getDefaultName(), Init(), loadFromObject(), onSelectionDone(), onTypeChanged(), and SetMesh().
|
private |
Referenced by createMainFrame(), and Init().