public interface ICacheStrategy extends CacheReporter
ICacheSource
, it works with multidimensional (N-D) position arrays
rather than rasterized (1-D) indices. The two are made equivalent via a
mapping between the two, invoked within Cache
as needed.Modifier and Type | Field and Description |
---|---|
static int |
BACKWARD_ORDER |
static int |
CENTERED_ORDER |
static int |
FORWARD_ORDER |
static int |
HIGH_PRIORITY |
static int |
LOW_PRIORITY |
static int |
MAX_PRIORITY |
static int |
MIN_PRIORITY |
static int |
NORMAL_PRIORITY |
Modifier and Type | Method and Description |
---|---|
int[] |
getLengths()
Gets the lengths of all the axes.
|
int[][] |
getLoadList(int[] pos)
Gets the indices of the objects to cache,
surrounding the object at the given position.
|
int[] |
getOrder()
Retrieves the order in which objects should be loaded along each axis.
|
int[] |
getPriorities()
Retrieves the priority for caching each axis.
|
int[] |
getRange()
Retrieves the number of objects to cache along each axis.
|
void |
setOrder(int order,
int axis)
Sets the order in which objects should be loaded along each axis.
|
void |
setPriority(int priority,
int axis)
Sets the priority for caching the given axis.
|
void |
setRange(int num,
int axis)
Sets the number of objects to cache along the given axis.
|
addCacheListener, getCacheListeners, removeCacheListener
static final int MIN_PRIORITY
static final int LOW_PRIORITY
static final int NORMAL_PRIORITY
static final int HIGH_PRIORITY
static final int MAX_PRIORITY
static final int CENTERED_ORDER
static final int FORWARD_ORDER
static final int BACKWARD_ORDER
int[][] getLoadList(int[] pos) throws CacheException
CacheException
int[] getPriorities()
void setPriority(int priority, int axis)
int[] getOrder()
void setOrder(int order, int axis)
order
- One of:axis
- The axis for which to set the order.int[] getRange()
void setRange(int num, int axis)
int[] getLengths()
Copyright © 2021 Open Microscopy Environment