Package net.imglib2.type
Class AbstractNativeType<T extends AbstractNativeType<T>>
java.lang.Object
net.imglib2.type.AbstractNativeType<T>
- All Implemented Interfaces:
NativeType<T>,ValueEquals<T>,Type<T>
- Direct Known Subclasses:
ARGBType,BasePairCharType
public abstract class AbstractNativeType<T extends AbstractNativeType<T>>
extends Object
implements NativeType<T>
TODO
- Author:
- Stephan Preibisch, Stephan Saalfeld
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecIndex()Decrement the index into the current data array.voiddecIndex(int decrement) Decrease the index into the current data array bydecrementsteps.intgetIndex()Get the current index into the current data array.voidincIndex()Increment the index into the current data array.voidincIndex(int increment) Increases the index into the current data array byincrementsteps.abstract StringtoString()voidupdateIndex(int j) Set the index into the current data array.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.imglib2.type.NativeType
createSuitableNativeImg, duplicateTypeOnSameNativeImg, getEntitiesPerPixel, updateContainerMethods inherited from interface net.imglib2.type.Type
copy, createVariable, setMethods inherited from interface net.imglib2.type.operators.ValueEquals
valueEquals
-
Field Details
-
i
protected int i
-
-
Constructor Details
-
AbstractNativeType
public AbstractNativeType()
-
-
Method Details
-
updateIndex
public void updateIndex(int j) Description copied from interface:NativeTypeSet the index into the current data array.This is used by accessors (e.g., a
Cursor) to position theNativeTypein the container.- Specified by:
updateIndexin interfaceNativeType<T extends AbstractNativeType<T>>- Parameters:
j- the new array index
-
getIndex
public int getIndex()Description copied from interface:NativeTypeGet the current index into the current data array.This is used by accessors (e.g., a
Cursor) to position theNativeTypein the container.- Specified by:
getIndexin interfaceNativeType<T extends AbstractNativeType<T>>- Returns:
- the current index into the underlying data array
-
incIndex
public void incIndex()Description copied from interface:NativeTypeIncrement the index into the current data array.This is used by accessors (e.g., a
Cursor) to position theNativeTypein the container.- Specified by:
incIndexin interfaceNativeType<T extends AbstractNativeType<T>>
-
incIndex
public void incIndex(int increment) Description copied from interface:NativeTypeIncreases the index into the current data array byincrementsteps.This is used by accessors (e.g., a
Cursor) to position theNativeTypein the container.- Specified by:
incIndexin interfaceNativeType<T extends AbstractNativeType<T>>- Parameters:
increment- how many steps
-
decIndex
public void decIndex()Description copied from interface:NativeTypeDecrement the index into the current data array.This is used by accessors (e.g., a
Cursor) to position theNativeTypein the container.- Specified by:
decIndexin interfaceNativeType<T extends AbstractNativeType<T>>
-
decIndex
public void decIndex(int decrement) Description copied from interface:NativeTypeDecrease the index into the current data array bydecrementsteps.This is used by accessors (e.g., a
Cursor) to position theNativeTypein the container.- Specified by:
decIndexin interfaceNativeType<T extends AbstractNativeType<T>>- Parameters:
decrement- how many steps
-
toString
-