Package net.imglib2.type.numeric.integer
Class UnsignedShortType
java.lang.Object
net.imglib2.type.numeric.complex.AbstractComplexType<UnsignedShortType>
net.imglib2.type.numeric.real.AbstractRealType<UnsignedShortType>
net.imglib2.type.numeric.integer.AbstractIntegerType<UnsignedShortType>
net.imglib2.type.numeric.integer.GenericShortType<UnsignedShortType>
net.imglib2.type.numeric.integer.UnsignedShortType
- All Implemented Interfaces:
Comparable<UnsignedShortType>,NativeType<UnsignedShortType>,ComplexType<UnsignedShortType>,IntegerType<UnsignedShortType>,NumericType<UnsignedShortType>,RealType<UnsignedShortType>,Add<UnsignedShortType>,Div<UnsignedShortType>,Mul<UnsignedShortType>,MulFloatingPoint,Pow<UnsignedShortType>,PowFloatingPoint,SetOne,SetZero,Sub<UnsignedShortType>,ValueEquals<UnsignedShortType>,Type<UnsignedShortType>
- Direct Known Subclasses:
VolatileUnsignedShortType.WrappedUnsignedShortType
TODO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final NativeTypeFactory<UnsignedShortType, ShortAccess> Fields inherited from class net.imglib2.type.numeric.integer.GenericShortType
dataAccess, i, img -
Constructor Summary
ConstructorsConstructorDescriptionUnsignedShortType(int value) UnsignedShortType(ShortAccess access) UnsignedShortType(NativeImg<?, ? extends ShortAccess> img) -
Method Summary
Modifier and TypeMethodDescriptionvoidintcompareTo(UnsignedShortType other) copy()Creates a newTypevariable which can only store one value.voiddec()voidCreates a newNativeTypewhich stores in the same physical array.intget()static shortgetCodedSignedShort(int unsignedShort) static shortgetCodedSignedShortChecked(int unsignedShort) intlongdoubledoublestatic intgetUnsignedShort(short signedShort) voidinc()voidmul(double c) voidmul(float c) voidvoidset(int f) voidvoidsetInteger(int f) voidsetInteger(long f) voidtoString()Methods inherited from class net.imglib2.type.numeric.integer.GenericShortType
equals, getBitsPerPixel, getEntitiesPerPixel, getShort, getValue, hashCode, index, set, setOne, setShort, setValue, setZero, updateContainer, valueEqualsMethods inherited from class net.imglib2.type.numeric.integer.AbstractIntegerType
getMinIncrement, getRealDouble, getRealFloat, setReal, setRealMethods inherited from class net.imglib2.type.numeric.real.AbstractRealType
getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, pow, pow, setImaginary, setImaginaryMethods inherited from class net.imglib2.type.numeric.complex.AbstractComplexType
complexConjugate, setComplexNumber, setComplexNumberMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.imglib2.type.numeric.ComplexType
complexConjugate, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, setComplexNumber, setComplexNumber, setImaginary, setImaginaryMethods inherited from interface net.imglib2.type.NativeType
decIndex, decIndex, getIndex, incIndex, incIndex, updateIndexMethods inherited from interface net.imglib2.type.operators.PowFloatingPoint
pow
-
Field Details
-
typeFactory
-
-
Constructor Details
-
UnsignedShortType
-
UnsignedShortType
public UnsignedShortType(int value) -
UnsignedShortType
-
UnsignedShortType
public UnsignedShortType()
-
-
Method Details
-
getCodedSignedShortChecked
public static short getCodedSignedShortChecked(int unsignedShort) -
getCodedSignedShort
public static short getCodedSignedShort(int unsignedShort) -
getUnsignedShort
public static int getUnsignedShort(short signedShort) -
duplicateTypeOnSameNativeImg
Description copied from interface:NativeTypeCreates a newNativeTypewhich stores in the same physical array. This is only used internally.- Returns:
- a new
NativeTypeinstance working on the sameNativeImg
-
getNativeTypeFactory
- Specified by:
getNativeTypeFactoryin interfaceNativeType<UnsignedShortType>- Specified by:
getNativeTypeFactoryin classGenericShortType<UnsignedShortType>
-
mul
public void mul(float c) - Specified by:
mulin interfaceMulFloatingPoint- Overrides:
mulin classGenericShortType<UnsignedShortType>
-
mul
public void mul(double c) - Specified by:
mulin interfaceMulFloatingPoint- Overrides:
mulin classGenericShortType<UnsignedShortType>
-
add
- Specified by:
addin interfaceAdd<UnsignedShortType>- Overrides:
addin classGenericShortType<UnsignedShortType>
-
div
- Specified by:
divin interfaceDiv<UnsignedShortType>- Overrides:
divin classGenericShortType<UnsignedShortType>
-
mul
- Specified by:
mulin interfaceMul<UnsignedShortType>- Overrides:
mulin classGenericShortType<UnsignedShortType>
-
sub
- Specified by:
subin interfaceSub<UnsignedShortType>- Overrides:
subin classGenericShortType<UnsignedShortType>
-
inc
public void inc()- Specified by:
incin interfaceRealType<UnsignedShortType>- Overrides:
incin classGenericShortType<UnsignedShortType>
-
dec
public void dec()- Specified by:
decin interfaceRealType<UnsignedShortType>- Overrides:
decin classGenericShortType<UnsignedShortType>
-
get
public int get() -
set
public void set(int f) -
getInteger
public int getInteger() -
getIntegerLong
public long getIntegerLong() -
getBigInteger
-
setInteger
public void setInteger(int f) -
setInteger
public void setInteger(long f) -
setBigInteger
-
getMaxValue
public double getMaxValue() -
getMinValue
public double getMinValue() -
createVariable
Description copied from interface:TypeCreates a newTypevariable which can only store one value.- Returns:
- a new
Typevariable
-
copy
Description copied from interface:Type- Returns:
- a new
Typevariable
-
toString
- Overrides:
toStringin classGenericShortType<UnsignedShortType>
-
compareTo
- Specified by:
compareToin interfaceComparable<UnsignedShortType>- Overrides:
compareToin classGenericShortType<UnsignedShortType>
-