Engauge Digitizer 2
Loading...
Searching...
No Matches
GraphicsPointEllipse.h
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef GRAPHICS_POINT_ELLIPSE_H
8#define GRAPHICS_POINT_ELLIPSE_H
9
10#include <QGraphicsEllipseItem>
11#include <QPointF>
12
13class GraphicsPoint;
14
16class GraphicsPointEllipse : public QGraphicsEllipseItem
17{
18public:
21 const QRect &rect);
22
24 QVariant itemChange(GraphicsItemChange change, const QVariant &value);
26 void setRadius(int radius);
27
28private:
30
31 // Reference to the GraphicsPoint that this class belongs to
32 GraphicsPoint &m_graphicsPoint;
33};
34
35#endif // GRAPHICS_POINT_ELLIPSE_H
This class add event handling to QGraphicsEllipseItem.
QVariant itemChange(GraphicsItemChange change, const QVariant &value)
Intercept moves by dragging so moved items can be identified. This replaces unreliable hit tests.
void setRadius(int radius)
Update the radius.
Graphics item for drawing a circular or polygonal Point.