MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / setChannelFillGraph

Method setChannelFillGraph

qcustomplot/qcustomplot.cpp:20211–20229  ·  view source on GitHub ↗

! Sets the target graph for filling the area between this graph and \a targetGraph with the current brush (\ref setBrush). When \a targetGraph is set to 0, a normal graph fill to the zero-value-line will be shown. To disable any filling, set the brush to Qt::NoBrush. \see setBrush */

Source from the content-addressed store, hash-verified

20209 \see setBrush
20210*/
20211void QCPGraph::setChannelFillGraph(QCPGraph *targetGraph)
20212{
20213 // prevent setting channel target to this graph itself:
20214 if (targetGraph == this)
20215 {
20216 qDebug() << Q_FUNC_INFO << "targetGraph is this graph itself";
20217 mChannelFillGraph = 0;
20218 return;
20219 }
20220 // prevent setting channel target to a graph not in the plot:
20221 if (targetGraph && targetGraph->mParentPlot != mParentPlot)
20222 {
20223 qDebug() << Q_FUNC_INFO << "targetGraph not in same plot";
20224 mChannelFillGraph = 0;
20225 return;
20226 }
20227
20228 mChannelFillGraph = targetGraph;
20229}
20230
20231/*!
20232 Sets whether adaptive sampling shall be used when plotting this graph. QCustomPlot's adaptive

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected