/*!
      * 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);
This commit is contained in:
eap 2009-07-15 13:43:48 +00:00
parent 67b7121966
commit 951e90bf47

View 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() );