5 #include <qvaluelist.h>
17 typedef QValueList<Plot2d_Point> pointList;
19 class PLOT2D_EXPORT Plot2d_Curve
22 enum MarkerType { None, Circle, Rectangle, Diamond,
23 DTriangle, UTriangle, LTriangle, RTriangle,
25 enum LineType { NoPen, Solid, Dash, Dot, DashDot, DashDotDot };
28 virtual ~Plot2d_Curve();
29 Plot2d_Curve( const Plot2d_Curve& curve );
30 Plot2d_Curve& operator= ( const Plot2d_Curve& curve );
32 virtual QString getTableTitle() const;
34 void setHorTitle( const QString& title );
35 QString getHorTitle() const;
36 void setVerTitle( const QString& title );
37 QString getVerTitle() const;
38 void setHorUnits( const QString& units );
39 QString getHorUnits() const;
40 void setVerUnits( const QString& units );
41 QString getVerUnits() const;
42 void addPoint(double theX, double theY);
43 void insertPoint(int thePos, double theX, double theY);
44 void deletePoint(int thePos);
45 void clearAllPoints();
46 pointList getPointList() const;
48 void setData( const double* hData, const double* vData, long size );
49 double* horData() const;
50 double* verData() const;
55 void setAutoAssign( bool on );
56 bool isAutoAssign() const;
57 void setColor( const QColor& color );
58 QColor getColor() const;
59 void setMarker( MarkerType marker );
60 MarkerType getMarker() const;
61 void setLine( LineType line, const int lineWidth = 0 );
62 LineType getLine() const;
63 int getLineWidth() const;
64 void setYAxis(QwtPlot::Axis theYAxis);
65 QwtPlot::Axis getYAxis() const;
77 QwtPlot::Axis myYAxis;
82 typedef QPtrList<Plot2d_Curve> curveList;