Engauge Digitizer
2
Loading...
Searching...
No Matches
Graphics
GraphicsPointPolygon.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_POLYGON_H
8
#define GRAPHICS_POINT_POLYGON_H
9
10
#include <QGraphicsPolygonItem>
11
#include <QPointF>
12
13
class
GraphicsPoint
;
14
16
class
GraphicsPointPolygon
:
public
QGraphicsPolygonItem
17
{
18
public
:
20
GraphicsPointPolygon
(
GraphicsPoint
&graphicsPoint,
21
const
QPolygonF &polygon);
22
24
QVariant
itemChange
(GraphicsItemChange change,
const
QVariant &value);
25
27
void
setRadius
(
int
radius);
28
29
private
:
30
GraphicsPointPolygon
();
31
32
// Reference to the GraphicsPoint that this class belongs to
33
GraphicsPoint
&m_graphicsPoint;
34
};
35
36
#endif
// GRAPHICS_POINT_POLYGON_H
GraphicsPointPolygon
This class add event handling to QGraphicsPolygonItem.
Definition
GraphicsPointPolygon.h:17
GraphicsPointPolygon::setRadius
void setRadius(int radius)
Update the radius.
Definition
GraphicsPointPolygon.cpp:39
GraphicsPointPolygon::itemChange
QVariant itemChange(GraphicsItemChange change, const QVariant &value)
Intercept moves by dragging so moved items can be identified. This replaces unreliable hit tests.
Definition
GraphicsPointPolygon.cpp:23
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