qskinny/examples/iot-dashboard/nodes/DiagramSegmentsNode.h

23 lines
513 B
C
Raw Normal View History

2021-04-16 07:48:43 +00:00
#pragma once
#include <QPolygonF>
#include <QSGFlatColorMaterial>
#include <QSGGeometryNode>
class IdlChartSegmentsNode : public QSGGeometryNode
{
public:
IdlChartSegmentsNode();
void update( const QRectF& rect, const QColor& color, const QVector<QPointF>& dataPoints, int xGridLines );
private:
QSGFlatColorMaterial m_material;
QSGGeometry m_geometry;
QRectF m_rect;
QColor m_color;
QVector<QPointF> m_dataPoints;
int m_xGridLines;
};