Skip to content

Commit

Permalink
reverting some changes that were made for single-level octtree stacks
Browse files Browse the repository at this point in the history
  • Loading branch information
porterbot committed Apr 23, 2021
1 parent 3ee396e commit 5dd7105
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ private KtxHeader loadKtxHeader(KtxOctreeBlockTileKey octreeRootKey) {
private KtxOctreeResolution getKtxResolution(KtxHeader ktxHeader) {
// Parse maximum resolution
int maxRes = Integer.parseInt(ktxHeader.keyValueMetadata.get("multiscale_total_levels").trim()) - 1;
if (maxRes==0)
maxRes = 1;
return new KtxOctreeResolution(maxRes);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class OctreeDisplayBlockChooser implements BlockChooser<KtxOctreeBlockTil

private void initBlockSizes(KtxOctreeBlockTileSource source, Vantage vantage) {
int numLevels = (int)source.getZoomLevels();
for (int i=1; i<numLevels; i++) {
for (int i=2; i<numLevels; i++) {
float blockHeight = source.getBlockSize(new KtxOctreeResolution(i)).getY();
zoomLevels.add((float)(blockHeight * BLOCK_WIDTH_ACROSS_VIEWPORT));
LOG.info("ZOOM LEVEL {} is {}",i,(float)(blockHeight * BLOCK_WIDTH_ACROSS_VIEWPORT));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public void volumeLoaded(URL url) {
// Initialize pre-fetchers
minResPreFetcher.setLoadAdapter(sharedVolumeImage.getLoadAdapter());
futurePreFetcher.setLoadAdapter(sharedVolumeImage.getLoadAdapter());
//clearCache();
clearCache();
refreshCurrentTileSet();
}

Expand Down

0 comments on commit 5dd7105

Please sign in to comment.