Version: 8.3.0
SMESHGUI_CreatePatternDlg Class Reference

Class : SMESHGUI_CreatePatternDlg Description : Dialog to specify filters for VTK viewer. More...

#include <SMESHGUI_CreatePatternDlg.h>

Inheritance diagram for SMESHGUI_CreatePatternDlg:

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 *)
 
QWidgetcreateButtonFrame (QWidget *)
 
QWidgetcreateMainFrame (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_PatternWidgetmyPicture2d
 
QCheckBox * myProjectChk
 
SMESHGUImySMESHGUI
 
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
 

Detailed Description

Class : SMESHGUI_CreatePatternDlg Description : Dialog to specify filters for VTK viewer.

Member Enumeration Documentation

anonymous enum
Enumerator
Type_2d 
Type_3d 

Constructor & Destructor Documentation

SMESHGUI_CreatePatternDlg::SMESHGUI_CreatePatternDlg ( SMESHGUI theModule,
const int  theType 
)

Class : SMESHGUI_CreatePatternDlg Description : Dialog to specify filters for VTK viewer.

References createButtonFrame(), createMainFrame(), Init(), MARGIN, myHelpFileName, and SPACING.

SMESHGUI_CreatePatternDlg::~SMESHGUI_CreatePatternDlg ( )
virtual

Member Function Documentation

void SMESHGUI_CreatePatternDlg::activateSelection ( )
private
QString SMESHGUI_CreatePatternDlg::autoExtension ( const QString &  theFileName) const
private

Referenced by onSave().

void SMESHGUI_CreatePatternDlg::Close ( )
signal

Referenced by reject().

QWidget * SMESHGUI_CreatePatternDlg::createButtonFrame ( QWidget theParent)
private
void SMESHGUI_CreatePatternDlg::displayPreview ( )
private
void SMESHGUI_CreatePatternDlg::enterEvent ( QEvent *  )
private
void SMESHGUI_CreatePatternDlg::erasePreview ( )
private
QString SMESHGUI_CreatePatternDlg::getDefaultName ( ) const
private

References myType, and Type_2d.

Referenced by Init().

GEOM::GEOM_Object_ptr SMESHGUI_CreatePatternDlg::getGeom ( SALOMEDSClient_SObject *  ) const
private
SMESH::SMESH_Pattern_ptr SMESHGUI_CreatePatternDlg::GetPattern ( )
QString SMESHGUI_CreatePatternDlg::GetPatternName ( ) const
bool SMESHGUI_CreatePatternDlg::isValid ( )
private

References myGeomObj.

Referenced by onOk(), and onSave().

void SMESHGUI_CreatePatternDlg::keyPressEvent ( QKeyEvent *  e)
private

References onHelp().

void SMESHGUI_CreatePatternDlg::NewPattern ( )
signal

Referenced by onOk(), and onSave().

void SMESHGUI_CreatePatternDlg::onDeactivate ( )
privateslot

References mySelectionMgr.

Referenced by Init().

void SMESHGUI_CreatePatternDlg::onHelp ( )
privateslot

References myHelpFileName, and mySMESHGUI.

Referenced by createButtonFrame(), and keyPressEvent().

void SMESHGUI_CreatePatternDlg::onOk ( )
privateslot
void SMESHGUI_CreatePatternDlg::onProject ( bool  )
privateslot

References displayPreview(), and loadFromObject().

Referenced by createMainFrame().

void SMESHGUI_CreatePatternDlg::onSelBtnClicked ( )
privateslot

References onSelectionDone().

Referenced by createMainFrame().

void SMESHGUI_CreatePatternDlg::onTypeChanged ( int  theType)
privateslot

References myPicture2d, myProjectChk, myType, and Type_2d.

Referenced by createMainFrame(), and Init().

void SMESHGUI_CreatePatternDlg::reject ( )
privateslot
void SMESHGUI_CreatePatternDlg::SetMesh ( SMESH::SMESH_Mesh_ptr  thePtr)

Field Documentation

GEOM::GEOM_Object_var SMESHGUI_CreatePatternDlg::myGeomObj
private
QString SMESHGUI_CreatePatternDlg::myHelpFileName
private
bool SMESHGUI_CreatePatternDlg::myIsLoaded
private
SMESH::SMESH_Mesh_var SMESHGUI_CreatePatternDlg::myMesh
private
QLineEdit* SMESHGUI_CreatePatternDlg::myMeshEdit
private
QLineEdit* SMESHGUI_CreatePatternDlg::myName
private
SMESH::SMESH_Pattern_var SMESHGUI_CreatePatternDlg::myPattern
private
SMESHGUI_PatternWidget* SMESHGUI_CreatePatternDlg::myPicture2d
private
QCheckBox* SMESHGUI_CreatePatternDlg::myProjectChk
private
LightApp_SelectionMgr* SMESHGUI_CreatePatternDlg::mySelectionMgr
private
SMESHGUI* SMESHGUI_CreatePatternDlg::mySMESHGUI
private
SMESH::SMESH_subMesh_var SMESHGUI_CreatePatternDlg::mySubMesh
private
QRadioButton* SMESHGUI_CreatePatternDlg::mySwitch2d
private

Referenced by createMainFrame(), and Init().

QRadioButton* SMESHGUI_CreatePatternDlg::mySwitch3d
private

Referenced by createMainFrame(), and Init().

int SMESHGUI_CreatePatternDlg::myType
private
QButtonGroup* SMESHGUI_CreatePatternDlg::myTypeGrp
private

Referenced by createMainFrame(), and Init().