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;
46 double* horData() const;
47 double* verData() const;
51 void setAutoAssign( bool on );
52 bool isAutoAssign() const;
53 void setColor( const QColor color );
54 QColor getColor() const;
55 void setMarker( MarkerType marker );
56 MarkerType getMarker() const;
57 void setLine( LineType line, const int lineWidth = 0 );
58 LineType getLine() const;
59 int getLineWidth() const;
60 void setYAxis(QwtPlot::Axis theYAxis);
61 QwtPlot::Axis getYAxis() const;
73 QwtPlot::Axis myYAxis;