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 TypeMethodDescriptionvoid
decIndex()
Decrement the index into the current data array.void
decIndex
(int decrement) Decrease the index into the current data array bydecrement
steps.int
getIndex()
Get the current index into the current data array.void
incIndex()
Increment the index into the current data array.void
incIndex
(int increment) Increases the index into the current data array byincrement
steps.abstract String
toString()
void
updateIndex
(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, wait
Methods inherited from interface net.imglib2.type.NativeType
createSuitableNativeImg, duplicateTypeOnSameNativeImg, getEntitiesPerPixel, updateContainer
Methods inherited from interface net.imglib2.type.Type
copy, createVariable, set
Methods 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:NativeType
Set the index into the current data array.This is used by accessors (e.g., a
Cursor
) to position theNativeType
in the container.- Specified by:
updateIndex
in interfaceNativeType<T extends AbstractNativeType<T>>
- Parameters:
j
- the new array index
-
getIndex
public int getIndex()Description copied from interface:NativeType
Get the current index into the current data array.This is used by accessors (e.g., a
Cursor
) to position theNativeType
in the container.- Specified by:
getIndex
in interfaceNativeType<T extends AbstractNativeType<T>>
- Returns:
- the current index into the underlying data array
-
incIndex
public void incIndex()Description copied from interface:NativeType
Increment the index into the current data array.This is used by accessors (e.g., a
Cursor
) to position theNativeType
in the container.- Specified by:
incIndex
in interfaceNativeType<T extends AbstractNativeType<T>>
-
incIndex
public void incIndex(int increment) Description copied from interface:NativeType
Increases the index into the current data array byincrement
steps.This is used by accessors (e.g., a
Cursor
) to position theNativeType
in the container.- Specified by:
incIndex
in interfaceNativeType<T extends AbstractNativeType<T>>
- Parameters:
increment
- how many steps
-
decIndex
public void decIndex()Description copied from interface:NativeType
Decrement the index into the current data array.This is used by accessors (e.g., a
Cursor
) to position theNativeType
in the container.- Specified by:
decIndex
in interfaceNativeType<T extends AbstractNativeType<T>>
-
decIndex
public void decIndex(int decrement) Description copied from interface:NativeType
Decrease the index into the current data array bydecrement
steps.This is used by accessors (e.g., a
Cursor
) to position theNativeType
in the container.- Specified by:
decIndex
in interfaceNativeType<T extends AbstractNativeType<T>>
- Parameters:
decrement
- how many steps
-
toString
-