theba.core.io.SliceReader Class Reference

List of all members.

Public Member Functions

 SliceReader (int width, int height, int depth, int cacheSIze)
 SliceReader (final String filename, int width, int height, int depth, int cacheSize)
synchronized void close ()
void flush ()
RandomAccessFile getFile ()
String getFileName ()
synchronized short[] getSlice (int sliceNo)
synchronized void putSlice (short[] data, int pos)
synchronized void setFile (RandomAccessFile file)
synchronized void updateCache ()
synchronized void getSlice (int sliceNo, short[] output)
int getWidth ()
int getHeight ()
int getDepth ()
void destroy ()

Public Attributes

int width
int height
int depth

Protected Attributes

HashMap< Integer, short[]> cache = new HashMap<Integer, short[]>()
int cacheSize = 1
RandomAccessFile file
String filename
ArrayList< short[]> preallocatedDataArrays = new ArrayList<short[]> ()
LinkedList< Integer > queue = new LinkedList<Integer>()

Package Attributes

byte[] readAhead
byte[] tmp = null

Detailed Description

A sub-class of VolumeReader that access data in a slice-based fashion from the hard-drive

Author:
jens

Definition at line 17 of file SliceReader.java.


Constructor & Destructor Documentation

theba.core.io.SliceReader.SliceReader ( int  width,
int  height,
int  depth,
int  cacheSIze 
)
theba.core.io.SliceReader.SliceReader ( final String  filename,
int  width,
int  height,
int  depth,
int  cacheSize 
)

Member Function Documentation

synchronized void theba.core.io.SliceReader.close (  ) 
void theba.core.io.SliceReader.destroy (  ) 
void theba.core.io.SliceReader.flush (  ) 
int theba.core.io.SliceReader.getDepth (  ) 

Implements theba.core.io.VolumeReader.

Definition at line 156 of file SliceReader.java.

References theba.core.io.SliceReader.depth.

RandomAccessFile theba.core.io.SliceReader.getFile (  ) 

Definition at line 78 of file SliceReader.java.

References theba.core.io.SliceReader.file.

Referenced by theba.core.io.SliceWriter.main().

String theba.core.io.SliceReader.getFileName (  ) 

Definition at line 82 of file SliceReader.java.

References theba.core.io.SliceReader.filename.

int theba.core.io.SliceReader.getHeight (  ) 

Implements theba.core.io.VolumeReader.

Definition at line 152 of file SliceReader.java.

References theba.core.io.SliceReader.height.

synchronized void theba.core.io.SliceReader.getSlice ( int  sliceNo,
short[]  output 
)
synchronized short [] theba.core.io.SliceReader.getSlice ( int  sliceNo  ) 
int theba.core.io.SliceReader.getWidth (  ) 

Implements theba.core.io.VolumeReader.

Definition at line 148 of file SliceReader.java.

References theba.core.io.SliceReader.width.

synchronized void theba.core.io.SliceReader.putSlice ( short[]  data,
int  pos 
)

Implements theba.core.io.VolumeReader.

Reimplemented in theba.core.io.SliceWriter, and theba.core.io.SliceWriterCached.

Definition at line 104 of file SliceReader.java.

synchronized void theba.core.io.SliceReader.setFile ( RandomAccessFile  file  ) 

Definition at line 108 of file SliceReader.java.

synchronized void theba.core.io.SliceReader.updateCache (  ) 

Member Data Documentation

HashMap<Integer, short[]> theba.core.io.SliceReader.cache = new HashMap<Integer, short[]>() [protected]

Definition at line 18 of file SliceReader.java.

Referenced by theba.core.io.SliceReader.getDepth().

RandomAccessFile theba.core.io.SliceReader.file [protected]

Definition at line 26 of file SliceReader.java.

Referenced by theba.core.io.SliceReader.getFileName().

ArrayList<short[]> theba.core.io.SliceReader.preallocatedDataArrays = new ArrayList<short[]> () [protected]
LinkedList<Integer> theba.core.io.SliceReader.queue = new LinkedList<Integer>() [protected]

Definition at line 32 of file SliceReader.java.

Referenced by theba.core.io.SliceReader.SliceReader().

byte [] theba.core.io.SliceReader.tmp = null [package]

Retrieve an image-slice from this file

Parameters:
sliceNo 
output 

Definition at line 40 of file SliceReader.java.

Referenced by theba.core.io.SliceReader.getSlice().


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

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