From: nds Date: Thu, 21 Nov 2013 09:24:19 +0000 (+0000) Subject: Curve displayer is moved to the curve creator. X-Git-Tag: BR_hydro_v_0_3_1~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=820c913e913881f2581eedce5995579ef0ad12d0;p=modules%2Fhydro.git Curve displayer is moved to the curve creator. This is an attempt to fix the bug refs #94 - Fatal error after second Edit polyline --- diff --git a/src/HYDROCurveCreator/CurveCreator_Curve.cxx b/src/HYDROCurveCreator/CurveCreator_Curve.cxx index f056b034..51cf063e 100644 --- a/src/HYDROCurveCreator/CurveCreator_Curve.cxx +++ b/src/HYDROCurveCreator/CurveCreator_Curve.cxx @@ -106,6 +106,15 @@ void CurveCreator_Curve::setDisplayer( CurveCreator_Displayer* theDisplayer ) myDisplayer = theDisplayer; } +//======================================================================= +// function: getDisplayer +// purpose: get curve changes Displayer +//======================================================================= +CurveCreator_Displayer* CurveCreator_Curve::getDisplayer() +{ + return myDisplayer; +} + //======================================================================= // function: removeDisplayer // purpose: remove the attached Displayer diff --git a/src/HYDROCurveCreator/CurveCreator_Curve.hxx b/src/HYDROCurveCreator/CurveCreator_Curve.hxx index bb29e889..cc6d97b2 100644 --- a/src/HYDROCurveCreator/CurveCreator_Curve.hxx +++ b/src/HYDROCurveCreator/CurveCreator_Curve.hxx @@ -69,6 +69,9 @@ public: //! Set curve creator Displayer object virtual void setDisplayer( CurveCreator_Displayer* theDisplayer ); + //! Return curve creator Displayer object + CurveCreator_Displayer* getDisplayer(); + //! Remove curve creator Displayer object virtual void removeDisplayer();