Auxiliary class for creation of hypotheses. More...
#include <SMESHGUI_Hypotheses.h>

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< StdParam > | ListOfStdParams | 
| 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 ListOfWidgets & | widgets () const | 
| ListOfWidgets & | changeWidgets () | 
| QLabel * | getLabel (int i) const | 
| Returns a QLabel of a spesified parameter.  More... | |
| QtxDialog * | dlg () const | 
| QString | getVariableName (const char *methodName) const | 
| virtual QFrame * | buildFrame ()=0 | 
| QFrame * | buildStdFrame () | 
| 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 QWidget * | getCustomWidget (const StdParam &, QWidget *, const int) const | 
| virtual QWidget * | getHelperWidget () 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... | |
| QtxDialog * | myDlg | 
| QString | myShapeEntry | 
| QString | myMainShapeEntry | 
Auxiliary class for creation of hypotheses.
      
  | 
  protected | 
      
  | 
  protected | 
| SMESHGUI_GenericHypothesisCreator::SMESHGUI_GenericHypothesisCreator | ( | const QString & | theHypType | ) | 
      
  | 
  virtual | 
References myInitParamsHypo, and myToDeleteInitParamsHypo.
      
  | 
  protectedvirtual | 
Reimplemented in StdMeshersGUI_StdHypothesisCreator.
Referenced by buildStdFrame().
      
  | 
  protectedpure virtual | 
Implemented in StdMeshersGUI_CartesianParamCreator, StdMeshersGUI_NbSegmentsCreator, StdMeshersGUI_QuadrangleParamCreator, and StdMeshersGUI_StdHypothesisCreator.
Referenced by editHypothesis().
      
  | 
  protected | 
References _PTR(), attuneStdWidget(), changeWidgets(), getCustomWidget(), getHelperWidget(), hypothesis(), MARGIN, myParamLabels, onValueChanged(), SPACING, stdParams(), and valueChanged().
Referenced by StdMeshersGUI_StdHypothesisCreator::buildFrame().
      
  | 
  protectedvirtual | 
Reimplemented in StdMeshersGUI_StdHypothesisCreator.
Referenced by editHypothesis().
      
  | 
  protected | 
References myParamWidgets.
Referenced by buildStdFrame(), and onDialogFinished().
      
  | 
  virtual | 
Reimplemented in StdMeshersGUI_CartesianParamCreator, StdMeshersGUI_NbSegmentsCreator, and StdMeshersGUI_StdHypothesisCreator.
References widgets().
Referenced by SMESHGUI_HypothesisDlg::accept(), StdMeshersGUI_StdHypothesisCreator::checkParams(), StdMeshersGUI_NbSegmentsCreator::checkParams(), and StdMeshersGUI_CartesianParamCreator::checkParams().
| void SMESHGUI_GenericHypothesisCreator::create | ( | SMESH::SMESH_Hypothesis_ptr | initParamsHyp, | 
| const QString & | theHypName, | ||
| QWidget * | parent, | ||
| QObject * | obj, | ||
| const QString & | slot | ||
| ) | 
References setInitParamsHypothesis().
Referenced by SMESHGUI_MeshOp::createHypothesis(), and SMESHGUI_MeshOp::getAlgo().
| void SMESHGUI_GenericHypothesisCreator::create | ( | bool | isAlgo, | 
| const QString & | theHypName, | ||
| QWidget * | theParent, | ||
| QObject * | obj, | ||
| const QString & | slot | ||
| ) | 
References SMESH::CreateHypothesis(), editHypothesis(), hypType(), and myIsCreate.
      
  | 
  protected | 
| void SMESHGUI_GenericHypothesisCreator::edit | ( | SMESH::SMESH_Hypothesis_ptr | theHypothesis, | 
| const QString & | theHypName, | ||
| QWidget * | theParent, | ||
| QObject * | obj, | ||
| const QString & | slot | ||
| ) | 
References editHypothesis(), and myIsCreate.
Referenced by StdMeshersGUI_LayerDistributionParamWdg::onEdit(), SMESHGUI_MeshOp::onEditHyp(), and SMESHGUI::OnGUIEvent().
      
  | 
  private | 
      
  | 
  signal | 
Referenced by editHypothesis(), and onDialogFinished().
      
  | 
  protectedvirtual | 
