Salome HOME
Initial version
[modules/gui.git] / src / SPlot2d / SPlot2d_Prs.cxx
1 //  File   : SPlot2d_Prs.cxx
2 //  Author : Sergey RUIN
3 //  Module : SUIT
4
5 #include "SPlot2d_Prs.h"
6 using namespace std;
7
8 //==========================================================
9 /*!
10  *  SPlot2d_Prs::SPlot2d_Prs
11  *  Default constructor
12  */
13 //==========================================================
14 SPlot2d_Prs::SPlot2d_Prs()
15 :Plot2d_Prs()  
16 {
17 }
18
19 //==========================================================
20 /*!
21  *  SPlot2d_Prs::SPlot2d_Prs
22  *  Standard constructor
23  */
24 //==========================================================
25 SPlot2d_Prs::SPlot2d_Prs( const Plot2d_Curve* obj )
26 :Plot2d_Prs(obj)
27
28 }
29
30 SPlot2d_Prs::SPlot2d_Prs( const Plot2d_Prs* prs )
31 {
32   mySecondY = prs->isSecondY();
33   myCurves = prs->getCurves();
34 }
35
36 //==========================================================
37 /*!
38  *  SPlot2d_Prs::~SPlot2d_Prs
39  *  Destructor
40  */
41 //==========================================================
42 SPlot2d_Prs::~SPlot2d_Prs()
43
44 }
45
46 //==========================================================
47 /*!
48  *  SPlot2d_Prs::GetObjects
49  *  Get curves list
50  */
51 //==========================================================
52 SPlot2d_CurveContainer SPlot2d_Prs::GetObjects() const 
53
54   SPlot2d_CurveContainer anObjects;
55   int aLen = getCurves().count(); 
56   for ( int i = 0; i < aLen; i++ ) {
57     anObjects.addCurve(getCurves().at( i ));
58   }
59   return anObjects;  
60 }
61
62