MCPcopy Create free account
hub / github.com/collin80/SavvyCAN / colorMaps

Method colorMaps

qcustomplot.cpp:19617–19627  ·  view source on GitHub ↗

! Returns a list of all the color maps associated with this color scale. */

Source from the content-addressed store, hash-verified

19615 Returns a list of all the color maps associated with this color scale.
19616*/
19617QList<QCPColorMap*> QCPColorScale::colorMaps() const
19618{
19619 QList<QCPColorMap*> result;
19620 for (int i=0; i<mParentPlot->plottableCount(); ++i)
19621 {
19622 if (QCPColorMap *cm = qobject_cast<QCPColorMap*>(mParentPlot->plottable(i)))
19623 if (cm->colorScale() == this)
19624 result.append(cm);
19625 }
19626 return result;
19627}
19628
19629/*!
19630 Changes the data range such that all color maps associated with this color scale are fully mapped

Callers

nothing calls this directly

Calls 3

plottableCountMethod · 0.80
plottableMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected