21#include <QGraphicsPathItem>
51 QGraphicsItem* parent =
nullptr,
double width = 3,
double height = 3,
52 bool visible =
true,
double start = 0,
double span = 90,
66 QGraphicsItem* parent =
nullptr);
70 inline double dir()
const {
return m_dir; };
72 inline double height()
const {
return m_height; };
115 inline double span()
const {
return m_span; };
117 inline double start()
const {
return m_start; };
121 virtual int type()
const override {
return Type; };
125 inline double width()
const {
return m_width; };
137 double m_width, m_height, m_dir, m_start, m_span, myDashOffset;
void writePlo(KConfigGroup *plo) const
Writes into plot file.
double height() const
Returns height in cm.
Definition arcitem.h:72
@ Type
Specific QGraphicsItem type number of ArcItem for function type().
Definition arcitem.h:32
ArcItem(double x0=0, double y0=0, unsigned color=0, QGraphicsItem *parent=nullptr, double width=3, double height=3, bool visible=true, double start=0, double span=90, Symbol symbol=SolidLine, double relSize=1, double dir=0)
Constructor.
ArcItem(const KConfigGroup *plo, unsigned color=0, QGraphicsItem *parent=nullptr)
Constructor.
void setDir(double dir)
Sets rotation angle.
Definition arcitem.h:81
double dir() const
Returns rotation angle in deg.
Definition arcitem.h:70
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
Updates position.
Symbol symbol() const
Returns line type.
Definition arcitem.h:119
void setDashOffset()
Sets offset for dashed lines.
void setSpan(double span)
Sets arc length.
Definition arcitem.h:103
double start() const
Returns start angle in deg.
Definition arcitem.h:117
virtual int type() const override
Returns specific QGraphicsItem type number.
Definition arcitem.h:121
void update()
Applies changes and forces redrawing.
void setHeight(double height)
Sets height.
Definition arcitem.h:86
void setStart(double start)
Sets start angle.
Definition arcitem.h:108
void setPenWidth()
Sets pen width.
double width() const
Returns width in cm.
Definition arcitem.h:125
double span() const
Returns arc length in deg.
Definition arcitem.h:115
void setProperties()
Sets properties according to transformation matrix.
QPixmap pixmap() const
Returns decoration pixmap for item list.
ArcItem(const ArcItem &a)
Copy constructor.
void setProperties(const QTransform &m)
Sets properties according to transformation matrix.
void setSymbol(Symbol symbol)
Sets line type.
Definition arcitem.h:91
virtual ~ArcItem()
Destructor.
void setWidth(double width)
Sets width.
Definition arcitem.h:113
unsigned color() const
Returns color.
Definition decoitem.h:56
DecoItem(unsigned color=0, double x0=0, double y0=0, double relSize=1)
Constructor.
double y0() const
Returns y position in cm.
Definition decoitem.h:87
double x0() const
Returns x position in cm.
Definition decoitem.h:85
@ Arc
Item with circular or elliptical arc.
Definition kplitem.h:68
Symbol
Symbol types.
Definition kplitem.h:83
@ SolidLine
Solid line.
Definition kplitem.h:102
double relSize() const
Returns relative size of item.
Definition kplitem.h:189