#pragma once #include #include #include class IdlChartSegmentsNode : public QSGGeometryNode { public: IdlChartSegmentsNode(); void update( const QRectF& rect, const QColor& color, const QVector< QVector >& dataPoints, int xGridLines ); private: QSGFlatColorMaterial m_material; QSGGeometry m_geometry; QRectF m_rect; QColor m_color; QVector< QVector > m_dataPoints; int m_xGridLines; };