MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / getLevelTiles

Method getLevelTiles

ASAP/TileManager.cpp:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63QPoint TileManager::getLevelTiles(unsigned int level) {
64 if (level < _levelDimensions.size()) {
65 std::vector<unsigned long long> dims = _levelDimensions[level];
66 return QPoint(std::ceil(dims[0] / static_cast<float>(_tileSize)), std::ceil(dims[1] / static_cast<float>(_tileSize)));
67 }
68 else {
69 return QPoint();
70 }
71}
72
73void TileManager::loadAllTilesForLevel(unsigned int level) {
74 if (_ioThread) {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected