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

Method fillAlpha

qcustomplot.cpp:25430–25439  ·  view source on GitHub ↗

! Sets the opacity of all color map cells to \a alpha. A value of 0 for \a alpha results in a fully transparent color map, and a value of 255 results in a fully opaque color map. If you wish to restore opacity to 100% and free any used memory for the alpha map, rather use \ref clearAlpha. \see setAlpha */

Source from the content-addressed store, hash-verified

25428 \see setAlpha
25429*/
25430void QCPColorMapData::fillAlpha(unsigned char alpha)
25431{
25432 if (mAlpha || createAlpha(false))
25433 {
25434 const int dataCount = mValueSize*mKeySize;
25435 for (int i=0; i<dataCount; ++i)
25436 mAlpha[i] = alpha;
25437 mDataModified = true;
25438 }
25439}
25440
25441/*!
25442 Transforms plot coordinates given by \a key and \a value to cell indices of this QCPColorMapData

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected