Class : SMESHGUI_FilterDlg Description : Dialog to specify filters for VTK viewer. More...
#include <SMESHGUI_FilterDlg.h>
Signals | |
void | Accepted () |
Public Member Functions | |
SMESHGUI_FilterDlg (SMESHGUI *, const QList< int > &) | |
SMESHGUI_FilterDlg (SMESHGUI *, const int) | |
virtual | ~SMESHGUI_FilterDlg () |
void | Init (const QList< int > &, const bool setInViewer=true) |
void | Init (const int, const bool setInViewer=true) |
void | SetSelection () |
void | SetMesh (SMESH::SMESH_Mesh_var) |
void | SetGroup (SMESH::SMESH_GroupOnFilter_var) |
void | SetSourceWg (QWidget *, const bool initOnApply=true) |
void | SetEnabled (bool setInViewer, bool diffSources) |
SMESH::Filter_var | GetFilter () const |
Return the current filter. More... | |
void | SetFilter (SMESH::Filter_var filter, int type) |
Sets a filter to the table. More... | |
void | UnRegisterFilters () |
call UnRegister() for myFilter's More... | |
Static Public Member Functions | |
static SMESH::Filter::Criterion | createCriterion () |
Protected Slots | |
virtual void | reject () |
Private Types | |
enum | { Mesh, Selection, Dialog, None } |
enum | { BTN_OK, BTN_Apply, BTN_Close, BTN_Help } |
Private Slots | |
void | onOk () |
bool | onApply () |
void | onHelp () |
void | onDeactivate () |
void | onSelectionDone () |
void | onCriterionChanged (const int, const int) |
void | onThresholdChanged (const int, const int) |
void | onCurrentChanged (int, int) |
void | onOpenView () |
void | onCloseView () |
Private Member Functions | |
void | construct (const QList< int > &) |
void | enterEvent (QEvent *) |
void | keyPressEvent (QKeyEvent *) |
QWidget * | createButtonFrame (QWidget *) |
QWidget * | createMainFrame (QWidget *) |
QWidget * | createSourceGroup (QWidget *) |
void | updateMainButtons () |
bool | isValid () const |
bool | createFilter (const int) |
void | insertFilterInViewer () |
void | selectInViewer (const int, const QList< int > &) |
void | filterSource (const int, QList< int > &) |
void | filterSelectionSource (const int, QList< int > &) |
void | getIdsFromWg (const QWidget *, QList< int > &) const |
void | setIdsToWg (QWidget *, const QList< int > &) |
Selection_Mode | getSelMode (const int) const |
void | updateSelection () |
SMESH_Actor * | getActor () |
void | restoreSelMode () |
Restores a selection mode if it was changed to set up some criterion. More... | |
Private Attributes | |
QWidget * | myMainFrame |
QButtonGroup * | mySourceGrp |
QCheckBox * | mySetInViewer |
QMap< int, QPushButton * > | myButtons |
SMESHGUI_FilterTable * | myTable |
QList< int > | myTypes |
SMESHGUI * | mySMESHGUI |
LightApp_SelectionMgr * | mySelectionMgr |
SVTK_Selector * | mySelector |
SMESH::SMESH_Mesh_var | myMesh |
SMESH::SMESH_GroupOnFilter_var | myGroup |
bool | myInitSourceWgOnApply |
bool | myInsertEnabled |
bool | myDiffSourcesEnabled |
QWidget * | mySourceWg |
SALOME_DataMapOfIOMapOfInteger | myIObjects |
bool | myIsSelectionChanged |
QMap< int, SMESH::Filter_var > | myFilter |
QMap< int, bool > | myInsertState |
QMap< int, int > | myApplyToState |
QString | myHelpFileName |
bool | myToRestoreSelMode |
int | mySelModeToRestore |
Class : SMESHGUI_FilterDlg Description : Dialog to specify filters for VTK viewer.
References construct(), SMESH::GetViewWindow(), mySelector, and mySMESHGUI.
References construct(), SMESH::GetViewWindow(), mySelector, and mySMESHGUI.
|
virtual |
|
signal |
Referenced by onOk().
|
private |
References createButtonFrame(), createMainFrame(), Init(), MARGIN, myHelpFileName, myMainFrame, myTypes, and SPACING.
Referenced by SMESHGUI_FilterDlg().
|
static |
References SMESH::ALL, SMESH::Filter::Criterion::BinaryOp, SMESH::Filter::Criterion::Compare, SMESH::FT_Undefined, SMESH::Filter::Criterion::Threshold, SMESH::Filter::Criterion::ThresholdID, SMESH::Filter::Criterion::ThresholdStr, SMESH::Filter::Criterion::Type, SMESH::Filter::Criterion::TypeOfElement, and SMESH::Filter::Criterion::UnaryOp.
Referenced by SMESHGUI_FilterTable::Copy(), SMESHGUI_FilterLibraryDlg::createFilter(), and createFilter().
References createSourceGroup(), SMESHGUI_FilterTable::GetTableGrp(), mySetInViewer, mySMESHGUI, myTable, myTypes, onCriterionChanged(), onCurrentChanged(), SMESHGUI_FilterTable::SetLibsEnabled(), and SPACING.
Referenced by construct().
References Dialog, MARGIN, Mesh, mySourceGrp, Selection, and SPACING.
Referenced by createMainFrame().
|
private |
References mySMESHGUI, SMESHGUI::ResetState(), and SMESHGUI::SetActiveDialogBox().
|
private |
References SMESH::FindActorByEntry(), myFilter, myIObjects, myMesh, mySelectionMgr, and SMESH::NODE.
Referenced by filterSource().
References Dialog, filterSelectionSource(), getIdsFromWg(), Mesh, myDiffSourcesEnabled, myFilter, myMesh, mySourceGrp, mySourceWg, and Selection.
Referenced by onApply().
|
private |
References SMESH::FindActorByEntry(), SMESH::FindActorByObject(), Handle(), myIObjects, and myMesh.
Referenced by onApply(), and selectInViewer().
SMESH::Filter_var SMESHGUI_FilterDlg::GetFilter | ( | ) | const |
Return the current filter.
References SMESHGUI_FilterTable::GetType(), myFilter, and myTable.
Referenced by SMESHGUI_GroupDlg::onFilterAccepted().
|
private |
Referenced by filterSource().
|
private |
References SMESH::ALL, SMESH::BALL, SMESH::EDGE, SMESH::ELEM0D, SMESH::FACE, SMESH::NODE, and SMESH::VOLUME.
Referenced by selectInViewer(), and updateSelection().
References SMESHGUI_FilterTable::AddCriterion(), SMESH::ALL, SMESH::BALL, SMESHGUI_FilterTable::Clear(), SMESH::EDGE, SMESH::ELEM0D, SMESH::FACE, SMESHGUI_FilterTable::Init(), Mesh, myApplyToState, myFilter, myGroup, myInsertState, myIObjects, myIsSelectionChanged, myMesh, mySetInViewer, mySMESHGUI, mySourceGrp, mySourceWg, myTable, myToRestoreSelMode, myTypes, SMESH::NODE, onCloseView(), onDeactivate(), onOpenView(), reject(), SMESHGUI::SetActiveDialogBox(), updateMainButtons(), updateSelection(), and SMESH::VOLUME.
Referenced by construct(), Init(), SMESHGUI_MultiEditDlg::onFilterBtn(), SMESHGUI_Add0DElemsOnAllNodesOp::onSetFilter(), SMESHGUI_SmoothingDlg::setFilters(), SMESHGUI_3TypesSelector::setFilters(), SMESHGUI_RemoveElementsDlg::setFilters(), SMESHGUI_GroupDlg::setFilters(), SMESHGUI_CopyMeshDlg::setFilters(), SMESHGUI_ScaleDlg::setFilters(), SMESHGUI_TranslationDlg::setFilters(), SMESHGUI_RotationDlg::setFilters(), and SMESHGUI_SymmetryDlg::setFilters().
|
private |
References getFilterId(), SMESH::GetSelector(), SMESHGUI_FilterTable::GetType(), Handle(), myFilter, myInsertEnabled, mySetInViewer, myTable, SMESH::RemoveFilter(), and SMESH::SetFilter().
Referenced by onApply().
|
private |
References SMESHGUI::desktop(), Face, SMESH::FACE, faceID, SMESH::FT_BelongToCylinder, SMESH::FT_BelongToGenSurface, SMESH::FT_BelongToGeom, SMESH::FT_BelongToPlane, SMESH::FT_CoplanarFaces, SMESH::FT_LyingOnGeom, SMESHGUI_FilterTable::GetCriterionType(), SMESHGUI_FilterTable::GetThreshold(), Handle(), SMESHGUI_FilterTable::IsValid(), myMesh, myTable, SMESHGUI_FilterTable::NumRows(), and SMESH::SObjectToObject().
Referenced by onApply().
|
private |
References onHelp().
|
privateslot |
References createFilter(), Dialog, filterSource(), getActor(), SMESH::GetPredicate(), SMESHGUI_FilterTable::GetType(), insertFilterInViewer(), isValid(), myApplyToState, myFilter, myInitSourceWgOnApply, myInsertState, mySetInViewer, mySourceGrp, mySourceWg, myTable, selectInViewer(), and setIdsToWg().
Referenced by createButtonFrame(), and onOk().
|
privateslot |
References mySelector.
Referenced by Init().
References updateSelection().
Referenced by createMainFrame().
References updateSelection().
Referenced by createMainFrame().
|
privateslot |
Referenced by Init().
|
privateslot |
References myHelpFileName, and mySMESHGUI.
Referenced by createButtonFrame(), and keyPressEvent().
|
privateslot |
References Accepted(), mySelectionMgr, mySMESHGUI, onApply(), SMESHGUI::ResetState(), and restoreSelMode().
Referenced by createButtonFrame().
|
privateslot |
References SMESH::GetViewWindow(), mySelector, mySMESHGUI, and SMESH::SetPointRepresentation().
Referenced by Init().
|
privateslot |
References BTN_Apply, BTN_OK, SMESHGUI_FilterTable::CurrentCell(), SMESH::FT_BelongToCylinder, SMESH::FT_BelongToGenSurface, SMESH::FT_BelongToGeom, SMESH::FT_BelongToMeshGroup, SMESH::FT_BelongToPlane, SMESH::FT_ConnectedElements, SMESH::FT_CoplanarFaces, SMESH::FT_LyingOnGeom, SMESHGUI_FilterTable::GetCriterionType(), SMESH::GetNameOfSelectedElements(), Handle(), myButtons, myGroup, myMesh, mySelector, myTable, SMESHGUI_FilterTable::SetID(), and SMESHGUI_FilterTable::SetThreshold().
Referenced by SetSelection().
|
protectedvirtualslot |
References SMESH::GetViewWindow(), myIObjects, mySelectionMgr, mySelector, mySMESHGUI, SMESHGUI::ResetState(), and restoreSelMode().
Referenced by createButtonFrame(), and Init().
|
private |
Restores a selection mode if it was changed to set up some criterion.
References SMESH::GetViewWindow(), mySelModeToRestore, mySMESHGUI, myToRestoreSelMode, and SMESH::SetPointRepresentation().
Referenced by onOk(), reject(), and updateSelection().
References SMESH::EDGE, SMESH::EdgeFilter, SMESH::FACE, SMESH::FaceFilter, getActor(), getSelMode(), SMESHGUI_FilterTable::GetType(), SMESH::GetViewWindow(), Handle(), myMesh, mySelectionMgr, mySelector, mySMESHGUI, myTable, SMESH::RemoveFilter(), SMESH::SetFilter(), SMESH::SetPointRepresentation(), SMESH::UnknownFilter, SMESH::VOLUME, and SMESH::VolumeFilter.
Referenced by onApply().
References myDiffSourcesEnabled, myInsertEnabled, mySetInViewer, and mySourceGrp.
Referenced by SMESHGUI_GroupDlg::setFilters().
void SMESHGUI_FilterDlg::SetFilter | ( | SMESH::Filter_var | filter, |
int | type | ||
) |
void SMESHGUI_FilterDlg::SetGroup | ( | SMESH::SMESH_GroupOnFilter_var | group | ) |
References myGroup.
Referenced by SMESHGUI_GroupDlg::setFilters().
Referenced by onApply().
void SMESHGUI_FilterDlg::SetMesh | ( | SMESH::SMESH_Mesh_var | theMesh | ) |
References BTN_Apply, BTN_OK, SMESHGUI_FilterTable::GetType(), myButtons, myFilter, myMesh, and myTable.
Referenced by SMESHGUI_MultiEditDlg::onFilterBtn(), SMESHGUI_GroupDlg::onObjectSelectionChanged(), SMESHGUI_Add0DElemsOnAllNodesOp::onSetFilter(), SMESHGUI_SmoothingDlg::setFilters(), SMESHGUI_3TypesSelector::setFilters(), SMESHGUI_RemoveNodesDlg::setFilters(), SMESHGUI_GroupDlg::setFilters(), SMESHGUI_RemoveElementsDlg::setFilters(), SMESHGUI_CopyMeshDlg::setFilters(), SMESHGUI_ScaleDlg::setFilters(), SMESHGUI_TranslationDlg::setFilters(), SMESHGUI_RotationDlg::setFilters(), and SMESHGUI_SymmetryDlg::setFilters().
void SMESHGUI_FilterDlg::SetSelection | ( | ) |
References myIObjects, mySelectionMgr, mySelector, onSelectionDone(), and updateSelection().
Referenced by SMESHGUI_MultiEditDlg::onFilterBtn(), SMESHGUI_Add0DElemsOnAllNodesOp::onSetFilter(), SMESHGUI_SmoothingDlg::setFilters(), SMESHGUI_3TypesSelector::setFilters(), SMESHGUI_GroupDlg::setFilters(), SMESHGUI_RemoveElementsDlg::setFilters(), SMESHGUI_RemoveNodesDlg::setFilters(), SMESHGUI_CopyMeshDlg::setFilters(), SMESHGUI_ScaleDlg::setFilters(), SMESHGUI_TranslationDlg::setFilters(), SMESHGUI_RotationDlg::setFilters(), and SMESHGUI_SymmetryDlg::setFilters().
References myInitSourceWgOnApply, and mySourceWg.
Referenced by SMESHGUI_MultiEditDlg::onFilterBtn(), SMESHGUI_Add0DElemsOnAllNodesOp::onSetFilter(), SMESHGUI_SmoothingDlg::setFilters(), SMESHGUI_3TypesSelector::setFilters(), SMESHGUI_GroupDlg::setFilters(), SMESHGUI_RemoveElementsDlg::setFilters(), SMESHGUI_RemoveNodesDlg::setFilters(), SMESHGUI_CopyMeshDlg::setFilters(), SMESHGUI_ScaleDlg::setFilters(), SMESHGUI_TranslationDlg::setFilters(), SMESHGUI_RotationDlg::setFilters(), and SMESHGUI_SymmetryDlg::setFilters().
void SMESHGUI_FilterDlg::UnRegisterFilters | ( | ) |
call UnRegister() for myFilter's
References myFilter.
Referenced by SMESHGUI_GroupDlg::onOK(), and SMESHGUI_GroupDlg::reject().
|
private |
|
private |
References SMESHGUI::activeStudy(), SMESH::ALL, SMESH::BALL, SMESHGUI_FilterTable::CurrentCell(), SMESH::EDGE, SMESH::ELEM0D, SMESH::FACE, SMESH::FT_BelongToCylinder, SMESH::FT_BelongToGenSurface, SMESH::FT_BelongToGeom, SMESH::FT_BelongToMeshGroup, SMESH::FT_BelongToPlane, SMESH::FT_ConnectedElements, SMESH::FT_LyingOnGeom, SMESHGUI_FilterTable::GetCriterionType(), getSelMode(), SMESHGUI_FilterTable::GetType(), SMESH::GetViewWindow(), SMESH::GROUP, SMESH::GROUP_0D, SMESH::GROUP_BALL, SMESH::GROUP_EDGE, SMESH::GROUP_FACE, SMESH::GROUP_NODE, SMESH::GROUP_VOLUME, SMESH::IDSOURCE, SMESH_LogicalFilter::LO_OR, myIsSelectionChanged, mySelectionMgr, mySelector, mySelModeToRestore, mySMESHGUI, myTable, myToRestoreSelMode, SMESH::NODE, restoreSelMode(), SMESH::SetPointRepresentation(), and SMESH::VOLUME.
Referenced by Init(), onCriterionChanged(), onCurrentChanged(), and SetSelection().
|
private |
Referenced by createButtonFrame(), onSelectionDone(), SetMesh(), and updateMainButtons().
|
private |
Referenced by filterSource(), and SetEnabled().
|
private |
Referenced by createFilter(), filterSelectionSource(), filterSource(), GetFilter(), Init(), insertFilterInViewer(), onApply(), SetFilter(), SetMesh(), and UnRegisterFilters().
|
private |
Referenced by Init(), onSelectionDone(), and SetGroup().
|
private |
Referenced by construct(), and onHelp().
|
private |
Referenced by onApply(), and SetSourceWg().
|
private |
Referenced by insertFilterInViewer(), and SetEnabled().
|
private |
Referenced by filterSelectionSource(), getActor(), Init(), reject(), and SetSelection().
|
private |
Referenced by Init(), and updateSelection().
|
private |
Referenced by construct().
|
private |
Referenced by filterSelectionSource(), filterSource(), getActor(), Init(), isValid(), onSelectionDone(), selectInViewer(), and SetMesh().
|
private |
Referenced by filterSelectionSource(), onOk(), reject(), selectInViewer(), SetSelection(), and updateSelection().
|
private |
Referenced by onCloseView(), onOpenView(), onSelectionDone(), reject(), selectInViewer(), SetSelection(), SMESHGUI_FilterDlg(), and updateSelection().
|
private |
Referenced by restoreSelMode(), and updateSelection().
|
private |
Referenced by createMainFrame(), Init(), insertFilterInViewer(), onApply(), and SetEnabled().
|
private |
Referenced by createFilter(), createMainFrame(), enterEvent(), Init(), onHelp(), onOk(), onOpenView(), reject(), restoreSelMode(), selectInViewer(), SMESHGUI_FilterDlg(), and updateSelection().
|
private |
Referenced by createSourceGroup(), filterSource(), Init(), onApply(), and SetEnabled().
|
private |
Referenced by filterSource(), Init(), onApply(), and SetSourceWg().
|
private |
|
private |
Referenced by Init(), restoreSelMode(), and updateSelection().
|
private |
Referenced by construct(), createMainFrame(), Init(), and updateMainButtons().