Version: 8.3.0
SMESHGUI_GroupDlg Class Reference

#include <SMESHGUI_GroupDlg.h>

Inheritance diagram for SMESHGUI_GroupDlg:

Public Slots

void onAdd ()
 
void onRemove ()
 

Public Member Functions

 SMESHGUI_GroupDlg (SMESHGUI *, SMESH::SMESH_Mesh_ptr=SMESH::SMESH_Mesh::_nil())
 
 SMESHGUI_GroupDlg (SMESHGUI *, SMESH::SMESH_GroupBase_ptr, const bool theIsConvert=false)
 
 ~SMESHGUI_GroupDlg ()
 

Static Public Member Functions

static QString GetDefaultName (const QString &)
 

Protected Slots

virtual void reject ()
 

Private Slots

void onTypeChanged (int)
 
void onGrpTypeChanged (int)
 
void onColorChanged (QColor)
 
void onOK ()
 
bool onApply ()
 
void onHelp ()
 
void onDeactivate ()
 
void onVisibilityChanged ()
 
void onListSelectionChanged ()
 
void onObjectSelectionChanged ()
 
void onSelectAll ()
 
void onSelectSubMesh (bool)
 
void onSelectGroup (bool)
 
void onSelectGeomGroup (bool)
 
void setCurrentSelection ()
 
void setFilters ()
 
void onSort ()
 
void onNameChanged (const QString &)
 
void onFilterAccepted ()
 
void onGeomPopup (QAction *)
 
void onGeomSelectionButton (bool)
 
void onPublishShapeByMeshDlg (SUIT_Operation *)
 SLOT. More...
 
void onCloseShapeByMeshDlg (SUIT_Operation *)
 SLOT. More...
 
void onOpenView ()
 
void onCloseView ()
 

Private Member Functions

void initDialog (bool)
 
void init (SMESH::SMESH_Mesh_ptr)
 
void init (SMESH::SMESH_GroupBase_ptr, const bool theIsConvert=false)
 
void enterEvent (QEvent *)
 
void keyPressEvent (QKeyEvent *)
 
void setSelectionMode (int)
 
void updateButtons ()
 
void updateGeomPopup ()
 
bool SetAppropriateActor ()
 
void setShowEntityMode ()
 
void restoreShowEntityMode ()
 
bool IsActorVisible (SMESH_Actor *)
 
void setGroupColor (const SALOMEDS::Color &)
 
SALOMEDS::Color getGroupColor () const
 
void setGroupQColor (const QColor &)
 
QColor getGroupQColor () const
 
void setDefaultName () const
 
void setDefaultGroupColor ()
 
void setIsApplyAndClose (const bool theFlag)
 
bool isApplyAndClose () const
 

Private Attributes

SMESHGUImySMESHGUI
 
LightApp_SelectionMgr * mySelectionMgr
 
int myGrpTypeId
 
int myTypeId
 
int myStoredShownEntity
 
QLineEdit * myCurrentLineEdit
 
SVTK_Selector * mySelector
 
QPushButton * myMeshGroupBtn
 
QLineEdit * myMeshGroupLine
 
QButtonGroup * myTypeGroup
 
QLineEdit * myName
 
QString myOldName
 
QButtonGroup * myGrpTypeGroup
 
QStackedWidget * myWGStack
 
QCheckBox * mySelectAll
 
QCheckBox * myAllowElemsModif
 
QLabel * myElementsLab
 
QListWidget * myElements
 
QPushButton * myFilterBtn
 
QPushButton * myAddBtn
 
QPushButton * myRemoveBtn
 
QPushButton * mySortBtn
 
QGroupBoxmySelectBox
 
QCheckBox * mySelectSubMesh
 
QPushButton * mySubMeshBtn
 
QLineEdit * mySubMeshLine
 
QCheckBox * mySelectGroup
 
QPushButton * myGroupBtn
 
QLineEdit * myGroupLine
 
QtxColorButton * myColorBtn
 
QCheckBox * mySelectGeomGroup
 
QToolButton * myGeomGroupBtn
 
QLineEdit * myGeomGroupLine
 
QMenu * myGeomPopup
 
QPushButton * myOKBtn
 
QPushButton * myApplyBtn
 
QPushButton * myCloseBtn
 
QPushButton * myHelpBtn
 
SMESHGUI_ShapeByMeshOpmyShapeByMeshOp
 
SMESH::SMESH_Mesh_var myMesh
 
QList< SMESH_Actor * > myActorsList
 
SMESH::SMESH_Group_var myGroup
 
SMESH::SMESH_GroupOnGeom_var myGroupOnGeom
 
SMESH::SMESH_GroupOnFilter_var myGroupOnFilter
 
SMESH::Filter_var myFilter
 
QList< intmyIdList
 
GEOM::ListOfGO_var myGeomObjects
 
int mySelectionMode
 
SUIT_SelectionFiltermyMeshFilter
 
SMESH_LogicalFiltermySubMeshFilter
 
SMESH_LogicalFiltermyGroupFilter
 
