S - primitive array type of image data, e.g. short[].public class TileAccess<S> extends Object
ResolutionLevel3D source to an UploadBuffer.
This class is not thread-safe. Use TileAccess.Cache to keep cached instances per thread.
| Modifier and Type | Class and Description |
|---|---|
static class |
TileAccess.Cache
Thread-local weak cache for
TileAccess to avoid creating too many of them. |
| Constructor and Description |
|---|
TileAccess(GridDataAccess<S> dataAccess,
CopySubArray<S,ByteUtils.Address> copySubArray,
CacheSpec cacheSpec) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLoadCompletely(int[] gridPos,
boolean failfast) |
boolean |
canLoadPartially(int[] gridPos) |
static net.imglib2.type.PrimitiveType |
getPrimitiveType(Object type) |
static boolean |
isSupportedType(Object type) |
boolean |
loadTile(int[] gridPos,
UploadBuffer buffer)
Load data for the tile at
gridPos into buffer. |
public TileAccess(GridDataAccess<S> dataAccess, CopySubArray<S,ByteUtils.Address> copySubArray, CacheSpec cacheSpec)
public boolean canLoadCompletely(int[] gridPos,
boolean failfast)
public boolean canLoadPartially(int[] gridPos)
public boolean loadTile(int[] gridPos,
UploadBuffer buffer)
gridPos into buffer.
The tile is a padded block according to the CacheSpec.public static boolean isSupportedType(Object type)
public static net.imglib2.type.PrimitiveType getPrimitiveType(Object type)
Copyright © 2018–2025 BigDataViewer. All rights reserved.