Version: 9.12.0
SMESHGUI_GenericHypothesisCreator Class Referenceabstract

Auxiliary class for creation of hypotheses. More...

#include <SMESHGUI_Hypotheses.h>

Inheritance diagram for SMESHGUI_GenericHypothesisCreator:

Data Structures

struct  StdParam
 

Signals

void finished (int)
 

Public Member Functions

 SMESHGUI_GenericHypothesisCreator (const QString &)
 
virtual ~SMESHGUI_GenericHypothesisCreator ()
 
void create (SMESH::SMESH_Hypothesis_ptr, const QString &, QWidget *, QObject *, const QString &)
 
void create (bool, const QString &, QWidget *, QObject *, const QString &)
 
void edit (SMESH::SMESH_Hypothesis_ptr, const QString &, QWidget *, QObject *, const QString &)
 
void setInitParamsHypothesis (SMESH::SMESH_Hypothesis_ptr)
 
virtual bool checkParams (QString &) const
 
virtual void onReject ()
 
virtual QString helpPage () const
 
QString hypType () const
 
QString hypName () const
 
bool isCreation () const
 
QString getShapeEntry () const
 
void setShapeEntry (const QString &theEntry)
 
QString getMainShapeEntry () const
 
void setMainShapeEntry (const QString &theEntry)
 
void setNoGeomMesh (const bool noGeom)
 
bool getNoGeomMesh () const
 

Protected Types

typedef QList< StdParamListOfStdParams
 
typedef QList< QWidget * > ListOfWidgets
 

Protected Slots

virtual void onValueChanged ()
 

Protected Member Functions

SMESH::SMESH_Hypothesis_var hypothesis () const
 
SMESH::SMESH_Hypothesis_var initParamsHypothesis (const bool strict=false) const
 Return hypothesis containing initial parameters. More...
 
bool hasInitParamsHypothesis () const
 
const ListOfWidgetswidgets () const
 
ListOfWidgetschangeWidgets ()
 
QLabelgetLabel (int i) const
 Returns a QLabel of a specified parameter. More...
 
QtxDialogdlg () const
 
QString getVariableName (const char *methodName) const
 
virtual QFramebuildFrame ()=0
 
QFramebuildStdFrame ()
 
virtual void retrieveParams () const =0
 
virtual QString storeParams () const =0
 
virtual bool stdParams (ListOfStdParams &) const
 
bool getStdParamFromDlg (ListOfStdParams &) const
 
virtual QStringList getVariablesFromDlg () const
 
virtual void attuneStdWidget (QWidget *, const int) const
 
virtual QWidgetgetCustomWidget (const StdParam &, QWidget *, const int) const
 
virtual QWidgetgetHelperWidget () const
 Returns a widget representing not a hypothesis parameter but some helper widget. More...
 
virtual bool getParamFromCustomWidget (StdParam &, QWidget *) const
 
virtual void valueChanged (QWidget *)
 
virtual QString caption () const
 
virtual QPixmap icon () const
 
virtual QString type () const
 

Static Protected Member Functions

static QString stdParamValues (const ListOfStdParams &)
 

Private Slots

virtual void onDialogFinished (int)
 

Private Member Functions

void editHypothesis (SMESH::SMESH_Hypothesis_ptr, const QString &, QWidget *, QObject *obj, const QString &)
 

Private Attributes

SMESH::SMESH_Hypothesis_var myHypo
 
SMESH::SMESH_Hypothesis_var myInitParamsHypo
 
bool myToDeleteInitParamsHypo
 
QString myHypName
 
QString myHypType
 
ListOfWidgets myParamWidgets
 
ListOfWidgets myParamLabels
 
bool myIsCreate
 
bool myNoGeomMesh
 true for a mesh not based on geometry More...
 
QtxDialogmyDlg
 
QString myShapeEntry
 
QString myMainShapeEntry
 

Detailed Description

Auxiliary class for creation of hypotheses.

Member Typedef Documentation

◆ ListOfStdParams

◆ ListOfWidgets

Constructor & Destructor Documentation

◆ SMESHGUI_GenericHypothesisCreator()

