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

Method data

qcustomplot/qcustomplot.cpp:25119–25127  ·  view source on GitHub ↗

undocumented getter */

Source from the content-addressed store, hash-verified

25117
25118/* undocumented getter */
25119double QCPColorMapData::data(double key, double value)
25120{
25121 int keyCell = (key-mKeyRange.lower)/(mKeyRange.upper-mKeyRange.lower)*(mKeySize-1)+0.5;
25122 int valueCell = (value-mValueRange.lower)/(mValueRange.upper-mValueRange.lower)*(mValueSize-1)+0.5;
25123 if (keyCell >= 0 && keyCell < mKeySize && valueCell >= 0 && valueCell < mValueSize)
25124 return mData[valueCell*mKeySize + keyCell];
25125 else
25126 return 0;
25127}
25128
25129/* undocumented getter */
25130double QCPColorMapData::cell(int keyIndex, int valueIndex)

Callers 15

readDataMethod · 0.80
startPaintingMethod · 0.80
clearMethod · 0.80
reallocateBufferMethod · 0.80
setModeMethod · 0.80
drawToPaintBufferMethod · 0.80
replotMethod · 0.80
addChildMethod · 0.80
removeChildMethod · 0.80
realVisibilityMethod · 0.80
coordsToPixelsMethod · 0.80
pixelsToCoordsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected