![Uwe Rathmann](/assets/img/avatar_default.png)
commit 547927f937a3260d5b23068f06cd181de9b7c763 Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de> Date: Wed Mar 23 15:38:40 2022 +0100 wip commit ca06b1da4bf9c5b30ef2857f0b6c1e4fb137a64e Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de> Date: Wed Mar 23 15:30:31 2022 +0100 using private classes commit 4977b0afa481039f22b64e7f55262be8053a26c2 Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de> Date: Wed Mar 23 15:18:20 2022 +0100 avoid using private Qt headers in examples
34 lines
818 B
C++
34 lines
818 B
C++
/******************************************************************************
|
|
* 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>
|
|
#include <QSGFlatColorMaterial>
|
|
|
|
class QskArcMetrics;
|
|
class QskScaleTickmarks;
|
|
|
|
class RadialTickmarksNode : public QSGGeometryNode
|
|
{
|
|
public:
|
|
RadialTickmarksNode();
|
|
~RadialTickmarksNode() override;
|
|
|
|
void update( const QColor&, const QRectF&,
|
|
const QskArcMetrics&, const QskScaleTickmarks&, int lineWidth );
|
|
|
|
private:
|
|
QSGGeometry m_geometry;
|
|
QSGFlatColorMaterial m_material;
|
|
|
|
QRectF m_rect;
|
|
int m_lineWidth = 0;
|
|
|
|
uint m_hash = 0;
|
|
};
|