public class DoubleLongAccessType extends AbstractRealType<DoubleLongAccessType> implements NativeLongAccessType<DoubleLongAccessType>
Modifier and Type | Field and Description |
---|---|
protected DoubleLongAccess |
dataAccess |
protected NativeLongAccessImg<?,? extends DoubleLongAccess> |
img |
Constructor and Description |
---|
DoubleLongAccessType() |
DoubleLongAccessType(double value) |
DoubleLongAccessType(DoubleLongAccess access) |
DoubleLongAccessType(NativeLongAccessImg<?,? extends DoubleLongAccess> doubleStorage) |
Modifier and Type | Method and Description |
---|---|
DoubleLongAccessType |
copy()
|
NativeLongAccessImg<DoubleLongAccessType,? extends DoubleLongAccess> |
createSuitableNativeImg(NativeLongAccessImgFactory<DoubleLongAccessType> storageFactory,
long[] dim)
The
NativeLongAccessType creates the NativeLongAccessImg
used for storing image data; based on the given storage strategy and its
size. |
DoubleLongAccessType |
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. |
DoubleLongAccessType |
duplicateTypeOnSameNativeImg()
Creates a new
NativeType which stores in the same physical array. |
double |
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<DoubleLongAccessType,?> |
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 |
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(DoubleLongAccessType 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 DoubleLongAccess> img
protected DoubleLongAccess dataAccess
public DoubleLongAccessType(NativeLongAccessImg<?,? extends DoubleLongAccess> doubleStorage)
public DoubleLongAccessType(double value)
public DoubleLongAccessType(DoubleLongAccess access)
public DoubleLongAccessType()
public NativeLongAccessImg<DoubleLongAccessType,? extends DoubleLongAccess> createSuitableNativeImg(NativeLongAccessImgFactory<DoubleLongAccessType> 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<DoubleLongAccessType>
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<DoubleLongAccessType>
public DoubleLongAccessType duplicateTypeOnSameNativeImg()
NativeLongAccessType
NativeType
which stores in the same physical array.
This is only used internally.duplicateTypeOnSameNativeImg
in interface NativeLongAccessType<DoubleLongAccessType>
NativeType
instance working on the same
NativeImg
public double get()
public void set(double f)
public float getRealFloat()
getRealFloat
in interface ComplexType<DoubleLongAccessType>
public double getRealDouble()
getRealDouble
in interface ComplexType<DoubleLongAccessType>
public void setReal(float real)
setReal
in interface ComplexType<DoubleLongAccessType>
public void setReal(double real)
setReal
in interface ComplexType<DoubleLongAccessType>
public double getMaxValue()
getMaxValue
in interface RealType<DoubleLongAccessType>
public double getMinValue()
getMinValue
in interface RealType<DoubleLongAccessType>
public double getMinIncrement()
getMinIncrement
in interface RealType<DoubleLongAccessType>
public DoubleLongAccessType createVariable()
Type
Type
variable which can only store one value.createVariable
in interface Type<DoubleLongAccessType>
Type
variablepublic DoubleLongAccessType copy()
Type
copy
in interface Type<DoubleLongAccessType>
Type
variablepublic Fraction getEntitiesPerPixel()
NativeLongAccessType
getEntitiesPerPixel
in interface NativeLongAccessType<DoubleLongAccessType>
public void incIndex()
incIndex
in interface NativeLongAccessType<DoubleLongAccessType>
public void decIndex()
decIndex
in interface NativeLongAccessType<DoubleLongAccessType>
public int getBitsPerPixel()
getBitsPerPixel
in interface RealType<DoubleLongAccessType>
public boolean valueEquals(DoubleLongAccessType t)
valueEquals
in interface ValueEquals<DoubleLongAccessType>
valueEquals
in class AbstractRealType<DoubleLongAccessType>
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<DoubleLongAccessType>
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<DoubleLongAccessType>
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<DoubleLongAccessType>
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<DoubleLongAccessType>
decrement
- how many stepspublic NativeLongAccessTypeFactory<DoubleLongAccessType,?> getNativeLongAccessTypeFactory()
getNativeLongAccessTypeFactory
in interface NativeLongAccessType<DoubleLongAccessType>
Copyright © 2015–2022 ImgLib2. All rights reserved.