public abstract class DeferredArray3D extends Object
Modifier and Type | Field and Description |
---|---|
protected Object[] |
tiles |
protected int |
tilesize |
Constructor and Description |
---|
DeferredArray3D(int xdim,
int ydim,
int zdim,
int tilesize)
Creates a new instance of DeferredArray3D
|
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
createTile(int tilesize)
Creates a tile.
|
void |
dumpToFile(String path)
Dumps the array content into a textfile.
|
protected abstract String |
getAsString(int x,
int y,
int z)
Returns the data at the requested position represented as a String
|
protected Object |
getTile(int x,
int y,
int z,
boolean create)
Requests the tile for the passed coordinates.
|
int |
getTileSize()
Returns the length of the tile edge.
|
int |
getXLength()
Returns the size of the whole virtual array in X direction
|
int |
getYLength()
Returns the size of the whole virtual array in Y direction
|
int |
getZLength()
Returns the size of the whole virtual array in Z direction
|
protected final int tilesize
protected final Object[] tiles
public DeferredArray3D(int xdim, int ydim, int zdim, int tilesize)
xdim
- Size in X directionydim
- Size in Y directionzdim
- Size in Z directiontilesize
- The tile size - length of an edge tile.public final int getTileSize()
protected final Object getTile(int x, int y, int z, boolean create)
x
- The X indexy
- The Y indexz
- The Z indexcreate
- Determines whether the tile should be created if it has not been allocated yet.public final int getXLength()
public final int getYLength()
public final int getZLength()
public final void dumpToFile(String path)
path
- Path to the file to be created.protected abstract Object createTile(int tilesize)
tilesize
- The tile dimensionprotected abstract String getAsString(int x, int y, int z)
x
- The X indexy
- The Y indexz
- The Z indexCopyright © 2015–2021 Fiji. All rights reserved.