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, toString
complexConjugate, setComplexNumber, setComplexNumber
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
complexConjugate, setComplexNumber, setComplexNumber
protected 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)
NativeLongAccessType
NativeLongAccessType
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()
NativeLongAccessType
NativeType
which stores in the same physical array.
This is only used internally.duplicateTypeOnSameNativeImg
in interface NativeLongAccessType<FloatLongAccessType>
NativeType
instance working on the same
NativeImg
public 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()
Type
Type
variable which can only store one value.createVariable
in interface Type<FloatLongAccessType>
Type
variablepublic FloatLongAccessType copy()
Type
copy
in interface Type<FloatLongAccessType>
Type
variablepublic Fraction getEntitiesPerPixel()
NativeLongAccessType
getEntitiesPerPixel
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)
NativeLongAccessType
increment
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)
NativeLongAccessType
decrement
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.