SMESHGUI_GenericHypothesisCreator::SMESHGUI_GenericHypothesisCreator ( const QString &  theHypType)

◆ ~SMESHGUI_GenericHypothesisCreator()

SMESHGUI_GenericHypothesisCreator::~SMESHGUI_GenericHypothesisCreator ( )
virtual

Member Function Documentation

◆ attuneStdWidget()

void SMESHGUI_GenericHypothesisCreator::attuneStdWidget ( QWidget ,
const int   
) const
protectedvirtual

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

Referenced by buildStdFrame().

◆ buildFrame()

virtual QFrame* SMESHGUI_GenericHypothesisCreator::buildFrame ( )
protectedpure virtual

◆ buildStdFrame()

◆ caption()

QString SMESHGUI_GenericHypothesisCreator::caption ( ) const
protectedvirtual

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

Referenced by editHypothesis().

◆ changeWidgets()

SMESHGUI_GenericHypothesisCreator::ListOfWidgets & SMESHGUI_GenericHypothesisCreator::changeWidgets ( )
protected

References myParamWidgets.

Referenced by buildStdFrame(), and onDialogFinished().

◆ checkParams()

◆ create() [1/2]

void SMESHGUI_GenericHypothesisCreator::create ( bool  isAlgo,
const QString &  theHypName,
QWidget theParent,
QObject obj,
const QString &  slot 
)

◆ create() [2/2]

void SMESHGUI_GenericHypothesisCreator::create ( SMESH::SMESH_Hypothesis_ptr  initParamsHyp,
const QString &  theHypName,
QWidget parent,
QObject obj,
const QString &  slot 
)

◆ dlg()

◆ edit()

void SMESHGUI_GenericHypothesisCreator::edit ( SMESH::SMESH_Hypothesis_ptr  theHypothesis,
const QString &  theHypName,
QWidget theParent,
QObject obj,
const QString &  slot 
)

◆ editHypothesis()

void SMESHGUI_GenericHypothesisCreator::editHypothesis ( SMESH::SMESH_Hypothesis_ptr  h,
const QString &  theHypName,
QWidget theParent,
QObject obj,
const QString &  slot 
)
private

◆ finished

void SMESHGUI_GenericHypothesisCreator::finished ( int  )
signal

Referenced by editHypothesis(), and onDialogFinished().

◆ getCustomWidget()

QWidget * SMESHGUI_GenericHypothesisCreator::getCustomWidget ( const StdParam ,
QWidget ,
const int   
) const
protectedvirtual

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

Referenced by buildStdFrame().

◆ getHelperWidget()

QWidget * SMESHGUI_GenericHypothesisCreator::getHelperWidget ( ) const
protectedvirtual

Returns a widget representing not a hypothesis parameter but some helper widget.

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

Referenced by buildStdFrame().

◆ getLabel()

QLabel * SMESHGUI_GenericHypothesisCreator::getLabel ( int  i) const
protected

Returns a QLabel of a specified parameter.

If isCreation(), the 1st label (supposed to be "Name") is not countered.

References isCreation(), and myParamLabels.

Referenced by StdMeshersGUI_StdHypothesisCreator::valueChanged().

◆ getMainShapeEntry()

◆ getNoGeomMesh()

bool SMESHGUI_GenericHypothesisCreator::getNoGeomMesh ( ) const

◆ getParamFromCustomWidget()

bool SMESHGUI_GenericHypothesisCreator::getParamFromCustomWidget ( StdParam ,
QWidget  
) const
protectedvirtual

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

Referenced by getStdParamFromDlg().

◆ getShapeEntry()

◆ getStdParamFromDlg()

◆ getVariableName()

QString SMESHGUI_GenericHypothesisCreator::getVariableName ( const char *  methodName) const
protected

◆ getVariablesFromDlg()

QStringList SMESHGUI_GenericHypothesisCreator::getVariablesFromDlg ( ) const
protectedvirtual

References widgets().

◆ hasInitParamsHypothesis()

bool SMESHGUI_GenericHypothesisCreator::hasInitParamsHypothesis ( ) const
protected

