#include <SMESHGUI_MeshPatternDlg.h>
Enumerator |
---|
Type_2d |
|
Type_3d |
|
Enumerator |
---|
Mesh |
|
Object |
|
Vertex1 |
|
Vertex2 |
|
Ids |
|
SMESHGUI_MeshPatternDlg::SMESHGUI_MeshPatternDlg |
( |
SMESHGUI * |
theModule | ) |
|
Class : SMESHGUI_MeshPatternDlg Description : Dialog to specify filters for VTK viewer.
References createButtonFrame(), createMainFrame(), SMESH::GetSelector(), SMESH::GetViewWindow(), Init(), MARGIN, myHelpFileName, myMainFrame, mySelector, mySMESHGUI, and SPACING.
SMESHGUI_MeshPatternDlg::~SMESHGUI_MeshPatternDlg |
( |
| ) |
|
|
virtual |
void SMESHGUI_MeshPatternDlg::activateSelection |
( |
| ) |
|
|
private |
References SMESH::FindActorByObject(), SMESH::GetViewWindow(), Ids, myGeomObj, myMesh, myMeshShape, myNbPoints, mySelectionMgr, mySelInput, mySMESHGUI, myType, Object, SMESH::SetPickable(), Type_2d, Vertex1, and Vertex2.
Referenced by enterEvent(), Init(), onOpenView(), onSelInputChanged(), onTextChanged(), and onTypeChanged().
QString SMESHGUI_MeshPatternDlg::autoExtension |
( |
const QString & |
theFileName | ) |
const |
|
private |
QWidget * SMESHGUI_MeshPatternDlg::createButtonFrame |
( |
QWidget * |
theParent | ) |
|
|
private |
QWidget * SMESHGUI_MeshPatternDlg::createMainFrame |
( |
QWidget * |
theParent | ) |
|
|
private |
References SMESH::GetResourceMgr(), Ids, MARGIN, Mesh, myCreatePolyedrsChk, myCreatePolygonsChk, myGeomGrp, myName, myNewBtn, myNode1, myNode2, myNode2Lbl, myOpenBtn, myPicture2d, myPicture3d, myPreviewChk, myRefine, myRefineGrp, myReverseChk, mySelBtn, mySelEdit, mySelLbl, mySMESHGUI, mySwitch2d, mySwitch3d, myTypeGrp, Object, onModeToggled(), onNew(), onNodeChanged(), onOpen(), onPreview(), onReverse(), onSelInputChanged(), onTextChanged(), onTypeChanged(), SPACING, Type_2d, Type_3d, and Vertex2.
Referenced by SMESHGUI_MeshPatternDlg().
void SMESHGUI_MeshPatternDlg::displayPreview |
( |
| ) |
|
|
private |
References erasePreview(), SMESH::FindActorByObject(), SMESH::GetCurrentVtkView(), SMESH::GetFloat(), getGrid(), isValid(), myMesh, myPattern, myPicture2d, myPreviewActor, myPreviewChk, and SMESHGUI_PatternWidget::SetPoints().
Referenced by enterEvent(), onModeToggled(), onNodeChanged(), onOkCreationDlg(), onOpen(), onPreview(), onReverse(), onSelectionDone(), onTextChanged(), and onTypeChanged().
void SMESHGUI_MeshPatternDlg::enterEvent |
( |
QEvent * |
| ) |
|
|
private |
References activateSelection(), displayPreview(), SMESHGUI::EmitSignalDeactivateDialog(), SMESH::GetViewWindow(), Ids, myIsCreateDlgOpen, myReverseChk, mySelectionMgr, mySelector, mySelEdit, mySMESHGUI, onSelectionDone(), and onTextChanged().
void SMESHGUI_MeshPatternDlg::erasePreview |
( |
| ) |
|
|
private |
References getIds(), getNode(), isRefine(), myGeomObj, myMesh, myPattern, myReverseChk, myType, Object, Type_2d, Type_3d, Vertex1, and Vertex2.
Referenced by displayPreview().
bool SMESHGUI_MeshPatternDlg::getIds |
( |
QList< int > & |
ids | ) |
const |
|
private |
int SMESHGUI_MeshPatternDlg::getNode |
( |
bool |
second = false | ) |
const |
|
private |
void SMESHGUI_MeshPatternDlg::Init |
( |
| ) |
|
References activateSelection(), SMESH::GetPattern(), isRefine(), Mesh, myGeomObj, myIsCreateDlgOpen, myMesh, myMeshShape, myNbPoints, myPattern, myPreviewActor, mySelectionMgr, mySelInput, mySMESHGUI, myType, myTypeGrp, Object, onCloseView(), onDeactivate(), onModeToggled(), onOpenView(), onSelectionDone(), onTypeChanged(), reject(), SMESHGUI::SetActiveDialogBox(), Type_2d, Vertex1, and Vertex2.
Referenced by SMESHGUI_MeshPatternDlg().
bool SMESHGUI_MeshPatternDlg::isRefine |
( |
| ) |
const |
|
private |
bool SMESHGUI_MeshPatternDlg::isValid |
( |
const bool |
theMess = true | ) |
|
|
private |
References getIds(), getNode(), isRefine(), myGeomObj, myMesh, myMeshShape, myName, myNode1, myNode2, myType, Object, Type_3d, Vertex1, and Vertex2.
Referenced by displayPreview(), and onApply().
void SMESHGUI_MeshPatternDlg::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
private |
bool SMESHGUI_MeshPatternDlg::loadFromFile |
( |
const QString & |
theName | ) |
|
|
private |
References SMESH::SMESH_Pattern::ERR_READ_3D_COORD, SMESH::SMESH_Pattern::ERR_READ_BAD_INDEX, SMESH::SMESH_Pattern::ERR_READ_BAD_KEY_POINT, SMESH::SMESH_Pattern::ERR_READ_ELEM_POINTS, SMESH::SMESH_Pattern::ERR_READ_NB_POINTS, SMESH::SMESH_Pattern::ERR_READ_NO_ELEMS, SMESH::SMESH_Pattern::ERR_READ_NO_KEYPOINT, SMESH::SMESH_Pattern::ERR_READ_POINT_COORDS, SMESH::SMESH_Pattern::ERR_READ_TOO_FEW_POINTS, SMESH::GetPattern(), myPattern, myType, and Type_2d.
Referenced by onOpen().
bool SMESHGUI_MeshPatternDlg::onApply |
( |
| ) |
|
|
privateslot |
References _PTR(), SMESHGUI::automaticUpdate(), SMESH::CreateActor(), SMESH::DisplayActor(), erasePreview(), SMESH::FindActorByEntry(), SMESH::FitAll(), SMESH::GetActiveWindow(), getIds(), getNode(), Ids, isRefine(), isValid(), SMESHGUI::Modified(), myCreatePolyedrsChk, myCreatePolygonsChk, myGeomObj, myMesh, myNode1, myNode2, myPattern, myReverseChk, mySelectionMgr, mySelEdit, mySMESHGUI, myType, Object, SObject(), Type_2d, Type_3d, SMESH::UpdateView(), Vertex1, and Vertex2.
Referenced by createButtonFrame(), and onOk().
void SMESHGUI_MeshPatternDlg::onCloseCreationDlg |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MeshPatternDlg::onCloseView |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MeshPatternDlg::onDeactivate |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MeshPatternDlg::onHelp |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MeshPatternDlg::onModeToggled |
( |
bool |
on | ) |
|
|
privateslot |
void SMESHGUI_MeshPatternDlg::onNew |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MeshPatternDlg::onNodeChanged |
( |
int |
value | ) |
|
|
privateslot |
void SMESHGUI_MeshPatternDlg::onOk |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MeshPatternDlg::onOkCreationDlg |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MeshPatternDlg::onOpen |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MeshPatternDlg::onOpenView |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MeshPatternDlg::onPreview |
( |
bool |
| ) |
|
|
privateslot |
void SMESHGUI_MeshPatternDlg::onReverse |
( |
bool |
| ) |
|
|
privateslot |
void SMESHGUI_MeshPatternDlg::onSelectionDone |
( |
| ) |
|
|
privateslot |
References _PTR(), displayPreview(), SMESH::GetGeom(), SMESH::GetNameOfSelectedElements(), SMESH::GetNameOfSelectedIObjects(), Handle(), Ids, Mesh, myBusy, myGeomObj, myMesh, myMeshShape, mySelectionMgr, mySelector, mySelEdit, mySelInput, Object, resetSelInput(), SObject(), updateWgState(), Vertex1, and Vertex2.
Referenced by enterEvent(), Init(), onOpenView(), and onSelInputChanged().
void SMESHGUI_MeshPatternDlg::onSelInputChanged |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MeshPatternDlg::onTextChanged |
( |
const QString & |
theNewText | ) |
|
|
privateslot |
References activateSelection(), displayPreview(), SMESH::FindActorByObject(), SMDS_Mesh::FindElement(), SMDS_MeshElement::GetID(), SMESH_Actor::GetObject(), SMDS_MeshElement::GetType(), SMESH::GetViewWindow(), Ids, isRefine(), myBusy, myMesh, mySelector, mySelInput, mySMESHGUI, myType, SMDSAbs_Face, SMDSAbs_Volume, and Type_2d.
Referenced by createMainFrame(), and enterEvent().
void SMESHGUI_MeshPatternDlg::onTypeChanged |
( |
int |
theType | ) |
|
|
privateslot |
References activateSelection(), displayPreview(), SMESH::GetPattern(), Ids, Mesh, myCreatePolyedrsChk, myCreatePolygonsChk, myGeomObj, myMainFrame, myName, myNbPoints, myNode2, myNode2Lbl, myPattern, myPicture2d, myPicture3d, myReverseChk, mySelBtn, mySelEdit, mySelInput, mySelLbl, myType, Object, Type_2d, updateWgState(), Vertex1, and Vertex2.
Referenced by createMainFrame(), and Init().
QStringList SMESHGUI_MeshPatternDlg::prepareFilters |
( |
| ) |
const |
|
private |
void SMESHGUI_MeshPatternDlg::reject |
( |
| ) |
|
|
protectedvirtualslot |
void SMESHGUI_MeshPatternDlg::resetSelInput |
( |
| ) |
|
|
private |
void SMESHGUI_MeshPatternDlg::updateWgState |
( |
| ) |
|
|
private |
References Ids, myGeomObj, myMesh, myNode1, myNode2, myPattern, mySelBtn, mySelEdit, Object, Vertex1, and Vertex2.
Referenced by onOkCreationDlg(), onOpen(), onSelectionDone(), and onTypeChanged().
QPushButton* SMESHGUI_MeshPatternDlg::myApplyBtn |
|
private |
bool SMESHGUI_MeshPatternDlg::myBusy |
|
private |
QPushButton* SMESHGUI_MeshPatternDlg::myCloseBtn |
|
private |
QCheckBox* SMESHGUI_MeshPatternDlg::myCreatePolyedrsChk |
|
private |
QCheckBox* SMESHGUI_MeshPatternDlg::myCreatePolygonsChk |
|
private |
QFrame* SMESHGUI_MeshPatternDlg::myGeomGrp |
|
private |
QMap<int, GEOM::GEOM_Object_var> SMESHGUI_MeshPatternDlg::myGeomObj |
|
private |
QPushButton* SMESHGUI_MeshPatternDlg::myHelpBtn |
|
private |
QString SMESHGUI_MeshPatternDlg::myHelpFileName |
|
private |
bool SMESHGUI_MeshPatternDlg::myIsCreateDlgOpen |
|
private |
QWidget* SMESHGUI_MeshPatternDlg::myMainFrame |
|
private |
SMESH::SMESH_Mesh_var SMESHGUI_MeshPatternDlg::myMesh |
|
private |
Referenced by activateSelection(), displayPreview(), getGrid(), Init(), isValid(), onApply(), onNew(), onSelectionDone(), onTextChanged(), resetSelInput(), and updateWgState().
GEOM::GEOM_Object_var SMESHGUI_MeshPatternDlg::myMeshShape |
|
private |
QLineEdit* SMESHGUI_MeshPatternDlg::myName |
|
private |
int SMESHGUI_MeshPatternDlg::myNbPoints |
|
private |
QPushButton* SMESHGUI_MeshPatternDlg::myNewBtn |
|
private |
SalomeApp_IntSpinBox* SMESHGUI_MeshPatternDlg::myNode1 |
|
private |
SalomeApp_IntSpinBox* SMESHGUI_MeshPatternDlg::myNode2 |
|
private |
QLabel* SMESHGUI_MeshPatternDlg::myNode2Lbl |
|
private |
QPushButton* SMESHGUI_MeshPatternDlg::myOkBtn |
|
private |
QPushButton* SMESHGUI_MeshPatternDlg::myOpenBtn |
|
private |
SMESH::SMESH_Pattern_var SMESHGUI_MeshPatternDlg::myPattern |
|
private |
QLabel* SMESHGUI_MeshPatternDlg::myPicture3d |
|
private |
QCheckBox* SMESHGUI_MeshPatternDlg::myPreviewChk |
|
private |
QCheckBox* SMESHGUI_MeshPatternDlg::myRefine |
|
private |
QFrame* SMESHGUI_MeshPatternDlg::myRefineGrp |
|
private |
QCheckBox* SMESHGUI_MeshPatternDlg::myReverseChk |
|
private |
QMap<int, QPushButton*> SMESHGUI_MeshPatternDlg::mySelBtn |
|
private |
LightApp_SelectionMgr* SMESHGUI_MeshPatternDlg::mySelectionMgr |
|
private |
SVTK_Selector* SMESHGUI_MeshPatternDlg::mySelector |
|
private |
QMap<int, QLineEdit*> SMESHGUI_MeshPatternDlg::mySelEdit |
|
private |
int SMESHGUI_MeshPatternDlg::mySelInput |
|
private |
QMap<int, QLabel*> SMESHGUI_MeshPatternDlg::mySelLbl |
|
private |
SMESHGUI* SMESHGUI_MeshPatternDlg::mySMESHGUI |
|
private |
Referenced by activateSelection(), createMainFrame(), enterEvent(), Init(), onApply(), onHelp(), onNew(), onOpenView(), onTextChanged(), reject(), and SMESHGUI_MeshPatternDlg().
QRadioButton* SMESHGUI_MeshPatternDlg::mySwitch2d |
|
private |
QRadioButton* SMESHGUI_MeshPatternDlg::mySwitch3d |
|
private |
int SMESHGUI_MeshPatternDlg::myType |
|
private |
QButtonGroup* SMESHGUI_MeshPatternDlg::myTypeGrp |
|
private |