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