2021-11-19 15:02:57 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
|
|
* This file may be used under the terms of the 3-clause BSD License
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QskIntervalF.h>
|
|
|
|
|
|
|
|
#include <QSGGeometryNode>
|
2022-03-23 15:39:17 +01:00
|
|
|
#include <QSGFlatColorMaterial>
|
2021-11-19 15:02:57 +01:00
|
|
|
|
2022-03-23 15:39:17 +01:00
|
|
|
class QskArcMetrics;
|
|
|
|
class QskScaleTickmarks;
|
2021-11-19 15:02:57 +01:00
|
|
|
|
|
|
|
class RadialTickmarksNode : public QSGGeometryNode
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
RadialTickmarksNode();
|
|
|
|
~RadialTickmarksNode() override;
|
|
|
|
|
2022-03-23 15:39:17 +01:00
|
|
|
void update( const QColor&, const QRectF&,
|
|
|
|
const QskArcMetrics&, const QskScaleTickmarks&, int lineWidth );
|
2021-11-19 15:02:57 +01:00
|
|
|
|
|
|
|
private:
|
2022-03-23 15:39:17 +01:00
|
|
|
QSGGeometry m_geometry;
|
|
|
|
QSGFlatColorMaterial m_material;
|
|
|
|
|
|
|
|
QRectF m_rect;
|
|
|
|
int m_lineWidth = 0;
|
|
|
|
|
2022-03-25 10:28:06 +01:00
|
|
|
QskHashValue m_hash = 0;
|
2021-11-19 15:02:57 +01:00
|
|
|
};
|