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

Method alpha

qcustomplot/qcustomplot.cpp:25146–25152  ·  view source on GitHub ↗

! Returns the alpha map value of the cell with the indices \a keyIndex and \a valueIndex. If this color map data doesn't have an alpha map (because \ref setAlpha was never called after creation or after a call to \ref clearAlpha), returns 255, which corresponds to full opacity. \see setAlpha */

Source from the content-addressed store, hash-verified

25144 \see setAlpha
25145*/
25146unsigned char QCPColorMapData::alpha(int keyIndex, int valueIndex)
25147{
25148 if (mAlpha && keyIndex >= 0 && keyIndex < mKeySize && valueIndex >= 0 && valueIndex < mValueSize)
25149 return mAlpha[valueIndex*mKeySize + keyIndex];
25150 else
25151 return 255;
25152}
25153
25154/*!
25155 Resizes the data array to have \a keySize cells in the key dimension and \a valueSize cells in

Callers 10

savePdfMethod · 0.80
stopsUseAlphaMethod · 0.80
updateColorBufferMethod · 0.80
drawFillMethod · 0.80
drawLinePlotMethod · 0.80
drawImpulsePlotMethod · 0.80
drawMethod · 0.80
drawCurveLineMethod · 0.80
selectTestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected