2021-11-19 14:02:57 +00:00
|
|
|
/******************************************************************************
|
2023-04-06 07:23:37 +00:00
|
|
|
* Copyright (C) 2021 Edelhirsch Software GmbH
|
2023-04-06 08:15:03 +00:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2021-11-19 14:02:57 +00:00
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QskIntervalF.h>
|
|
|
|
|
|
|
|
#include <QSGGeometryNode>
|
2022-03-23 14:39:17 +00:00
|
|
|
#include <QSGFlatColorMaterial>
|
2021-11-19 14:02:57 +00:00
|
|
|
|
2022-03-23 14:39:17 +00:00
|
|
|
class QskArcMetrics;
|
2023-11-28 09:46:03 +00:00
|
|
|
class QskTickmarks;
|
2021-11-19 14:02:57 +00:00
|
|
|
|
|
|
|
class RadialTickmarksNode : public QSGGeometryNode
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
RadialTickmarksNode();
|
|
|
|
~RadialTickmarksNode() override;
|
|
|
|
|
2022-03-23 14:39:17 +00:00
|
|
|
void update( const QColor&, const QRectF&,
|
2023-11-28 09:46:03 +00:00
|
|
|
const QskArcMetrics&, const QskTickmarks&, int lineWidth );
|
2021-11-19 14:02:57 +00:00
|
|
|
|
|
|
|
private:
|
2022-03-23 14:39:17 +00:00
|
|
|
QSGGeometry m_geometry;
|
|
|
|
QSGFlatColorMaterial m_material;
|
|
|
|
|
|
|
|
QRectF m_rect;
|
|
|
|
int m_lineWidth = 0;
|
|
|
|
|
2022-03-25 09:28:06 +00:00
|
|
|
QskHashValue m_hash = 0;
|
2021-11-19 14:02:57 +00:00
|
|
|
};
|