21 #include <QGraphicsLineItem> 22 #include "vectoritem.h" 34 enum {Type = UserType + Line
51 LineItem(
double x0 = 0,
double y0 = 0,
unsigned color = 0,
52 QGraphicsItem* parent = 0,
double length = 1,
bool visible =
true,
53 Symbol symbol = SolidLine,
double relSize = 1,
double dir = 0);
65 LineItem(
const KConfigGroup* plo,
unsigned color = 0,
66 QGraphicsItem* parent = 0);
79 void setProperties(
const QTransform& m);
88 virtual int type()
const {
return Type; };
95 void writePlo(KConfigGroup* plo)
const;
99 virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event);
101 void setProperties();
void writePlo(KConfigGroup *plo, bool visible) const
Writes into plot file.
Symbol
Symbol types.
Definition: kplitem.h:83
Symbol symbol() const
Returns line type.
Definition: lineitem.h:86
virtual int type() const
Returns specific QGraphicsItem type number.
Definition: lineitem.h:88
static QPixmap pixmap(Symbol symbol)
Returns black decoration pixmap of plot symbol for use in dialog GUI.
Vector item class.
Definition: vectoritem.h:33
void setSymbol(Symbol symbol)
Sets line type.
Definition: lineitem.h:84
Line item class.
Definition: lineitem.h:30