25 #ifndef PLOT2D_PLOTITEMS_H
26 #define PLOT2D_PLOTITEMS_H
30 #include <qwt_legend_label.h>
31 #include <qwt_legend.h>
32 #include <qwt_plot_item.h>
33 #include <qwt_plot_curve.h>
35 #include <qwt_series_data.h>
36 #include <qwt_compat.h>
48 void setYAxisIdentifierMode(
const int );
50 void setSelected(
const bool on );
51 bool isSelected()
const;
52 QColor getColorFromPalette( QPalette::ColorRole role );
53 void drawIdentifier( QPainter*,
const QRect& );
54 void setSymbol(
const QwtSymbol* );
55 void setSymbolType(
const int );
56 void setPen(
const QPen& );
59 virtual void drawText( QPainter*,
const QRectF& );
60 virtual void paintEvent( QPaintEvent* );
81 void setSelected(
const bool );
82 bool isSelected()
const;
84 void setLegendPen(
const QPen& );
85 QPen legendPen()
const;
87 void setLegendSymbol(
const QwtSymbol* );
88 QwtSymbol* legendSymbol()
const;
103 virtual void setYAxisIdentifierEnabled(
const bool );
104 virtual void drawSeries( QPainter* p,
105 const QwtScaleMap& xMap,
106 const QwtScaleMap& yMap,
107 const QRectF& canvasRect,
108 int from,
int to)
const;
110 void setDeviationData(
const double* min,
const double* max,
const QList<int>& idx );
111 bool hasDeviationData()
const;
112 void clearDeviationData();
117 virtual void itemChanged();
119 QColor deviationMarkerColor()
const;
120 int deviationMarkerLineWidth()
const;
121 int deviationMarkerTickSize()
const;
144 void setData(
const QwtIntervalSeriesData& );
145 const QwtIntervalSeriesData& data()
const;
147 void setColor(
const QColor& );
148 QColor
color()
const;
150 virtual QwtDoubleRect boundingRect()
const;
151 virtual int rtti()
const;
152 virtual void draw( QPainter*,
const QwtScaleMap&,
153 const QwtScaleMap&,
const QRectF& )
const;
155 void setBaseline(
double );
156 double baseline()
const;
158 void setHistogramAttribute( HistogramAttribute,
bool =
true );
159 bool testHistogramAttribute( HistogramAttribute )
const;
162 virtual void drawBar( QPainter*,
Qt::Orientation,
const QRect& )
const;
185 virtual void draw( QPainter*,
const QwtScaleMap&,
186 const QwtScaleMap&,
const QRectF& )
const;
188 void setCrossItems(
bool theCross );
189 bool isCrossItems()
const;
193 const QRect& )
const;
194 int getCrossedTop(
const QRect& )
const;
208 virtual QWidget* createWidget(
const QwtLegendData& )
const;
211 #endif // PLOT2D_PLOTITEMS_H