void TransferFunctionFactory::createRgbaSdaData(const ItemVector &_data, float *_rgba, float *_sda) { for (unsigned int i = 0; i < _data.size(); ++i) { _rgba[4 * i] = _data[i].r; _rgba[4 * i + 1] = _data[i].g; _rgba[4 * i + 2] = _data[i].b; _rgba[4 * i + 3] = _data[i].a; _sda[3 * i] = _data[i].s; _sda[3 * i + 1] = _data[i].d; _sda[3 * i + 2] = _data[i].am; } }
/** * Return the number of tasks in the TaskStore * @return The number of tasks in the TaskStore */ gcc_pure size_t Size() const { return store.size(); }