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