21 #include <QGraphicsPathItem>
32 enum {Type = UserType + Arc
50 ArcItem(
double x0 = 0,
double y0 = 0,
unsigned color = 0,
51 QGraphicsItem* parent = 0,
double width = 3,
double height = 3,
52 bool visible =
true,
double start = 0,
double span = 90,
53 Symbol symbol = SolidLine,
double relSize = 1,
double dir = 0);
65 ArcItem(
const KConfigGroup* plo,
unsigned color = 0,
66 QGraphicsItem* parent = 0);
70 inline double dir()
const {
return m_dir; };
72 inline double height()
const {
return m_height; };
81 inline void setDir(
double dir) { m_dir = dir; };
86 inline void setHeight(
double height) { m_height = height; };
91 inline void setSymbol(Symbol symbol) { m_symbol = symbol; };
98 void setProperties(
const QTransform& m);
103 inline void setSpan(
double span) { m_span = span; };
108 inline void setStart(
double start) { m_start = start; };
113 inline void setWidth(
double width) { m_width = width; };
115 inline double span()
const {
return m_span; };
117 inline double start()
const {
return m_start; };
119 inline Symbol symbol()
const {
return m_symbol; };
121 virtual int type()
const {
return Type; };
125 inline double width()
const {
return m_width; };
134 virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event);
136 void setProperties();
137 double m_width, m_height, m_dir, m_start, m_span, myDashOffset;