References myInitParamsHypo.

◆ helpPage()

QString SMESHGUI_GenericHypothesisCreator::helpPage ( ) const
virtual

◆ hypName()

◆ hypothesis()

◆ hypType()

◆ icon()

QPixmap SMESHGUI_GenericHypothesisCreator::icon ( ) const
protectedvirtual

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

Referenced by editHypothesis().

◆ initParamsHypothesis()

SMESH::SMESH_Hypothesis_var SMESHGUI_GenericHypothesisCreator::initParamsHypothesis ( const bool  strictly = false) const
protected

◆ isCreation()

◆ onDialogFinished

◆ onReject()

void SMESHGUI_GenericHypothesisCreator::onReject ( )
virtual

◆ onValueChanged

void SMESHGUI_GenericHypothesisCreator::onValueChanged ( )
protectedvirtualslot

◆ retrieveParams()

virtual void SMESHGUI_GenericHypothesisCreator::retrieveParams ( ) const
protectedpure virtual

◆ setInitParamsHypothesis()

void SMESHGUI_GenericHypothesisCreator::setInitParamsHypothesis ( SMESH::SMESH_Hypothesis_ptr  hyp)

◆ setMainShapeEntry()

void SMESHGUI_GenericHypothesisCreator::setMainShapeEntry ( const QString &  theEntry)

◆ setNoGeomMesh()

void SMESHGUI_GenericHypothesisCreator::setNoGeomMesh ( const bool  noGeom)

◆ setShapeEntry()

void SMESHGUI_GenericHypothesisCreator::setShapeEntry ( const QString &  theEntry)

◆ stdParams()

bool SMESHGUI_GenericHypothesisCreator::stdParams ( ListOfStdParams ) const
protectedvirtual

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

Referenced by buildStdFrame().

◆ stdParamValues()

QString SMESHGUI_GenericHypothesisCreator::stdParamValues ( const ListOfStdParams params)
staticprotected

◆ storeParams()

virtual QString SMESHGUI_GenericHypothesisCreator::storeParams ( ) const
protectedpure virtual

◆ type()

QString SMESHGUI_GenericHypothesisCreator::type ( ) const
protectedvirtual

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

Referenced by editHypothesis().

◆ valueChanged()

void SMESHGUI_GenericHypothesisCreator::valueChanged ( QWidget )
protectedvirtual

◆ widgets()

Field Documentation

◆ myDlg

QtxDialog* SMESHGUI_GenericHypothesisCreator::myDlg
private

◆ myHypName

QString SMESHGUI_GenericHypothesisCreator::myHypName
private

Referenced by editHypothesis(), and hypName().

◆ myHypo

SMESH::SMESH_Hypothesis_var SMESHGUI_GenericHypothesisCreator::myHypo
private

◆ myHypType

QString SMESHGUI_GenericHypothesisCreator::myHypType
private

Referenced by hypType().

◆ myInitParamsHypo

SMESH::SMESH_Hypothesis_var SMESHGUI_GenericHypothesisCreator::myInitParamsHypo
private

◆ myIsCreate

bool SMESHGUI_GenericHypothesisCreator::myIsCreate
private

◆ myMainShapeEntry

QString SMESHGUI_GenericHypothesisCreator::myMainShapeEntry
private

◆ myNoGeomMesh

bool SMESHGUI_GenericHypothesisCreator::myNoGeomMesh
private

true for a mesh not based on geometry

◆ myParamLabels

ListOfWidgets SMESHGUI_GenericHypothesisCreator::myParamLabels
private

Referenced by buildStdFrame(), and getLabel().

◆ myParamWidgets

ListOfWidgets SMESHGUI_GenericHypothesisCreator::myParamWidgets
private

Referenced by changeWidgets(), and widgets().

◆ myShapeEntry

QString SMESHGUI_GenericHypothesisCreator::myShapeEntry
private

Referenced by setShapeEntry().

◆ myToDeleteInitParamsHypo

bool SMESHGUI_GenericHypothesisCreator::myToDeleteInitParamsHypo
private