public class ARGBLongAccessType extends AbstractNativeLongAccessType<ARGBLongAccessType> implements NumericType<ARGBLongAccessType>
| Modifier and Type | Field and Description |
|---|---|
protected IntLongAccess |
dataAccess |
protected NativeLongAccessImg<?,? extends IntLongAccess> |
img |
i| Constructor and Description |
|---|
ARGBLongAccessType() |
ARGBLongAccessType(int value) |
ARGBLongAccessType(IntLongAccess access) |
ARGBLongAccessType(NativeLongAccessImg<?,? extends IntLongAccess> intStorage) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ARGBLongAccessType c) |
static int |
alpha(int value) |
static int |
blue(int value) |
ARGBLongAccessType |
copy()
|
NativeLongAccessImg<ARGBLongAccessType,? extends IntLongAccess> |
createSuitableNativeImg(NativeLongAccessImgFactory<ARGBLongAccessType> storageFactory,
long[] dim)
The
NativeLongAccessType creates the NativeLongAccessImg
used for storing image data; based on the given storage strategy and its
size. |
ARGBLongAccessType |
createVariable()
Creates a new
Type variable which can only store one value. |
void |
div(ARGBLongAccessType c) |
ARGBLongAccessType |
duplicateTypeOnSameNativeImg()
Creates a new
NativeType which stores in the same physical array. |
int |
get() |
Fraction |
getEntitiesPerPixel()
Get the number of entities in the storage array required to store one
pixel value.
|
NativeLongAccessTypeFactory<ARGBLongAccessType,?> |
getNativeLongAccessTypeFactory() |
static int |
green(int value) |
void |
mul(ARGBLongAccessType c) |
void |
mul(double c) |
void |
mul(float c) |
void |
pow(ARGBLongAccessType c) |
void |
pow(double power) |
static int |
red(int value) |
static int |
rgba(double r,
double g,
double b,
double a) |
static int |
rgba(float r,
float g,
float b,
float a) |
static int |
rgba(int r,
int g,
int b,
int a) |
void |
set(ARGBLongAccessType c)
Sets the value of another
Type. |
void |
set(int f) |
void |
setOne() |
void |
setZero() |
void |
sub(ARGBLongAccessType c) |
String |
toString() |
void |
updateContainer(Object c) |
boolean |
valueEquals(ARGBLongAccessType t) |
decIndex, decIndex, getIndexLong, incIndex, incIndex, updateIndexprotected final NativeLongAccessImg<?,? extends IntLongAccess> img
protected IntLongAccess dataAccess
public ARGBLongAccessType(NativeLongAccessImg<?,? extends IntLongAccess> intStorage)
public ARGBLongAccessType(int value)
public ARGBLongAccessType(IntLongAccess access)
public ARGBLongAccessType()
public NativeLongAccessImg<ARGBLongAccessType,? extends IntLongAccess> createSuitableNativeImg(NativeLongAccessImgFactory<ARGBLongAccessType> 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<ARGBLongAccessType>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<ARGBLongAccessType>public ARGBLongAccessType duplicateTypeOnSameNativeImg()
NativeLongAccessTypeNativeType which stores in the same physical array.
This is only used internally.duplicateTypeOnSameNativeImg in interface NativeLongAccessType<ARGBLongAccessType>NativeType instance working on the same
NativeImgpublic static final int rgba(int r,
int g,
int b,
int a)
public static final int rgba(float r,
float g,
float b,
float a)
public static final int rgba(double r,
double g,
double b,
double a)
public static final int red(int value)
public static final int green(int value)
public static final int blue(int value)
public static final int alpha(int value)
public int get()
public void set(int f)
public void mul(float c)
mul in interface MulFloatingPointpublic void mul(double c)
mul in interface MulFloatingPointpublic void add(ARGBLongAccessType c)
add in interface Add<ARGBLongAccessType>public void div(ARGBLongAccessType c)
div in interface Div<ARGBLongAccessType>public void mul(ARGBLongAccessType c)
mul in interface Mul<ARGBLongAccessType>public void sub(ARGBLongAccessType c)
sub in interface Sub<ARGBLongAccessType>public void pow(ARGBLongAccessType c)
pow in interface Pow<ARGBLongAccessType>public void pow(double power)
pow in interface PowFloatingPointpublic void set(ARGBLongAccessType c)
TypeType.set in interface Type<ARGBLongAccessType>c - the new valuepublic ARGBLongAccessType createVariable()
TypeType variable which can only store one value.createVariable in interface Type<ARGBLongAccessType>Type variablepublic ARGBLongAccessType copy()
Typecopy in interface Type<ARGBLongAccessType>Type variablepublic Fraction getEntitiesPerPixel()
NativeLongAccessTypegetEntitiesPerPixel in interface NativeLongAccessType<ARGBLongAccessType>public boolean valueEquals(ARGBLongAccessType t)
valueEquals in interface ValueEquals<ARGBLongAccessType>public NativeLongAccessTypeFactory<ARGBLongAccessType,?> getNativeLongAccessTypeFactory()
getNativeLongAccessTypeFactory in interface NativeLongAccessType<ARGBLongAccessType>Copyright © 2015–2022 ImgLib2. All rights reserved.