Version: 8.3.0
SMESHGUI_MeshPatternDlg Class Reference

#include <SMESHGUI_MeshPatternDlg.h>

Inheritance diagram for SMESHGUI_MeshPatternDlg:

Public Member Functions

 SMESHGUI_MeshPatternDlg (SMESHGUI *)
 Class : SMESHGUI_MeshPatternDlg Description : Dialog to specify filters for VTK viewer. More...
 
virtual ~SMESHGUI_MeshPatternDlg ()
 
void Init ()
 

Protected Slots

virtual void reject ()
 

Private Types

enum  { Type_2d, Type_3d }
 
enum  {
  Mesh, Object, Vertex1, Vertex2,
  Ids
}
 

Private Slots

void onOk ()
 
bool onApply ()
 
void onHelp ()
 
void onDeactivate ()
 
void onSelectionDone ()
 
void onSelInputChanged ()
 
void onTypeChanged (int)
 
void onModeToggled (bool)
 
void onOpen ()
 
void onNew ()
 
void onReverse (bool)
 
void onPreview (bool)
 
void onOkCreationDlg ()
 
void onCloseCreationDlg ()
 
void onTextChanged (const QString &)
 
void onNodeChanged (int)
 
void onOpenView ()
 
void onCloseView ()
 

Private Member Functions

QWidgetcreateButtonFrame (QWidget *)
 
QWidgetcreateMainFrame (QWidget *)
 
void displayPreview ()
 
vtkUnstructuredGridgetGrid ()
 
void erasePreview ()
 
void updateWgState ()
 
bool loadFromFile (const QString &)
 
void activateSelection ()
 
QStringList prepareFilters () const
 
QString autoExtension (const QString &) const
 
void enterEvent (QEvent *)
 
void keyPressEvent (QKeyEvent *)
 
bool isValid (const bool=true)
 
void resetSelInput ()
 
bool isRefine () const
 
bool getIds (QList< int > &) const
 
int getNode (bool=false) const
 

Private Attributes

QPushButton * myOkBtn
 
QPushButton * myApplyBtn
 
QPushButton * myCloseBtn
 
QPushButton * myHelpBtn
 
QButtonGroup * myTypeGrp
 
QRadioButton * mySwitch2d
 
QRadioButton * mySwitch3d
 
QCheckBox * myRefine
 
QFramemyRefineGrp
 
SalomeApp_IntSpinBox * myNode1
 
SalomeApp_IntSpinBox * myNode2
 
QLabel * myNode2Lbl
 
QFramemyGeomGrp
 
QMap< int, QPushButton * > mySelBtn
 
QMap< int, QLineEdit * > mySelEdit
 
QMap< int, QLabel * > mySelLbl
 
QWidgetmyMainFrame
 
QLineEdit * myName
 
QPushButton * myOpenBtn
 
QPushButton * myNewBtn
 
QCheckBox * myReverseChk
 
QCheckBox * myCreatePolygonsChk
 
QCheckBox * myCreatePolyedrsChk
 
SMESHGUI_PatternWidgetmyPicture2d
 
QLabel * myPicture3d
 
QCheckBox * myPreviewChk
 
SMESHGUImySMESHGUI
 
SVTK_Selector * mySelector
 
LightApp_SelectionMgr * mySelectionMgr
 
int mySelInput
 
int myNbPoints
 
int myType
 
bool myIsCreateDlgOpen
 
bool myBusy
 
SMESH::SMESH_Mesh_var myMesh
 
GEOM::GEOM_Object_var myMeshShape
 
QMap< int, GEOM::GEOM_Object_var > myGeomObj
 
SMESHGUI_CreatePatternDlgmyCreationDlg
 
SMESH::SMESH_Pattern_var myPattern
 
SALOME_ActormyPreviewActor
 
QString myHelpFileName
 

Member Enumeration Documentation

anonymous enum
private
Enumerator
Type_2d 
Type_3d 
anonymous enum
private
Enumerator
Mesh 
Object 
Vertex1 
Vertex2 
Ids 

Constructor & Destructor Documentation

SMESHGUI_MeshPatternDlg::SMESHGUI_MeshPatternDlg ( SMESHGUI theModule)
SMESHGUI_MeshPatternDlg::~SMESHGUI_MeshPatternDlg ( )
virtual

Member Function Documentation

QString SMESHGUI_MeshPatternDlg::autoExtension ( const QString &  theFileName) const
private

Referenced by onOpen().

QWidget * SMESHGUI_MeshPatternDlg::createButtonFrame ( QWidget theParent)
private
void SMESHGUI_MeshPatternDlg::erasePreview ( )
private
vtkUnstructuredGrid * SMESHGUI_MeshPatternDlg::getGrid ( )
private
bool SMESHGUI_MeshPatternDlg::getIds ( QList< int > &  ids) const
private

References Ids, and mySelEdit.

Referenced by getGrid(), isValid(), and onApply().

int SMESHGUI_MeshPatternDlg::getNode ( bool  second = false) const
private

References myNode1, and myNode2.

Referenced by getGrid(), isValid(), and onApply().

bool SMESHGUI_MeshPatternDlg::isRefine ( ) const
private

References myRefine.

Referenced by getGrid(), Init(), isValid(), onApply(), and onTextChanged().

bool SMESHGUI_MeshPatternDlg::isValid ( const bool  theMess = true)
private
void SMESHGUI_MeshPatternDlg::keyPressEvent ( QKeyEvent *  e)
private

References onHelp().

void SMESHGUI_MeshPatternDlg::onCloseCreationDlg ( )
privateslot

References myIsCreateDlgOpen.

Referenced by onNew().

void SMESHGUI_MeshPatternDlg::onCloseView ( )
privateslot

References mySelector, and onDeactivate().