SUIT_SelectionFiltermyGeomFilter
 
SMESHGUI_FilterDlgmyFilterDlg
 
bool myCreate
 
bool myIsBusy
 
QString myHelpFileName
 
QMap< QAction *, intmyActions
 
bool myNameChanged
 
int myNbChangesOfContents
 
QString myObjectToSelect
 
bool myIsApplyAndClose
 

Constructor & Destructor Documentation

SMESHGUI_GroupDlg::SMESHGUI_GroupDlg ( SMESHGUI theModule,
SMESH::SMESH_Mesh_ptr  theMesh = SMESH::SMESH_Mesh::_nil() 
)
SMESHGUI_GroupDlg::SMESHGUI_GroupDlg ( SMESHGUI theModule,
SMESH::SMESH_GroupBase_ptr  theGroup,
const bool  theIsConvert = false 
)
SMESHGUI_GroupDlg::~SMESHGUI_GroupDlg ( )

Member Function Documentation

QString SMESHGUI_GroupDlg::GetDefaultName ( const QString &  theOperation)
static

References _PTR(), and SObject().

SALOMEDS::Color SMESHGUI_GroupDlg::getGroupColor ( ) const
private

References getGroupQColor().

Referenced by onApply().

QColor SMESHGUI_GroupDlg::getGroupQColor ( ) const
private

References myColorBtn.

Referenced by getGroupColor().

bool SMESHGUI_GroupDlg::IsActorVisible ( SMESH_Actor theActor)
private
bool SMESHGUI_GroupDlg::isApplyAndClose ( ) const
private

References myIsApplyAndClose.

Referenced by onApply(), and reject().

void SMESHGUI_GroupDlg::keyPressEvent ( QKeyEvent *  e)
private

References onHelp().

void SMESHGUI_GroupDlg::onCloseShapeByMeshDlg ( SUIT_Operation *  op)
privateslot

SLOT.

Is called when Close is pressed in SMESHGUI_ShapeByMeshDlg

References grpGeomSelection, myShapeByMeshOp, and setSelectionMode().

Referenced by onGeomPopup().

void SMESHGUI_GroupDlg::onCloseView ( )
privateslot

References mySelector, and onDeactivate().

Referenced by initDialog().

void SMESHGUI_GroupDlg::onColorChanged ( QColor  theColor)
privateslot

References updateButtons().

Referenced by initDialog().

void SMESHGUI_GroupDlg::onDeactivate ( )
privateslot

References mySMESHGUI, and SMESHGUI::ResetState().

Referenced by initDialog(), and onCloseView().

void SMESHGUI_GroupDlg::onGeomSelectionButton ( bool  isBtnOn)
privateslot
void SMESHGUI_GroupDlg::onGrpTypeChanged ( int  id)
privateslot
void SMESHGUI_GroupDlg::onHelp ( )
privateslot

References myHelpFileName, and mySMESHGUI.

Referenced by initDialog(), and keyPressEvent().

void SMESHGUI_GroupDlg::onListSelectionChanged ( )
privateslot
void SMESHGUI_GroupDlg::onNameChanged ( const QString &  text)
privateslot

References myName, myNameChanged, myOldName, and updateButtons().

Referenced by initDialog().

void SMESHGUI_GroupDlg::onOK ( )
privateslot
void SMESHGUI_GroupDlg::onOpenView ( )
privateslot
void SMESHGUI_GroupDlg::onPublishShapeByMeshDlg ( SUIT_Operation *  op)
privateslot
void SMESHGUI_GroupDlg::onSelectGroup ( bool  on)
privateslot
void SMESHGUI_GroupDlg::onSelectSubMesh ( bool  on)
privateslot
void SMESHGUI_GroupDlg::onSort ( )
privateslot

References myElements, and myIsBusy.

Referenced by initDialog().

void SMESHGUI_GroupDlg::onTypeChanged ( int  id)
privateslot
void SMESHGUI_GroupDlg::onVisibilityChanged ( )
privateslot

References SetAppropriateActor().

Referenced by initDialog().

void SMESHGUI_GroupDlg::restoreShowEntityMode ( )
private
void SMESHGUI_GroupDlg::setDefaultGroupColor ( )
private
void SMESHGUI_GroupDlg::setDefaultName ( ) const
private

References _PTR(), myName, and SObject().

Referenced by init(), onApply(), and onObjectSelectionChanged().

void SMESHGUI_GroupDlg::setGroupColor ( const SALOMEDS::Color &  theColor)
private

References setGroupQColor().

Referenced by init().

void SMESHGUI_GroupDlg::setGroupQColor ( const QColor &  theColor)
private

References myColorBtn.

Referenced by setDefaultGroupColor(), and setGroupColor().

void SMESHGUI_GroupDlg::setIsApplyAndClose ( const bool  theFlag)
private

References myIsApplyAndClose.

Referenced by onOK().

void SMESHGUI_GroupDlg::updateGeomPopup ( )
private

Field Documentation

