Salome HOME
{
authoreap <eap@opencascade.com>
Wed, 15 Jul 2009 13:43:48 +0000 (13:43 +0000)
committereap <eap@opencascade.com>
Wed, 15 Jul 2009 13:43:48 +0000 (13:43 +0000)
     /*!
      * Sets <start segment length> or <end segment length> 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 <start segment length> parameter value
+     */
+    void SetStartLength(in double length)
+      raises (SALOME::SALOME_Exception);
+
+    /*!
+     * Sets <end segment length> parameter value
+     */
+    void SetEndLength(in double length)
+      raises (SALOME::SALOME_Exception);

src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.cxx

index df4370d6dcf1ff67e2a1c14741f43b62932e17cd..66976e317e38e1a93460ba751961fcb38348073d 100644 (file)
@@ -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() );