Class QAccelPlot::GridNode¶
ClassList > QAccelPlot > GridNode
Internal QSGNode responsible for rendering the plot grid into the scene graph. More...
#include <GridNode.hpp>
Inherits the following classes: QSGNode
Inheritance diagram¶
flowchart TB
classQAccelPlot_1_1GridNode["QAccelPlot::GridNode"]
external_base_classQAccelPlot_1_1GridNode_1["QSGNode"]
external_base_classQAccelPlot_1_1GridNode_1 --> classQAccelPlot_1_1GridNode
Public Functions¶
| Type | Name |
|---|---|
| GridNode () Constructs a GridNode with empty sub-grid and main grid children. |
|
| void | update (const Grid * grid, const Axis * xAxis, const Axis * yAxis, const QRectF & plotRect) Recomputes and updates all grid geometry from the supplied configuration objects. |
Detailed Description¶
Draws grid lines at the tick values from AxisTickPainter::computeTickValues(), the same values the axis places its tick marks at, so both stay aligned under all zoom levels, including log scale.
Keeps two child geometry nodes, sub-grid first and main grid second, for its whole lifetime and updates them in place. A hidden layer keeps its node with no vertices. Adding or removing nodes would make the Qt Quick renderer rebuild all batches and re-upload every series' vertex data.
Public Functions Documentation¶
function GridNode¶
Constructs a GridNode with empty sub-grid and main grid children.
function update¶
Recomputes and updates all grid geometry from the supplied configuration objects.
void QAccelPlot::GridNode::update (
const Grid * grid,
const Axis * xAxis,
const Axis * yAxis,
const QRectF & plotRect
)
Parameters:
gridGrid configuration (line widths, visibility flags, colors).xAxisHorizontal axis used to determine column positions.yAxisVertical axis used to determine row positions.plotRectPlot area rectangle in item-local pixel coordinates.
The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/grid/GridNode.hpp