Reimplemented in StdMeshersGUI_StdHypothesisCreator.
Referenced by buildStdFrame().
      
  | 
  protectedvirtual | 
Returns a widget representing not a hypothesis parameter but some helper widget.
Reimplemented in StdMeshersGUI_StdHypothesisCreator.
Referenced by buildStdFrame().
      
  | 
  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().
| QString SMESHGUI_GenericHypothesisCreator::getMainShapeEntry | ( | ) | const | 
Referenced by StdMeshersGUI_NbSegmentsCreator::buildFrame(), StdMeshersGUI_CartesianParamCreator::buildFrame(), StdMeshersGUI_StdHypothesisCreator::makeReverseEdgesWdg(), StdMeshersGUI_CartesianParamCreator::onOptimalAxes(), StdMeshersGUI_QuadrangleParamCreator::retrieveParams(), and StdMeshersGUI_StdHypothesisCreator::stdParams().
| bool SMESHGUI_GenericHypothesisCreator::getNoGeomMesh | ( | ) | const | 
      
  | 
  protectedvirtual | 
Reimplemented in StdMeshersGUI_StdHypothesisCreator.
Referenced by getStdParamFromDlg().
| QString SMESHGUI_GenericHypothesisCreator::getShapeEntry | ( | ) | const | 
      
  | 
  protected | 
      
  | 
  protected | 
References hypothesis().
Referenced by StdMeshersGUI_StdHypothesisCreator::initVariableName(), and StdMeshersGUI_CartesianParamCreator::retrieveParams().
      
  | 
  protectedvirtual | 
References widgets().
      
  | 
  protected | 
References myInitParamsHypo.
      
  | 
  virtual | 
Reimplemented in StdMeshersGUI_CartesianParamCreator, and StdMeshersGUI_QuadrangleParamCreator.
References hypType().
Referenced by SMESHGUI_HypothesisDlg::SMESHGUI_HypothesisDlg().
| QString SMESHGUI_GenericHypothesisCreator::hypName | ( | ) | const | 
      
  | 
  protected | 
References myHypo.
Referenced by StdMeshersGUI_NbSegmentsCreator::buildFrame(), StdMeshersGUI_CartesianParamCreator::buildFrame(), buildStdFrame(), StdMeshersGUI_CartesianParamCreator::checkParams(), getVariableName(), StdMeshersGUI_CartesianParamCreator::onOptimalAxes(), StdMeshersGUI_StdHypothesisCreator::storeParams(), StdMeshersGUI_QuadrangleParamCreator::storeParams(), StdMeshersGUI_CartesianParamCreator::storeParams(), and StdMeshersGUI_NbSegmentsCreator::storeParamsToHypo().
| QString SMESHGUI_GenericHypothesisCreator::hypType | ( | ) | const | 
References myHypType.
Referenced by StdMeshersGUI_StdHypothesisCreator::attuneStdWidget(), StdMeshersGUI_StdHypothesisCreator::caption(), StdMeshersGUI_StdHypothesisCreator::checkParams(), create(), StdMeshersGUI_StdHypothesisCreator::getParamFromCustomWidget(), helpPage(), StdMeshersGUI_StdHypothesisCreator::icon(), StdMeshersGUI_StdHypothesisCreator::onReject(), StdMeshersGUI_StdHypothesisCreator::retrieveParams(), setInitParamsHypothesis(), SMESHGUI_HypothesisDlg::SMESHGUI_HypothesisDlg(), StdMeshersGUI_StdHypothesisCreator::stdParams(), StdMeshersGUI_StdHypothesisCreator::storeParams(), StdMeshersGUI_StdHypothesisCreator::type(), and StdMeshersGUI_StdHypothesisCreator::valueChanged().
      
  | 
  protectedvirtual | 
Reimplemented in StdMeshersGUI_StdHypothesisCreator.
Referenced by editHypothesis().
      
  | 
  protected | 
