From 951e90bf479587d1f1a47138209769e7ea53427e Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 15 Jul 2009 13:43:48 +0000 Subject: [PATCH] { /*! * Sets or parameter value + * * OBSOLETE *. Avoid such a way of interface design + * * It is recommended to dedicate a method to each parameter. */ void SetLength(in double length, in boolean isStartLength) raises (SALOME::SALOME_Exception); /*! + * Sets parameter value + */ + void SetStartLength(in double length) + raises (SALOME::SALOME_Exception); + + /*! + * Sets parameter value + */ + void SetEndLength(in double length) + raises (SALOME::SALOME_Exception); --- src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.cxx b/src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.cxx index df4370d6d..66976e317 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.cxx +++ b/src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.cxx @@ -448,9 +448,9 @@ QString StdMeshersGUI_StdHypothesisCreator::storeParams() const StdMeshersGUI_EdgeDirectionParamWdg* w = widget< StdMeshersGUI_EdgeDirectionParamWdg >( 2 ); - h->SetLength( params[0].myValue.toDouble(), true ); + h->SetStartLength( params[0].myValue.toDouble() ); h->SetParameters(SMESHGUI::JoinObjectParameters(aVariablesList)); - h->SetLength( params[1].myValue.toDouble(), false ); + h->SetEndLength( params[1].myValue.toDouble() ); h->SetParameters(SMESHGUI::JoinObjectParameters(aVariablesList)); if (w) { h->SetReversedEdges( w->GetListOfIDs() ); @@ -481,9 +481,9 @@ QString StdMeshersGUI_StdHypothesisCreator::storeParams() const StdMeshersGUI_EdgeDirectionParamWdg* w = widget< StdMeshersGUI_EdgeDirectionParamWdg >( 2 ); - h->SetLength( params[0].myValue.toDouble(), true ); + h->SetStartLength( params[0].myValue.toDouble() ); h->SetParameters(SMESHGUI::JoinObjectParameters(aVariablesList)); - h->SetLength( params[1].myValue.toDouble(), false ); + h->SetEndLength( params[1].myValue.toDouble() ); h->SetParameters(SMESHGUI::JoinObjectParameters(aVariablesList)); if (w) { h->SetReversedEdges( w->GetListOfIDs() ); -- 2.30.2