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 void setHorTitle( const QString& title );
33 QString getHorTitle() const;
34 void setVerTitle( const QString& title );
35 QString getVerTitle() const;
36 void setHorUnits( const QString& units );
37 QString getHorUnits() const;
38 void setVerUnits( const QString& units );
39 QString getVerUnits() const;
40 void addPoint(double theX, double theY);
41 void insertPoint(int thePos, double theX, double theY);
42 void deletePoint(int thePos);
43 void clearAllPoints();
44 pointList getPointList() const;
46 void setData( const double* hData, const double* vData, long size );
47 double* horData() const;
48 double* verData() const;
53 void setAutoAssign( bool on );
54 bool isAutoAssign() const;
55 void setColor( const QColor& color );
56 QColor getColor() const;
57 void setMarker( MarkerType marker );
58 MarkerType getMarker() const;
59 void setLine( LineType line, const int lineWidth = 0 );
60 LineType getLine() const;
61 int getLineWidth() const;
62 void setYAxis(QwtPlot::Axis theYAxis);
63 QwtPlot::Axis getYAxis() const;
75 QwtPlot::Axis myYAxis;
80 typedef QPtrList<Plot2d_Curve> curveList;