! 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 */
| 25428 | \see setAlpha |
| 25429 | */ |
| 25430 | void 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 |
nothing calls this directly
no outgoing calls
no test coverage detected