Referenced by Init().

void SMESHGUI_MeshPatternDlg::onDeactivate ( )
privateslot

References mySelectionMgr.

Referenced by Init(), and onCloseView().

void SMESHGUI_MeshPatternDlg::onHelp ( )
privateslot

References myHelpFileName, and mySMESHGUI.

Referenced by createButtonFrame(), and keyPressEvent().

void SMESHGUI_MeshPatternDlg::onModeToggled ( bool  on)
privateslot
void SMESHGUI_MeshPatternDlg::onNodeChanged ( int  value)
privateslot

References displayPreview(), myNode1, myNode2, myType, second, and Type_3d.

Referenced by createMainFrame().

void SMESHGUI_MeshPatternDlg::onOk ( )
privateslot

References onApply(), and reject().

Referenced by createButtonFrame().

void SMESHGUI_MeshPatternDlg::onOkCreationDlg ( )
privateslot
void SMESHGUI_MeshPatternDlg::onOpen ( )
privateslot
void SMESHGUI_MeshPatternDlg::onOpenView ( )
privateslot
void SMESHGUI_MeshPatternDlg::onPreview ( bool  )
privateslot

References displayPreview().

Referenced by createMainFrame().

void SMESHGUI_MeshPatternDlg::onReverse ( bool  )
privateslot

References displayPreview().

Referenced by createMainFrame().

void SMESHGUI_MeshPatternDlg::onSelInputChanged ( )
privateslot
QStringList SMESHGUI_MeshPatternDlg::prepareFilters ( ) const
private

Referenced by onOpen().

void SMESHGUI_MeshPatternDlg::reject ( )
protectedvirtualslot
void SMESHGUI_MeshPatternDlg::resetSelInput ( )
private

References Mesh, myGeomObj, myMesh, myMeshShape, mySelEdit, and mySelInput.

Referenced by onSelectionDone().

void SMESHGUI_MeshPatternDlg::updateWgState ( )
private

Field Documentation

QPushButton* SMESHGUI_MeshPatternDlg::myApplyBtn
private

Referenced by createButtonFrame().

bool SMESHGUI_MeshPatternDlg::myBusy
private

Referenced by onSelectionDone(), and onTextChanged().

QPushButton* SMESHGUI_MeshPatternDlg::myCloseBtn
private

Referenced by createButtonFrame().

QCheckBox* SMESHGUI_MeshPatternDlg::myCreatePolyedrsChk
private
QCheckBox* SMESHGUI_MeshPatternDlg::myCreatePolygonsChk
private
SMESHGUI_CreatePatternDlg* SMESHGUI_MeshPatternDlg::myCreationDlg
private

Referenced by onNew(), and onOkCreationDlg().

QFrame* SMESHGUI_MeshPatternDlg::myGeomGrp
private

Referenced by createMainFrame(), and onModeToggled().

QMap<int, GEOM::GEOM_Object_var> SMESHGUI_MeshPatternDlg::myGeomObj
private
QPushButton* SMESHGUI_MeshPatternDlg::myHelpBtn
private

Referenced by createButtonFrame().

QString SMESHGUI_MeshPatternDlg::myHelpFileName
private

Referenced by onHelp(), and SMESHGUI_MeshPatternDlg().

bool SMESHGUI_MeshPatternDlg::myIsCreateDlgOpen
private
QWidget* SMESHGUI_MeshPatternDlg::myMainFrame
private
SMESH::SMESH_Mesh_var SMESHGUI_MeshPatternDlg::myMesh
private
GEOM::GEOM_Object_var SMESHGUI_MeshPatternDlg::myMeshShape
private
QLineEdit* SMESHGUI_MeshPatternDlg::myName
private
int SMESHGUI_MeshPatternDlg::myNbPoints
private
QPushButton* SMESHGUI_MeshPatternDlg::myNewBtn
private

Referenced by createMainFrame().

SalomeApp_IntSpinBox* SMESHGUI_MeshPatternDlg::myNode1
private
SalomeApp_IntSpinBox* SMESHGUI_MeshPatternDlg::myNode2
private
QLabel* SMESHGUI_MeshPatternDlg::myNode2Lbl
private

Referenced by createMainFrame(), and onTypeChanged().

QPushButton* SMESHGUI_MeshPatternDlg::myOkBtn
private

Referenced by createButtonFrame().

QPushButton* SMESHGUI_MeshPatternDlg::myOpenBtn
private

Referenced by createMainFrame().

SMESH::SMESH_Pattern_var SMESHGUI_MeshPatternDlg::myPattern
private
SMESHGUI_PatternWidget* SMESHGUI_MeshPatternDlg::myPicture2d
private
QLabel* SMESHGUI_MeshPatternDlg::myPicture3d
private

Referenced by createMainFrame(), and onTypeChanged().

SALOME_Actor* SMESHGUI_MeshPatternDlg::myPreviewActor
private

Referenced by displayPreview(), erasePreview(), and Init().

QCheckBox* SMESHGUI_MeshPatternDlg::myPreviewChk
private

Referenced by createMainFrame(), and displayPreview().

QCheckBox* SMESHGUI_MeshPatternDlg::myRefine
private

Referenced by createMainFrame(), and isRefine().

QFrame* SMESHGUI_MeshPatternDlg::myRefineGrp
private

Referenced by createMainFrame(), and onModeToggled().

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

Referenced by createMainFrame(), and onTypeChanged().

QRadioButton* SMESHGUI_MeshPatternDlg::mySwitch2d
private

Referenced by createMainFrame().

QRadioButton* SMESHGUI_MeshPatternDlg::mySwitch3d
private

Referenced by createMainFrame().

QButtonGroup* SMESHGUI_MeshPatternDlg::myTypeGrp
private

Referenced by createMainFrame(), and Init().