visad.bio
Class SliceManager

java.lang.Object
  extended by visad.bio.SliceManager
All Implemented Interfaces:
java.util.EventListener, PlaneListener, ControlListener, DisplayListener

public class SliceManager
extends java.lang.Object
implements ControlListener, DisplayListener, PlaneListener

SliceManager is the class encapsulating VisBio's slice logic.


Constructor Summary
SliceManager(VisBio biovis)
          Constructs a slice manager.
 
Method Summary
 void controlChanged(ControlEvent e)
          ControlListener method used for programmatically updating GUI.
 void displayChanged(DisplayEvent e)
          DisplayListener method used for mouse activity in 3-D display.
 FieldImpl getField()
          Returns the field data currently in memory.
 boolean getFilesAsSlices()
          Returns whether each file is a single slice of one timestep.
 int getIndex()
          Gets the currently displayed timestep index.
 int getNumberOfIndices()
          Gets the number of timestep indices.
 int getNumberOfSlices()
          Gets the number of image slices.
 boolean getPlaneSelect()
          Gets whether arbitrary plane selection is in effect.
 java.io.File[] getSeries()
          Returns the current data series file list.
 int getSlice()
          Gets the currently displayed image slice.
 boolean hasThumbnails()
          Gets whether the currently loaded data has low-resolution thumbnails.
 void planeChanged()
          PlaneListener method used for detecting PlaneSelector changes.
 void setAutoSwitch(boolean value)
          Sets whether to auto-switch resolutions when certain events occur.
 void setIndex(int index)
          Sets the currently displayed timestep index.
 void setMode(boolean lowres)
          Sets the display detail (low-resolution or full resolution).
 void setPlaneContinuous(boolean value)
          Sets whether arbitrary plane is continuously updated.
 void setPlaneSelect(boolean value)
          Sets whether to do arbitrary plane selection.
 void setSeries(java.io.File[] files)
          Links the data series to the given list of files.
 void setSeries(java.io.File[] files, boolean filesAsSlices)
          Links the data series to the given list of files, treating each file as a slice (instead of a timestep) if specified.
 void setSlice(int slice)
          Sets the currently displayed image slice.
 void setThumbnails(boolean thumbnails, int xres, int yres)
          Sets whether to create low-resolution thumbnails of the data.
 void setVolumeRender(boolean volume)
          Sets whether 3-D display should use image stack or volume rendering.
 void setVolumeResolution(int res)
          Sets the resolution at which volume rendering occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SliceManager

public SliceManager(VisBio biovis)
             throws VisADException,
                    java.rmi.RemoteException
Constructs a slice manager.

Throws:
VisADException
java.rmi.RemoteException
Method Detail

getIndex

public int getIndex()
Gets the currently displayed timestep index.


getSlice

public int getSlice()
Gets the currently displayed image slice.


getNumberOfIndices

public int getNumberOfIndices()
Gets the number of timestep indices.


getNumberOfSlices

public int getNumberOfSlices()
Gets the number of image slices.


hasThumbnails

public boolean hasThumbnails()
Gets whether the currently loaded data has low-resolution thumbnails.


setMode

public void setMode(boolean lowres)
Sets the display detail (low-resolution or full resolution).


setIndex

public void setIndex(int index)
Sets the currently displayed timestep index.


setSlice

public void setSlice(int slice)
Sets the currently displayed image slice.


setAutoSwitch

public void setAutoSwitch(boolean value)
Sets whether to auto-switch resolutions when certain events occur.


setThumbnails

public void setThumbnails(boolean thumbnails,
                          int xres,
                          int yres)
Sets whether to create low-resolution thumbnails of the data.


setPlaneSelect

public void setPlaneSelect(boolean value)
Sets whether to do arbitrary plane selection.


setPlaneContinuous

public void setPlaneContinuous(boolean value)
Sets whether arbitrary plane is continuously updated.


setVolumeRender

public void setVolumeRender(boolean volume)
Sets whether 3-D display should use image stack or volume rendering.


setVolumeResolution

public void setVolumeResolution(int res)
Sets the resolution at which volume rendering occurs.


setSeries

public void setSeries(java.io.File[] files)
Links the data series to the given list of files.


setSeries

public void setSeries(java.io.File[] files,
                      boolean filesAsSlices)
Links the data series to the given list of files, treating each file as a slice (instead of a timestep) if specified.


getSeries

public java.io.File[] getSeries()
Returns the current data series file list.


getFilesAsSlices

public boolean getFilesAsSlices()
Returns whether each file is a single slice of one timestep.


getField

public FieldImpl getField()
Returns the field data currently in memory.


getPlaneSelect

public boolean getPlaneSelect()
Gets whether arbitrary plane selection is in effect.


controlChanged

public void controlChanged(ControlEvent e)
ControlListener method used for programmatically updating GUI.

Specified by:
controlChanged in interface ControlListener

displayChanged

public void displayChanged(DisplayEvent e)
DisplayListener method used for mouse activity in 3-D display.

Specified by:
displayChanged in interface DisplayListener

planeChanged

public void planeChanged()
PlaneListener method used for detecting PlaneSelector changes.

Specified by:
planeChanged in interface PlaneListener