Engauge Digitizer 2
Loading...
Searching...
No Matches
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
13class GraphicsArcItem;
14
21class GraphicsArcItemRelay : public QObject
22{
23 Q_OBJECT;
24
25public:
27 GraphicsArcItemRelay(QObject *caller,
28 GraphicsArcItem *graphicsItem);
29 virtual ~GraphicsArcItemRelay();
30
31public slots:
32
34 void slotUpdateAngles (QPointF posTangentialLow,
35 QPointF posTangentialCenter,
36 QPointF posTangentialHigh,
37 double widthToHeight,
38 double scaling);
39
40private:
42
43 GraphicsArcItem *m_graphicsItem;
44
45};
46
47#endif // GRAPHICS_ARC_ITEM_RELAY_H
GraphicsArcItemRelay(QObject *caller, GraphicsArcItem *graphicsItem)
Single constructor with associated GraphicsArcItem.
void slotUpdateAngles(QPointF posTangentialLow, QPointF posTangentialCenter, QPointF posTangentialHigh, double widthToHeight, double scaling)
Slot inputs to QGraphicsEllipseItem::setStartAngle and QGraphicsEllipseItem::setSpanAngle.
Draw an arc as an ellipse but without lines from the center to the start and end points.