From: eap Date: Wed, 15 Jul 2009 13:43:48 +0000 (+0000) Subject: { X-Git-Tag: V5_1_3rc1~142 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=951e90bf479587d1f1a47138209769e7ea53427e;p=modules%2Fsmesh.git { /*! * 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); --- 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() );