21#include <QGraphicsEllipseItem>
32 enum {Type = UserType + Ellipse
52 QGraphicsItem* parent =
nullptr,
double width = 3,
53 double height = 2,
bool visible =
true,
55 double relSize = 1,
double dir = 0);
68 QGraphicsItem* parent =
nullptr);
72 inline double dir()
const {
return m_dir; };
76 inline double height()
const {
return m_height; };
83 inline void setDir(
double dir) { m_dir = dir; };
93 inline void setHeight(
double height) { m_height = height; };
110 inline void setWidth(
double width) { m_width = width; };
114 virtual int type()
const override {
return Type; };
118 inline double width()
const {
return m_width; };
131 double m_width, m_height, m_dir;
Decoration item class.
Definition decoitem.h:36
Ellipse item class.
Definition ellipseitem.h:29
void setDir(double dir)
Sets rotation angle.
Definition ellipseitem.h:83
EllipseItem(double x0=0, double y0=0, unsigned color=0, QGraphicsItem *parent=nullptr, double width=3, double height=2, bool visible=true, FillStyle fillStyle=NoBrush, Symbol symbol=SolidLine, double relSize=1, double dir=0)
Constructor.
double width() const
Returns width in cm.
Definition ellipseitem.h:118
void setFillStyle(FillStyle style)
Sets fill style.
Definition ellipseitem.h:88
EllipseItem(const EllipseItem &a)
Copy constructor.
void writePlo(KConfigGroup *plo) const
Writes into plot file.
double dir() const
Returns rotation angle in deg.
Definition ellipseitem.h:72
void setWidth(double width)
Sets width.
Definition ellipseitem.h:110
FillStyle fillStyle() const
Returns fill style.
Definition ellipseitem.h:74
EllipseItem(const KConfigGroup *plo, unsigned color=0, QGraphicsItem *parent=nullptr)
Constructor.
void setSymbol(Symbol symbol)
Sets line type.
Definition ellipseitem.h:105
double height() const
Returns height in cm.
Definition ellipseitem.h:76
virtual ~EllipseItem()
Destructor.
void setHeight(double height)
Sets height.
Definition ellipseitem.h:93
QPixmap pixmap() const
Returns decoration pixmap for item list.
void update()
Applies changes and forces redrawing.
void setProperties(const QTransform &m)
Sets properties according to transformation matrix.
void setPenWidth()
Sets pen width.
Symbol symbol() const
Returns line type.
Definition ellipseitem.h:112
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
Updates position.
void setProperties()
Sets properties according to transformation matrix.
virtual int type() const override
Returns specific QGraphicsItem type number.
Definition ellipseitem.h:114
FillStyle
Fill styles.
Definition kplitem.h:45
Symbol
Symbol types.
Definition kplitem.h:83