Engauge Digitizer
2
Loading...
Searching...
No Matches
Graphics
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
13
class
GraphicsPoint
;
14
16
class
GraphicsPointEllipse
:
public
QGraphicsEllipseItem
17
{
18
public
:
20
GraphicsPointEllipse
(
GraphicsPoint
&graphicsPoint,
21
const
QRect &rect);
22
24
QVariant
itemChange
(GraphicsItemChange change,
const
QVariant &value);
26
void
setRadius
(
int
radius);
27
28
private
:
29
GraphicsPointEllipse
();
30
31
// Reference to the GraphicsPoint that this class belongs to
32
GraphicsPoint
&m_graphicsPoint;
33
};
34
35
#endif
// GRAPHICS_POINT_ELLIPSE_H
GraphicsPointEllipse
This class add event handling to QGraphicsEllipseItem.
Definition
GraphicsPointEllipse.h:17
GraphicsPointEllipse::itemChange
QVariant itemChange(GraphicsItemChange change, const QVariant &value)
Intercept moves by dragging so moved items can be identified. This replaces unreliable hit tests.
Definition
GraphicsPointEllipse.cpp:22
GraphicsPointEllipse::setRadius
void setRadius(int radius)
Update the radius.
Definition
GraphicsPointEllipse.cpp:38
GraphicsPoint
Graphics item for drawing a circular or polygonal Point.
Definition
GraphicsPoint.h:40
Generated on Mon Jan 8 2024 05:59:45 for Engauge Digitizer by
1.9.8