public class VolatileUnsignedShortType extends AbstractVolatileNativeRealType<UnsignedShortType,VolatileUnsignedShortType>
Volatile variant of UnsignedShortType. It uses an
underlying UnsignedShortType that maps into a
VolatileShortAccess.| Modifier and Type | Field and Description |
|---|---|
protected NativeImg<?,? extends VolatileShortAccess> |
img |
| Constructor and Description |
|---|
VolatileUnsignedShortType() |
VolatileUnsignedShortType(int value) |
VolatileUnsignedShortType(NativeImg<?,? extends VolatileShortAccess> img) |
VolatileUnsignedShortType(VolatileShortAccess access) |
| Modifier and Type | Method and Description |
|---|---|
VolatileUnsignedShortType |
copy()
|
VolatileUnsignedShortType |
createVariable()
Creates a new
Type variable which can only store one value. |
VolatileUnsignedShortType |
duplicateTypeOnSameNativeImg()
Creates a new
NativeType which stores in the same physical array. |
NativeTypeFactory<VolatileUnsignedShortType,?> |
getNativeTypeFactory() |
void |
set(int value) |
void |
updateContainer(Object c)
This method is used by an accessor (e.g., a
Cursor) to request an
update of the current data array. |
getEntitiesPerPixel, indexadd, compareTo, complexConjugate, dec, div, equals, getBitsPerPixel, getImaginaryDouble, getImaginaryFloat, getMaxValue, getMinIncrement, getMinValue, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, getRealDouble, getRealFloat, hashCode, inc, mul, mul, mul, pow, pow, set, setComplexNumber, setComplexNumber, setImaginary, setImaginary, setOne, setReal, setReal, setZero, sub, valueEqualsclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdecIndex, decIndex, getIndex, incIndex, incIndex, updateIndexvalueEqualsprotected final NativeImg<?,? extends VolatileShortAccess> img
public VolatileUnsignedShortType(NativeImg<?,? extends VolatileShortAccess> img)
public VolatileUnsignedShortType(VolatileShortAccess access)
public VolatileUnsignedShortType(int value)
public VolatileUnsignedShortType()
public void set(int value)
public void updateContainer(Object c)
NativeTypeCursor) to request an
update of the current data array.
As an example consider a CellCursor moving on a CellImg.
The cursor maintains a NativeType which provides access to the
image data. When the cursor moves from one cell to the next, the
underlying data array of the NativeType must be switched to the
data array of the new cell.
To achieve this, the CellCursor calls updateContainer()
with itself as the argument. updateContainer() in turn will call
NativeImg.update(Object) on it's container, passing along the
reference to the cursor. In this example, the container would be a
CellImg. While the NativeType does not know about the
type of the cursor, the container does. CellImg knows that it is
passed a CellCursor instance, which can be used to figure out the
current cell and the underlying data array, which is then returned to the
NativeType.
The idea behind this concept is maybe not obvious. The NativeType
knows which basic type is used (float, int, byte, ...). However, it does
not know how the data is stored (ArrayImg, CellImg, ...).
This prevents the need for multiple implementations of NativeType
.
c - reference to an accessor which can be passed on to the
container (which will know what to do with it).public VolatileUnsignedShortType duplicateTypeOnSameNativeImg()
NativeTypeNativeType which stores in the same physical array.
This is only used internally.NativeType instance working on the same
NativeImgpublic VolatileUnsignedShortType createVariable()
TypeType variable which can only store one value.Type variablepublic VolatileUnsignedShortType copy()
TypeType variablepublic NativeTypeFactory<VolatileUnsignedShortType,?> getNativeTypeFactory()
Copyright © 2015–2022 ImgLib2. All rights reserved.