Public Member Functions | |
int | getWidth () |
int | getHeight () |
int | getDepth () |
void | flush () |
short[] | getSlice (int sliceNo) |
void | putSlice (short[] data, int pos) |
void | destroy () |
This is an interface to define data-access objects It has been created to make it possible to switch between cached sub-volumes and complete heap-copies
Definition at line 11 of file VolumeReader.java.
void theba.core.io.VolumeReader.destroy | ( | ) |
Called to destroy volume and free up any allocated resources Any calls to this object after destruction will result in indefined behaviour
Implemented in theba.core.io.HeapReader, and theba.core.io.SliceReader.
Referenced by theba.core.gui.ThebaGUI.flipVolume(), and theba.core.gui.ImagePane.setInput().
void theba.core.io.VolumeReader.flush | ( | ) |
This must be called to ensure that the data-structure is properly reflected on the harddrive. This will flush all cache/buffers etc.
Implemented in theba.core.io.HeapReader, theba.core.io.SliceReader, theba.core.io.SliceWriter, and theba.core.io.SliceWriterCached.
Referenced by theba.core.Stack.flush().
int theba.core.io.VolumeReader.getDepth | ( | ) |
Implemented in theba.core.io.HeapReader, and theba.core.io.SliceReader.
Referenced by theba.core.Stack.Stack().
int theba.core.io.VolumeReader.getHeight | ( | ) |
Implemented in theba.core.io.HeapReader, and theba.core.io.SliceReader.
Referenced by theba.core.Stack.Stack(), and theba.core.gui.ImagePane.updateData().
short [] theba.core.io.VolumeReader.getSlice | ( | int | sliceNo | ) |
Gets a reference to the indicated imageSlice in the stack
sliceNo |
Implemented in theba.core.io.HeapReader, theba.core.io.SliceReader, and theba.core.io.SliceWriterCached.
Referenced by theba.core.Stack.getSlice(), theba.core.gui.ThebaGUI.getSlice(), theba.core.Stack.getVoxel(), theba.core.Stack.getVoxelUnchecked(), theba.core.Stack.setVoxel(), theba.core.Stack.setVoxelUnchecked(), theba.core.gui.ImagePane.showSlice(), and theba.core.gui.ImagePane.updateData().
int theba.core.io.VolumeReader.getWidth | ( | ) |
Implemented in theba.core.io.HeapReader, and theba.core.io.SliceReader.
Referenced by theba.core.Stack.Stack(), and theba.core.gui.ImagePane.updateData().
void theba.core.io.VolumeReader.putSlice | ( | short[] | data, | |
int | pos | |||
) |
Insert an image-slice into this stack
data | ||
pos |
Implemented in theba.core.io.HeapReader, theba.core.io.SliceReader, theba.core.io.SliceWriter, and theba.core.io.SliceWriterCached.
Referenced by theba.core.Stack.putSlice(), and theba.core.gui.ThebaGUI.putSlice().