Version: 8.3.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 ()
 
QLabel * getLabel (int i) const
 Returns a QLabel of a spesified 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

Constructor & Destructor Documentation

SMESHGUI_GenericHypothesisCreator::SMESHGUI_GenericHypothesisCreator ( const QString &  theHypType)
SMESHGUI_GenericHypothesisCreator::~SMESHGUI_GenericHypothesisCreator ( )
virtual

Member Function Documentation

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

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

Referenced by buildStdFrame().

virtual QFrame* SMESHGUI_GenericHypothesisCreator::buildFrame ( )
protectedpure virtual
QString SMESHGUI_GenericHypothesisCreator::caption ( ) const
protectedvirtual

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

Referenced by editHypothesis().

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

References myParamWidgets.

Referenced by buildStdFrame(), and onDialogFinished().

void SMESHGUI_GenericHypothesisCreator::create ( SMESH::SMESH_Hypothesis_ptr  initParamsHyp,
const QString &  theHypName,
QWidget parent,
QObject obj,
const QString &  slot 
)
void SMESHGUI_GenericHypothesisCreator::create ( bool  isAlgo,
const QString &  theHypName,
QWidget theParent,
QObject obj,
const QString &  slot 
)
void SMESHGUI_GenericHypothesisCreator::edit ( SMESH::SMESH_Hypothesis_ptr  theHypothesis,
const QString &  theHypName,
QWidget theParent,
QObject obj,
const QString &  slot 
)
void SMESHGUI_GenericHypothesisCreator::editHypothesis ( SMESH::SMESH_Hypothesis_ptr  h,
const QString &  theHypName,
QWidget theParent,
QObject obj,
const QString &  slot 
)
private
void SMESHGUI_GenericHypothesisCreator::finished ( int  )
signal

Referenced by editHypothesis(), and onDialogFinished().

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

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

Referenced by buildStdFrame().

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().

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

Returns a QLabel of a spesified parameter.

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

References isCreation(), and myParamLabels.

Referenced by StdMeshersGUI_StdHypothesisCreator::valueChanged().

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

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

Referenced by getStdParamFromDlg().

QString SMESHGUI_GenericHypothesisCreator::getVariableName ( const char *  methodName) const
protected
QStringList SMESHGUI_GenericHypothesisCreator::getVariablesFromDlg ( ) const
protectedvirtual

References widgets().

bool SMESHGUI_GenericHypothesisCreator::hasInitParamsHypothesis ( ) const
protected

References myInitParamsHypo.

QString SMESHGUI_GenericHypothesisCreator::helpPage ( ) const
virtual
QPixmap SMESHGUI_GenericHypothesisCreator::icon ( ) const
protectedvirtual

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

Referenced by editHypothesis().

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

Return hypothesis containing initial parameters.

Parameters
strictly- if true, always return myInitParamsHypo, else, return myInitParamsHypo only in creation mode and if it is non-nil

References isCreation(), myHypo, and myInitParamsHypo.

Referenced by StdMeshersGUI_NbSegmentsCreator::readParamsFromHypo(), StdMeshersGUI_QuadrangleParamCreator::retrieveParams(), StdMeshersGUI_CartesianParamCreator::retrieveParams(), StdMeshersGUI_StdHypothesisCreator::stdParams(), StdMeshersGUI_StdHypothesisCreator::storeParams(), and StdMeshersGUI_StdHypothesisCreator::valueChanged().

void SMESHGUI_GenericHypothesisCreator::onReject ( )
virtual
void SMESHGUI_GenericHypothesisCreator::onValueChanged ( )
protectedvirtualslot
virtual void SMESHGUI_GenericHypothesisCreator::retrieveParams ( ) const
protectedpure virtual
void SMESHGUI_GenericHypothesisCreator::setInitParamsHypothesis ( SMESH::SMESH_Hypothesis_ptr  hyp)
void SMESHGUI_GenericHypothesisCreator::setMainShapeEntry ( const QString &  theEntry)
void SMESHGUI_GenericHypothesisCreator::setNoGeomMesh ( const bool  noGeom)
void SMESHGUI_GenericHypothesisCreator::setShapeEntry ( const QString &  theEntry)
bool SMESHGUI_GenericHypothesisCreator::stdParams ( ListOfStdParams ) const
protectedvirtual

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

Referenced by buildStdFrame().

QString SMESHGUI_GenericHypothesisCreator::stdParamValues ( const ListOfStdParams params)
staticprotected
virtual QString SMESHGUI_GenericHypothesisCreator::storeParams ( ) const
protectedpure virtual
QString SMESHGUI_GenericHypothesisCreator::type ( ) const
protectedvirtual

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

Referenced by editHypothesis().

void SMESHGUI_GenericHypothesisCreator::valueChanged ( QWidget )
protectedvirtual

Field Documentation

QtxDialog* SMESHGUI_GenericHypothesisCreator::myDlg
private
QString SMESHGUI_GenericHypothesisCreator::myHypName
private

Referenced by editHypothesis(), and hypName().

SMESH::SMESH_Hypothesis_var SMESHGUI_GenericHypothesisCreator::myHypo
private
QString SMESHGUI_GenericHypothesisCreator::myHypType
private

Referenced by hypType().

SMESH::SMESH_Hypothesis_var SMESHGUI_GenericHypothesisCreator::myInitParamsHypo
private
bool SMESHGUI_GenericHypothesisCreator::myIsCreate
private
QString SMESHGUI_GenericHypothesisCreator::myMainShapeEntry
private
bool SMESHGUI_GenericHypothesisCreator::myNoGeomMesh
private

true for a mesh not based on geometry

ListOfWidgets SMESHGUI_GenericHypothesisCreator::myParamLabels
private

Referenced by buildStdFrame(), and getLabel().

ListOfWidgets SMESHGUI_GenericHypothesisCreator::myParamWidgets
private

Referenced by changeWidgets(), and widgets().

QString SMESHGUI_GenericHypothesisCreator::myShapeEntry
private

Referenced by setShapeEntry().

bool SMESHGUI_GenericHypothesisCreator::myToDeleteInitParamsHypo
private