From: san Date: Fri, 10 Jun 2005 06:53:31 +0000 (+0000) Subject: Usage to SPlot2d_CurveContainer removed X-Git-Tag: T3_0_0_a3~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fbc46c2bdf5dfd86973c98a3d52cd7503c6eacc6;p=modules%2Fgui.git Usage to SPlot2d_CurveContainer removed --- diff --git a/src/SPlot2d/SPlot2d_Prs.cxx b/src/SPlot2d/SPlot2d_Prs.cxx index 7a9805ecd..3f9fdc6b6 100644 --- a/src/SPlot2d/SPlot2d_Prs.cxx +++ b/src/SPlot2d/SPlot2d_Prs.cxx @@ -43,20 +43,4 @@ SPlot2d_Prs::~SPlot2d_Prs() { } -//========================================================== -/*! - * SPlot2d_Prs::GetObjects - * Get curves list - */ -//========================================================== -SPlot2d_CurveContainer SPlot2d_Prs::GetObjects() const -{ - SPlot2d_CurveContainer anObjects; - int aLen = getCurves().count(); - for ( int i = 0; i < aLen; i++ ) { - anObjects.addCurve(getCurves().at( i )); - } - return anObjects; -} - diff --git a/src/SPlot2d/SPlot2d_Prs.h b/src/SPlot2d/SPlot2d_Prs.h index 8417a1db8..c1327f6b3 100644 --- a/src/SPlot2d/SPlot2d_Prs.h +++ b/src/SPlot2d/SPlot2d_Prs.h @@ -7,9 +7,10 @@ #include "SPlot2d.h" #include "SALOME_Prs.h" -#include "SPlot2d_CurveContainer.h" #include "Plot2d_Prs.h" +#include + class Plot2d_Curve; class SPLOT2D_EXPORT SPlot2d_Prs : public SALOME_Prs2d, public Plot2d_Prs @@ -31,7 +32,7 @@ public: // Get curves list // Note: Depricated method, use method getCurves - SPlot2d_CurveContainer GetObjects() const; + curveList GetObjects() const { return getCurves(); } };