QMap<QAction*, int> SMESHGUI_GroupDlg::myActions
private
QList<SMESH_Actor*> SMESHGUI_GroupDlg::myActorsList
private
QPushButton* SMESHGUI_GroupDlg::myAddBtn
private

Referenced by initDialog(), and onSelectAll().

QCheckBox* SMESHGUI_GroupDlg::myAllowElemsModif
private
QPushButton* SMESHGUI_GroupDlg::myApplyBtn
private

Referenced by initDialog(), and updateButtons().

QPushButton* SMESHGUI_GroupDlg::myCloseBtn
private

Referenced by initDialog().

QtxColorButton* SMESHGUI_GroupDlg::myColorBtn
private
bool SMESHGUI_GroupDlg::myCreate
private
QLabel* SMESHGUI_GroupDlg::myElementsLab
private

Referenced by initDialog(), and onSelectAll().

SMESH::Filter_var SMESHGUI_GroupDlg::myFilter
private
QPushButton* SMESHGUI_GroupDlg::myFilterBtn
private

Referenced by initDialog(), onSelectAll(), and setFilters().

SUIT_SelectionFilter* SMESHGUI_GroupDlg::myGeomFilter
private
QToolButton* SMESHGUI_GroupDlg::myGeomGroupBtn
private
QLineEdit* SMESHGUI_GroupDlg::myGeomGroupLine
private
GEOM::ListOfGO_var SMESHGUI_GroupDlg::myGeomObjects
private
QMenu* SMESHGUI_GroupDlg::myGeomPopup
private
SMESH::SMESH_Group_var SMESHGUI_GroupDlg::myGroup
private
QPushButton* SMESHGUI_GroupDlg::myGroupBtn
private
SMESH_LogicalFilter* SMESHGUI_GroupDlg::myGroupFilter
private
QLineEdit* SMESHGUI_GroupDlg::myGroupLine
private
SMESH::SMESH_GroupOnFilter_var SMESHGUI_GroupDlg::myGroupOnFilter
private
SMESH::SMESH_GroupOnGeom_var SMESHGUI_GroupDlg::myGroupOnGeom
private
QButtonGroup* SMESHGUI_GroupDlg::myGrpTypeGroup
private
QPushButton* SMESHGUI_GroupDlg::myHelpBtn
private

Referenced by initDialog().

QString SMESHGUI_GroupDlg::myHelpFileName
private

Referenced by initDialog(), and onHelp().

QList<int> SMESHGUI_GroupDlg::myIdList
private

Referenced by init(), and onApply().

bool SMESHGUI_GroupDlg::myIsApplyAndClose
private
bool SMESHGUI_GroupDlg::myIsBusy
private
SUIT_SelectionFilter* SMESHGUI_GroupDlg::myMeshFilter
private
QPushButton* SMESHGUI_GroupDlg::myMeshGroupBtn
private

Referenced by initDialog(), and setCurrentSelection().

QLineEdit* SMESHGUI_GroupDlg::myMeshGroupLine
private
QLineEdit* SMESHGUI_GroupDlg::myName
private
bool SMESHGUI_GroupDlg::myNameChanged
private
int SMESHGUI_GroupDlg::myNbChangesOfContents
private

Referenced by onAdd(), onApply(), and onRemove().

QString SMESHGUI_GroupDlg::myObjectToSelect
private

Referenced by onApply(), and reject().

QPushButton* SMESHGUI_GroupDlg::myOKBtn
private

Referenced by initDialog(), and updateButtons().

QString SMESHGUI_GroupDlg::myOldName
private
QPushButton* SMESHGUI_GroupDlg::myRemoveBtn
private

Referenced by initDialog(), and onSelectAll().

QCheckBox* SMESHGUI_GroupDlg::mySelectAll
private
QGroupBox* SMESHGUI_GroupDlg::mySelectBox
private

Referenced by enterEvent(), initDialog(), and onSelectAll().

QCheckBox* SMESHGUI_GroupDlg::mySelectGeomGroup
private
QCheckBox* SMESHGUI_GroupDlg::mySelectGroup
private
int SMESHGUI_GroupDlg::mySelectionMode
private
SVTK_Selector* SMESHGUI_GroupDlg::mySelector
private
QCheckBox* SMESHGUI_GroupDlg::mySelectSubMesh
private
SMESHGUI_ShapeByMeshOp* SMESHGUI_GroupDlg::myShapeByMeshOp
private
QPushButton* SMESHGUI_GroupDlg::mySortBtn
private

Referenced by initDialog(), and onSelectAll().

int SMESHGUI_GroupDlg::myStoredShownEntity
private
QPushButton* SMESHGUI_GroupDlg::mySubMeshBtn
private
SMESH_LogicalFilter* SMESHGUI_GroupDlg::mySubMeshFilter
private
QLineEdit* SMESHGUI_GroupDlg::mySubMeshLine
private
QButtonGroup* SMESHGUI_GroupDlg::myTypeGroup
private

Referenced by init(), and initDialog().

QStackedWidget* SMESHGUI_GroupDlg::myWGStack
private

Referenced by initDialog(), and onGrpTypeChanged().