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);
88 virtual int type()
const {
return Type; };
Symbol
Symbol types.
Definition: kplitem.h:83
Line item class.
Definition: lineitem.h:31
void setProperties(const QTransform &m)
Sets properties according to transformation matrix.
virtual int type() const
Returns specific QGraphicsItem type number.
Definition: lineitem.h:88
void writePlo(KConfigGroup *plo) const
Writes into plot file.
void setDashOffset()
Sets offset for dashed lines.
void setPenWidth()
Sets pen width.
void setSymbol(Symbol symbol)
Sets line type.
Definition: lineitem.h:84
QPixmap pixmap() const
Returns decoration pixmap for item list.
LineItem(double x0=0, double y0=0, unsigned color=0, QGraphicsItem *parent=0, double length=1, bool visible=true, Symbol symbol=SolidLine, double relSize=1, double dir=0)
Constructor.
Symbol symbol() const
Returns line type.
Definition: lineitem.h:86
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Updates position.
void setProperties()
Sets properties according to transformation matrix.
LineItem(const LineItem &a)
Copy constructor.
void update()
Applies changes and forces redrawing.
virtual ~LineItem()
Destructor.
LineItem(const KConfigGroup *plo, unsigned color=0, QGraphicsItem *parent=0)
Constructor.
Vector item class.
Definition: vectoritem.h:34