Return hypothesis containing initial 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().
| bool SMESHGUI_GenericHypothesisCreator::isCreation | ( | ) | const | 
References myIsCreate.
Referenced by StdMeshersGUI_QuadrangleParamCreator::buildFrame(), StdMeshersGUI_NbSegmentsCreator::buildFrame(), StdMeshersGUI_CartesianParamCreator::buildFrame(), getLabel(), StdMeshersGUI_StdHypothesisCreator::getWidgetForParam(), initParamsHypothesis(), StdMeshersGUI_QuadrangleParamCreator::retrieveParams(), StdMeshersGUI_StdHypothesisCreator::stdParams(), StdMeshersGUI_StdHypothesisCreator::storeParams(), StdMeshersGUI_CartesianParamCreator::storeParams(), and StdMeshersGUI_NbSegmentsCreator::storeParamsToHypo().
      
  | 
  privatevirtualslot | 
      
  | 
  virtual | 
Reimplemented in StdMeshersGUI_StdHypothesisCreator.
Referenced by SMESHGUI_HypothesisDlg::reject().
      
  | 
  protectedvirtualslot | 
References valueChanged().
Referenced by buildStdFrame(), and StdMeshersGUI_StdHypothesisCreator::stdParams().
      
  | 
  protectedpure virtual | 
Implemented in StdMeshersGUI_CartesianParamCreator, StdMeshersGUI_NbSegmentsCreator, StdMeshersGUI_QuadrangleParamCreator, and StdMeshersGUI_StdHypothesisCreator.
Referenced by editHypothesis().
| void SMESHGUI_GenericHypothesisCreator::setInitParamsHypothesis | ( | SMESH::SMESH_Hypothesis_ptr | hyp | ) | 
References hypName(), hypType(), myInitParamsHypo, and myToDeleteInitParamsHypo.
Referenced by create(), and SMESHGUI_MeshOp::onEditHyp().
| void SMESHGUI_GenericHypothesisCreator::setMainShapeEntry | ( | const QString & | theEntry | ) | 
Referenced by SMESHGUI_MeshOp::initHypCreator(), and SMESHGUI::OnGUIEvent().
| void SMESHGUI_GenericHypothesisCreator::setNoGeomMesh | ( | const bool | noGeom | ) | 
Referenced by SMESHGUI_MeshOp::initHypCreator().
| void SMESHGUI_GenericHypothesisCreator::setShapeEntry | ( | const QString & | theEntry | ) | 
References myShapeEntry.
Referenced by SMESHGUI_MeshOp::initHypCreator(), and SMESHGUI::OnGUIEvent().
      
  | 
  protectedvirtual | 
Reimplemented in StdMeshersGUI_StdHypothesisCreator.
Referenced by buildStdFrame().
      
  | 
  staticprotected | 
Referenced by StdMeshersGUI_StdHypothesisCreator::storeParams().
      
  | 
  protectedpure virtual | 
Implemented in StdMeshersGUI_CartesianParamCreator, StdMeshersGUI_NbSegmentsCreator, StdMeshersGUI_QuadrangleParamCreator, and StdMeshersGUI_StdHypothesisCreator.
Referenced by onDialogFinished().
      
  | 
  protectedvirtual | 
Reimplemented in StdMeshersGUI_StdHypothesisCreator.
Referenced by editHypothesis().
      
  | 
  protectedvirtual | 
Reimplemented in StdMeshersGUI_StdHypothesisCreator.
Referenced by buildStdFrame(), and onValueChanged().
      
  | 
  protected | 
References myParamWidgets.
Referenced by checkParams(), getStdParamFromDlg(), getVariablesFromDlg(), and StdMeshersGUI_StdHypothesisCreator::getWidgetForParam().
      
  | 
  private | 
Referenced by dlg(), editHypothesis(), and onDialogFinished().
      
  | 
  private | 
Referenced by editHypothesis(), and hypName().
      
  | 
  private | 
Referenced by editHypothesis(), hypothesis(), initParamsHypothesis(), and onDialogFinished().
      
  | 
  private | 
Referenced by hypType().
      
  | 
  private | 
      
  | 
  private | 
Referenced by create(), edit(), isCreation(), and onDialogFinished().
      
  | 
  private | 
      
  | 
  private | 
true for a mesh not based on geometry
      
  | 
  private | 
Referenced by buildStdFrame(), and getLabel().
      
  | 
  private | 
Referenced by changeWidgets(), and widgets().
      
  | 
  private | 
Referenced by setShapeEntry().
      
  | 
  private | 
Referenced by setInitParamsHypothesis(), and ~SMESHGUI_GenericHypothesisCreator().