Engauge Digitizer
2
Loading...
Searching...
No Matches
Graphics
GraphicsArcItemRelay.h
Go to the documentation of this file.
1
/******************************************************************************************************
2
* (C) 2020 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_ARC_ITEM_RELAY_H
8
#define GRAPHICS_ARC_ITEM_RELAY_H
9
10
#include <QObject>
11
#include <QPointF>
12
13
class
GraphicsArcItem
;
14
21
class
GraphicsArcItemRelay
:
public
QObject
22
{
23
Q_OBJECT;
24
25
public
:
27
GraphicsArcItemRelay
(QObject *caller,
28
GraphicsArcItem
*graphicsItem);
29
virtual
~GraphicsArcItemRelay
();
30
31
public
slots:
32
34
void
slotUpdateAngles
(QPointF posTangentialLow,
35
QPointF posTangentialCenter,
36
QPointF posTangentialHigh,
37
double
widthToHeight,
38
double
scaling);
39
40
private
:
41
GraphicsArcItemRelay
();
42
43
GraphicsArcItem
*m_graphicsItem;
44
45
};
46
47
#endif
// GRAPHICS_ARC_ITEM_RELAY_H
GraphicsArcItemRelay::GraphicsArcItemRelay
GraphicsArcItemRelay(QObject *caller, GraphicsArcItem *graphicsItem)
Single constructor with associated GraphicsArcItem.
Definition
GraphicsArcItemRelay.cpp:19
GraphicsArcItemRelay::slotUpdateAngles
void slotUpdateAngles(QPointF posTangentialLow, QPointF posTangentialCenter, QPointF posTangentialHigh, double widthToHeight, double scaling)
Slot inputs to QGraphicsEllipseItem::setStartAngle and QGraphicsEllipseItem::setSpanAngle.
Definition
GraphicsArcItemRelay.cpp:34
GraphicsArcItemRelay::~GraphicsArcItemRelay
virtual ~GraphicsArcItemRelay()
Definition
GraphicsArcItemRelay.cpp:29
GraphicsArcItem
Draw an arc as an ellipse but without lines from the center to the start and end points.
Definition
GraphicsArcItem.h:20
Generated on
for Engauge Digitizer by
1.14.0