public class FloatLongAccessType extends AbstractRealType<FloatLongAccessType> implements NativeLongAccessType<FloatLongAccessType>
| Modifier and Type | Field and Description |
|---|---|
protected FloatLongAccess |
dataAccess |
protected NativeLongAccessImg<?,? extends FloatLongAccess> |
img |
| Constructor and Description |
|---|
FloatLongAccessType() |
FloatLongAccessType(double value) |
FloatLongAccessType(FloatLongAccess access) |
FloatLongAccessType(NativeLongAccessImg<?,? extends FloatLongAccess> doubleStorage) |
| Modifier and Type | Method and Description |
|---|---|
FloatLongAccessType |
copy()
|
NativeLongAccessImg<FloatLongAccessType,? extends FloatLongAccess> |
createSuitableNativeImg(NativeLongAccessImgFactory<FloatLongAccessType> storageFactory,
long[] dim)
The
NativeLongAccessType creates the NativeLongAccessImg
used for storing image data; based on the given storage strategy and its
size. |
FloatLongAccessType |
createVariable()
Creates a new
Type variable which can only store one value. |
void |
decIndex() |
void |
decIndex(long decrement)
Decrease the index into the current data array by
decrement
steps. |
FloatLongAccessType |
duplicateTypeOnSameNativeImg()
Creates a new
NativeType which stores in the same physical array. |
float |
get() |
int |
getBitsPerPixel() |
Fraction |
getEntitiesPerPixel()
Get the number of entities in the storage array required to store one
pixel value.
|
long |
getIndexLong()
Get the current index into the current data array.
|
double |
getMaxValue() |
double |
getMinIncrement() |
double |
getMinValue() |
NativeLongAccessTypeFactory<FloatLongAccessType,?> |
getNativeLongAccessTypeFactory() |
double |
getRealDouble() |
float |
getRealFloat() |
void |
incIndex() |
void |
incIndex(long increment)
Increases the index into the current data array by
increment
steps. |
void |
set(double f) |
void |
set(float f) |
void |
setReal(double real) |
void |
setReal(float real) |
void |
updateContainer(Object c) |
void |
updateIndex(long k)
Set the index into the current data array.
|
boolean |
valueEquals(FloatLongAccessType t) |
add, compareTo, dec, div, equals, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, hashCode, inc, mul, mul, mul, pow, pow, set, setImaginary, setImaginary, setOne, setZero, sub, toStringcomplexConjugate, setComplexNumber, setComplexNumberclone, finalize, getClass, notify, notifyAll, wait, wait, waitcomplexConjugate, setComplexNumber, setComplexNumberprotected final NativeLongAccessImg<?,? extends FloatLongAccess> img
protected FloatLongAccess dataAccess
public FloatLongAccessType(NativeLongAccessImg<?,? extends FloatLongAccess> doubleStorage)
public FloatLongAccessType(double value)
public FloatLongAccessType(FloatLongAccess access)
public FloatLongAccessType()
public NativeLongAccessImg<FloatLongAccessType,? extends FloatLongAccess> createSuitableNativeImg(NativeLongAccessImgFactory<FloatLongAccessType> storageFactory, long[] dim)
NativeLongAccessTypeNativeLongAccessType creates the NativeLongAccessImg
used for storing image data; based on the given storage strategy and its
size. It basically only decides here which BasicType it uses (float, int,
byte, bit, ...) and how many entities per pixel it needs (e.g. 2 floats
per pixel for a complex number). This enables the separation of
containers and the basic types.createSuitableNativeImg in interface NativeLongAccessType<FloatLongAccessType>storageFactory - which storage strategy is useddim - the dimensionsNativeLongAccessImg where only the
Type knows the BasicType it contains.public void updateContainer(Object c)
updateContainer in interface NativeLongAccessType<FloatLongAccessType>public FloatLongAccessType duplicateTypeOnSameNativeImg()
NativeLongAccessTypeNativeType which stores in the same physical array.
This is only used internally.duplicateTypeOnSameNativeImg in interface NativeLongAccessType<FloatLongAccessType>NativeType instance working on the same
NativeImgpublic float get()
public void set(float f)
public void set(double f)
public float getRealFloat()
getRealFloat in interface ComplexType<FloatLongAccessType>public double getRealDouble()
getRealDouble in interface ComplexType<FloatLongAccessType>public void setReal(float real)
setReal in interface ComplexType<FloatLongAccessType>public void setReal(double real)
setReal in interface ComplexType<FloatLongAccessType>public double getMaxValue()
getMaxValue in interface RealType<FloatLongAccessType>public double getMinValue()
getMinValue in interface RealType<FloatLongAccessType>public double getMinIncrement()
getMinIncrement in interface RealType<FloatLongAccessType>public FloatLongAccessType createVariable()
TypeType variable which can only store one value.createVariable in interface Type<FloatLongAccessType>Type variablepublic FloatLongAccessType copy()
Typecopy in interface Type<FloatLongAccessType>Type variablepublic Fraction getEntitiesPerPixel()
NativeLongAccessTypegetEntitiesPerPixel in interface NativeLongAccessType<FloatLongAccessType>public void incIndex()
incIndex in interface NativeLongAccessType<FloatLongAccessType>public void decIndex()
decIndex in interface NativeLongAccessType<FloatLongAccessType>public int getBitsPerPixel()
getBitsPerPixel in interface RealType<FloatLongAccessType>public boolean valueEquals(FloatLongAccessType t)
valueEquals in interface ValueEquals<FloatLongAccessType>valueEquals in class AbstractRealType<FloatLongAccessType>public void updateIndex(long k)
NativeLongAccessType
This is used by accessors (e.g., a Cursor) to position the
NativeLongAccessType in the container.
updateIndex in interface NativeLongAccessType<FloatLongAccessType>k - the new array indexpublic long getIndexLong()
NativeLongAccessType
This is used by accessors (e.g., a Cursor) to position the
NativeLongAccessType in the container.
getIndexLong in interface NativeLongAccessType<FloatLongAccessType>public void incIndex(long increment)
NativeLongAccessTypeincrement
steps.
This is used by accessors (e.g., a Cursor) to position the
NativeLongAccessType in the container.
incIndex in interface NativeLongAccessType<FloatLongAccessType>increment - how many stepspublic void decIndex(long decrement)
NativeLongAccessTypedecrement
steps.
This is used by accessors (e.g., a Cursor) to position the
NativeLongAccessType in the container.
decIndex in interface NativeLongAccessType<FloatLongAccessType>decrement - how many stepspublic NativeLongAccessTypeFactory<FloatLongAccessType,?> getNativeLongAccessTypeFactory()
getNativeLongAccessTypeFactory in interface NativeLongAccessType<FloatLongAccessType>Copyright © 2015–2022 ImgLib2. All rights reserved.