Salome HOME
0019923: EDF 765 SMESH : default values of hypothesis BR_V5_IMP_P8
authoreap <eap@opencascade.com>
Tue, 20 Jan 2009 15:10:46 +0000 (15:10 +0000)
committereap <eap@opencascade.com>
Tue, 20 Jan 2009 15:10:46 +0000 (15:10 +0000)
+  bool                         hasInitParamsHypothesis() const;

src/SMESHGUI/SMESHGUI_Hypotheses.cxx
src/SMESHGUI/SMESHGUI_Hypotheses.h

index f42b6f179a01c1377c40db987da9206fe2d9bd42..69f1c3cc5c295fd02d3ebb3a81f6ab01ec88f146 100644 (file)
@@ -363,6 +363,11 @@ SMESH::SMESH_Hypothesis_var SMESHGUI_GenericHypothesisCreator::initParamsHypothe
   return myInitParamsHypo;
 }
 
+bool SMESHGUI_GenericHypothesisCreator::hasInitParamsHypothesis() const
+{
+  return !CORBA::is_nil( myInitParamsHypo );
+}
+
 QString SMESHGUI_GenericHypothesisCreator::hypType() const
 {
   return myHypType;
index f5ea0cb72f7327acd4ce300be700eee5e20392a5..d1a372e6ce685ed870b4b0ea8ebcedb44c68e445 100644 (file)
@@ -77,6 +77,7 @@ protected:
 
   SMESH::SMESH_Hypothesis_var  hypothesis() const;
   SMESH::SMESH_Hypothesis_var  initParamsHypothesis(const bool strict=false) const;
+  bool                         hasInitParamsHypothesis() const;
   const ListOfWidgets&         widgets() const;
   ListOfWidgets&               changeWidgets();
   QtxDialog*                   dlg() const;