26 #ifndef QCP_ITEM_TRACER_H
27 #define QCP_ITEM_TRACER_H
29 #include "../global.h"
40 Q_PROPERTY(QPen pen READ pen WRITE setPen)
41 Q_PROPERTY(QPen selectedPen READ selectedPen WRITE setSelectedPen)
42 Q_PROPERTY(QBrush brush READ brush WRITE setBrush)
43 Q_PROPERTY(QBrush selectedBrush READ selectedBrush WRITE setSelectedBrush)
44 Q_PROPERTY(
double size READ size WRITE setSize)
45 Q_PROPERTY(
TracerStyle style READ style WRITE setStyle)
46 Q_PROPERTY(
QCPGraph* graph READ graph WRITE setGraph)
47 Q_PROPERTY(
double graphKey READ graphKey WRITE setGraphKey)
48 Q_PROPERTY(
bool interpolating READ interpolating WRITE setInterpolating)
68 QPen pen()
const {
return mPen; }
69 QPen selectedPen()
const {
return mSelectedPen; }
70 QBrush brush()
const {
return mBrush; }
71 QBrush selectedBrush()
const {
return mSelectedBrush; }
72 double size()
const {
return mSize; }
73 TracerStyle style()
const {
return mStyle; }
74 QCPGraph *graph()
const {
return mGraph; }
75 double graphKey()
const {
return mGraphKey; }
76 bool interpolating()
const {
return mInterpolating; }
79 void setPen(
const QPen &pen);
80 void setSelectedPen(
const QPen &pen);
81 void setBrush(
const QBrush &brush);
82 void setSelectedBrush(
const QBrush &brush);
83 void setSize(
double size);
84 void setStyle(TracerStyle style);
86 void setGraphKey(
double key);
87 void setInterpolating(
bool enabled);
90 virtual double selectTest(
const QPointF &pos,
bool onlySelectable, QVariant *details=0)
const;
93 void updatePosition();
99 QPen mPen, mSelectedPen;
100 QBrush mBrush, mSelectedBrush;
111 QPen mainPen()
const;
112 QBrush mainBrush()
const;
115 #endif // QCP_ITEM_TRACER_H
Manages the position of an item.
Definition: item.h:76
The central class of the library. This is the QWidget which displays the plot and interacts with the ...
Definition: core.h:42
QPainter subclass used internally.
Definition: painter.h:111
QCPItemPosition * position(const QString &name) const
Definition: item.cpp:1082
TracerStyle
Definition: item-tracer.h:56
Item that sticks to QCPGraph data points.
Definition: item-tracer.h:36
The abstract base class for all items in a plot.
Definition: item.h:143
virtual void draw(QCPPainter *painter)=0
A plottable representing a graph in a plot.
Definition: plottable-graph.h:60
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const =0