A - access typepublic class CreateInvalidVolatileCell<A> extends Object implements net.imglib2.cache.volatiles.CreateInvalid<Long,net.imglib2.img.cell.Cell<A>>
CreateInvalid that produces empty cells of
VolatileArrayDataAccess type A, with the correct dimensions,
etc.
The same VolatileArrayDataAccess is re-used for many cells. If a Cell
needs a bigger access, we allocate a new one and then re-use that, and so on.
Usually, CreateInvalidVolatileCell should be created through static
helper methods
get(CellGrid, Fraction, PrimitiveType, boolean) or
get(CellGrid, NativeType, boolean) to get the desired
primitive type and dirty variant.
| Constructor and Description |
|---|
CreateInvalidVolatileCell(net.imglib2.img.cell.CellGrid grid,
net.imglib2.util.Fraction entitiesPerPixel,
EmptyArrayCreator<A> creator) |
| Modifier and Type | Method and Description |
|---|---|
net.imglib2.img.cell.Cell<A> |
createInvalid(Long key) |
static <A extends net.imglib2.img.basictypeaccess.volatiles.VolatileArrayDataAccess<A>> |
get(net.imglib2.img.cell.CellGrid grid,
net.imglib2.util.Fraction entitiesPerPixel,
net.imglib2.type.PrimitiveType primitiveType,
boolean dirty) |
static <T extends net.imglib2.type.NativeType<T>,A extends net.imglib2.img.basictypeaccess.volatiles.VolatileArrayDataAccess<A>> |
get(net.imglib2.img.cell.CellGrid grid,
T type,
boolean dirty) |
public CreateInvalidVolatileCell(net.imglib2.img.cell.CellGrid grid, net.imglib2.util.Fraction entitiesPerPixel, EmptyArrayCreator<A> creator)
public net.imglib2.img.cell.Cell<A> createInvalid(Long key) throws Exception
createInvalid in interface net.imglib2.cache.volatiles.CreateInvalid<Long,net.imglib2.img.cell.Cell<A>>Exceptionpublic static <T extends net.imglib2.type.NativeType<T>,A extends net.imglib2.img.basictypeaccess.volatiles.VolatileArrayDataAccess<A>> CreateInvalidVolatileCell<A> get(net.imglib2.img.cell.CellGrid grid, T type, boolean dirty) throws IllegalArgumentException
IllegalArgumentExceptionpublic static <A extends net.imglib2.img.basictypeaccess.volatiles.VolatileArrayDataAccess<A>> CreateInvalidVolatileCell<A> get(net.imglib2.img.cell.CellGrid grid, net.imglib2.util.Fraction entitiesPerPixel, net.imglib2.type.PrimitiveType primitiveType, boolean dirty) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2012–2025 BigDataViewer. All rights reserved.