1 // Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/
19 // File : SPlot2d_Curve.cxx
20 // Author : Sergey RUIN
23 #include "SPlot2d_Curve.h"
29 SPlot2d_Curve::SPlot2d_Curve()
37 SPlot2d_Curve::~SPlot2d_Curve()
42 Copy constructor. Makes deep copy of data.
44 SPlot2d_Curve::SPlot2d_Curve( const SPlot2d_Curve& curve )
46 myAutoAssign = curve.isAutoAssign();
47 myHorTitle = curve.getHorTitle();
48 myVerTitle = curve.getVerTitle();
49 myHorUnits = curve.getHorUnits();
50 myVerUnits = curve.getVerUnits();
51 myColor = curve.getColor();
52 myMarker = curve.getMarker();
53 myLine = curve.getLine();
54 myLineWidth = curve.getLineWidth();
55 myPoints = curve.getPointList();
57 myTableIO = curve.getTableIO();
61 operator=. Makes deep copy of data.
63 SPlot2d_Curve& SPlot2d_Curve::operator=( const SPlot2d_Curve& curve )
65 myAutoAssign = curve.isAutoAssign();
66 myHorTitle = curve.getHorTitle();
67 myVerTitle = curve.getVerTitle();
68 myHorUnits = curve.getHorUnits();
69 myVerUnits = curve.getVerUnits();
70 myColor = curve.getColor();
71 myMarker = curve.getMarker();
72 myLine = curve.getLine();
73 myLineWidth = curve.getLineWidth();
74 myPoints = curve.getPointList();
76 myTableIO = curve.getTableIO();
80 Handle(SALOME_InteractiveObject) SPlot2d_Curve::getIO() const
85 void SPlot2d_Curve::setIO( const Handle(SALOME_InteractiveObject)& io )
90 bool SPlot2d_Curve::hasTableIO() const
92 return !myTableIO.IsNull();
95 Handle(SALOME_InteractiveObject) SPlot2d_Curve::getTableIO() const
100 void SPlot2d_Curve::setTableIO( const Handle(SALOME_InteractiveObject)& io )
105 bool SPlot2d_Curve::hasIO() const
107 return !myIO.IsNull();
110 QString SPlot2d_Curve::getTableTitle() const
114 title = getTableIO()->getName();