theba.core.io.VolumeReader Interface Reference

List of all members.

Public Member Functions

int getWidth ()
int getHeight ()
int getDepth ()
void flush ()
short[] getSlice (int sliceNo)
void putSlice (short[] data, int pos)
void destroy ()

Detailed Description

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

Author:
jensbw

Definition at line 11 of file VolumeReader.java.


Member Function Documentation

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 (  ) 
int theba.core.io.VolumeReader.getHeight (  ) 
short [] theba.core.io.VolumeReader.getSlice ( int  sliceNo  ) 
int theba.core.io.VolumeReader.getWidth (  ) 
void theba.core.io.VolumeReader.putSlice ( short[]  data,
int  pos 
)

Insert an image-slice into this stack

Parameters:
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().


The documentation for this interface was generated from the following file:

Generated on Fri Nov 13 08:57:08 2009 for Theba by  doxygen 1.6.1