From e16b5ec1a83ceee6164afc0bc4a6efd4b6de2c04 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 20 Jan 2009 15:10:46 +0000 Subject: [PATCH] 0019923: EDF 765 SMESH : default values of hypothesis + bool hasInitParamsHypothesis() const; --- src/SMESHGUI/SMESHGUI_Hypotheses.cxx | 5 +++++ src/SMESHGUI/SMESHGUI_Hypotheses.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/SMESHGUI/SMESHGUI_Hypotheses.cxx b/src/SMESHGUI/SMESHGUI_Hypotheses.cxx index f42b6f179..69f1c3cc5 100644 --- a/src/SMESHGUI/SMESHGUI_Hypotheses.cxx +++ b/src/SMESHGUI/SMESHGUI_Hypotheses.cxx @@ -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; diff --git a/src/SMESHGUI/SMESHGUI_Hypotheses.h b/src/SMESHGUI/SMESHGUI_Hypotheses.h index f5ea0cb72..d1a372e6c 100644 --- a/src/SMESHGUI/SMESHGUI_Hypotheses.h +++ b/src/SMESHGUI/SMESHGUI_Hypotheses.h @@ -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; -- 2.39.2