Package net.imglib2.type.label
Class BasePairBitType
- All Implemented Interfaces:
Comparable<BasePairBitType>,BasePairType<BasePairBitType>,NativeType<BasePairBitType>,ValueEquals<BasePairBitType>,Type<BasePairBitType>
public class BasePairBitType
extends AbstractBit64Type<BasePairBitType>
implements BasePairType<BasePairBitType>
Representation of base pairs using 3 bits per entry, supported characters: gap, N, A, T, G, C, U
Bases are handled using the
BasePairBitType.Base enumeration.- Author:
- Stephan Preibisch, Stephan Saalfeld
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class net.imglib2.type.AbstractBitType
dataAccess, i, img, nBits -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteintvoidcopy()NativeImg<BasePairBitType, ? extends LongAccess> createSuitableNativeImg(NativeImgFactory<BasePairBitType> storageFactory, long[] dim) TheNativeTypecreates theNativeImgused for storing image data; based on the given storage strategy and its size.Creates a newTypevariable which can only store one value.Creates a newNativeTypewhich stores in the same physical array.get()voidSets the value of anotherType.voidset(BasePairBitType.Base base) toString()booleanMethods inherited from class net.imglib2.type.AbstractBit64Type
getBits, setBitsMethods inherited from class net.imglib2.type.AbstractBitType
decIndex, decIndex, getEntitiesPerPixel, getIndex, incIndex, incIndex, updateContainer, updateIndex
-
Constructor Details
-
BasePairBitType
-
BasePairBitType
-
BasePairBitType
public BasePairBitType()
-
-
Method Details
-
createSuitableNativeImg
public NativeImg<BasePairBitType,? extends LongAccess> createSuitableNativeImg(NativeImgFactory<BasePairBitType> storageFactory, long[] dim) Description copied from interface:NativeTypeTheNativeTypecreates theNativeImgused 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.- Specified by:
createSuitableNativeImgin interfaceNativeType<BasePairBitType>- Parameters:
storageFactory- which storage strategy is useddim- the dimensions- Returns:
- the instantiated
NativeImgwhere only theTypeknows the BasicType it contains.
-
duplicateTypeOnSameNativeImg
Description copied from interface:NativeTypeCreates a newNativeTypewhich stores in the same physical array. This is only used internally.- Specified by:
duplicateTypeOnSameNativeImgin interfaceNativeType<BasePairBitType>- Returns:
- a new
NativeTypeinstance working on the sameNativeImg
-
set
- Specified by:
setin interfaceBasePairType<BasePairBitType>
-
get
- Specified by:
getin interfaceBasePairType<BasePairBitType>
-
compareTo
- Specified by:
compareToin interfaceComparable<BasePairBitType>
-
complement
public void complement()- Specified by:
complementin interfaceBasePairType<BasePairBitType>
-
baseToValue
public byte baseToValue()- Specified by:
baseToValuein interfaceBasePairType<BasePairBitType>
-
set
Description copied from interface:TypeSets the value of anotherType.- Specified by:
setin interfaceType<BasePairBitType>- Parameters:
c- the new value
-
createVariable
Description copied from interface:TypeCreates a newTypevariable which can only store one value.- Specified by:
createVariablein interfaceType<BasePairBitType>- Returns:
- a new
Typevariable
-
copy
Description copied from interface:Type- Specified by:
copyin interfaceType<BasePairBitType>- Returns:
- a new
Typevariable
-
toString
-
valueEquals
- Specified by:
valueEqualsin interfaceValueEquals<BasePairBitType>
-