26 #ifndef QCP_ITEM_LINE_H
27 #define QCP_ITEM_LINE_H
29 #include "../global.h"
31 #include "../lineending.h"
40 Q_PROPERTY(QPen pen READ pen WRITE setPen)
41 Q_PROPERTY(QPen selectedPen READ selectedPen WRITE setSelectedPen)
50 QPen pen()
const {
return mPen; }
51 QPen selectedPen()
const {
return mSelectedPen; }
56 void setPen(
const QPen &pen);
57 void setSelectedPen(
const QPen &pen);
62 virtual double selectTest(
const QPointF &pos,
bool onlySelectable, QVariant *details=0)
const;
69 QPen mPen, mSelectedPen;
76 QLineF getRectClippedLine(
const QVector2D &start,
const QVector2D &end,
const QRect &rect)
const;
80 #endif // QCP_ITEM_LINE_H
Manages the position of an item.
Definition: item.h:76
Handles the different ending decorations for line-like items.
Definition: lineending.h:33
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
The abstract base class for all items in a plot.
Definition: item.h:143
virtual void draw(QCPPainter *painter)=0
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const =0
A line from one point to another.
Definition: item-line.h:36