| 419 | } |
| 420 | |
| 421 | void DescriptionEditService::randomizeCellColors(ClusteredDataDescription& data, std::vector<int> const& colorCodes) |
| 422 | { |
| 423 | for (auto& cluster : data.clusters) { |
| 424 | auto newColor = colorCodes[NumberGenerator::get().getRandomInt(toInt(colorCodes.size()))]; |
| 425 | for (auto& cell : cluster.cells) { |
| 426 | cell.color = newColor; |
| 427 | } |
| 428 | } |
| 429 | } |
| 430 | |
| 431 | namespace |
| 432 | { |
no test coverage detected