WISA.wisa3D.slicer
Class SlicerPlane

java.lang.Object
  |
  +--WISA.wisa3D.slicer.SlicerPlane

public class SlicerPlane
extends java.lang.Object

Überschrift: Wisa3D Beschreibung: Copyright: Copyright (c) 1999 Organisation: IAI-FZK


Field Summary
protected  java.lang.String lastErrorReport
          The last error occured in this SlicerPlane.
protected  visad.DataReferenceImpl mainHandle
          The DataReferenceImpl for the main handle.
protected  visad.DataReferenceImpl side1Handle
          The DataReferenceImpl for the first side handle.
protected  visad.DataReferenceImpl side2Handle
          The DataReferenceImpl for the second side handle.
protected  Slicer slicer
          The Slicer this SlicerPlane belongs to.
 
Constructor Summary
SlicerPlane(Slicer slicer)
          Construct a new SlicerPlane for the given slicer.
 
Method Summary
 boolean addSlicerData(visad.Data data)
          Add a slicer data to this slicer plane.
 void destroy()
          Remove this SlicerPlane from the display and restore the displays former state.
 java.lang.String getLastErrorReport()
          Return the last error occured in this SlicerPlane.
 visad.DataReferenceImpl[] getReferences()
          Get all DataReference objects of this SlicerPlane.
protected  void update()
           
protected  void update(double mainVal, double side1Val, double side2Val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mainHandle

protected visad.DataReferenceImpl mainHandle
The DataReferenceImpl for the main handle.


side1Handle

protected visad.DataReferenceImpl side1Handle
The DataReferenceImpl for the first side handle.


side2Handle

protected visad.DataReferenceImpl side2Handle
The DataReferenceImpl for the second side handle.


slicer

protected Slicer slicer
The Slicer this SlicerPlane belongs to.


lastErrorReport

protected java.lang.String lastErrorReport
The last error occured in this SlicerPlane.

Constructor Detail

SlicerPlane

public SlicerPlane(Slicer slicer)
Construct a new SlicerPlane for the given slicer.

Parameters:
slicer - The slicer this plane should be linked to.
Method Detail

update

protected void update()
               throws java.rmi.RemoteException,
                      visad.VisADException
java.rmi.RemoteException
visad.VisADException

update

protected void update(double mainVal,
                      double side1Val,
                      double side2Val)
               throws java.rmi.RemoteException,
                      visad.VisADException
java.rmi.RemoteException
visad.VisADException

getReferences

public visad.DataReferenceImpl[] getReferences()
Get all DataReference objects of this SlicerPlane.

Returns:
The plane, mainhandle, side1handle and side2handle references.

addSlicerData

public boolean addSlicerData(visad.Data data)
Add a slicer data to this slicer plane. The slicer plane will visualize this data in the slicers output panel und will construct the slices by itself. Slicer data has to fulfill several requirements. It has to be a FlatField with at least three RealTypes in its domain mapped to the three cartesian axes.

Parameters:
data - The data to be added to this slicer plane.
Returns:
True if the data fulfilled all requirements to be a slicer data and was added to this slicer plane.

getLastErrorReport

public java.lang.String getLastErrorReport()
Return the last error occured in this SlicerPlane. Use this to determine the error occured while adding a slicer data.

Returns:
A short description of the last error occured in this SlicerPlane or null if there was no error yet.

destroy

public void destroy()
Remove this SlicerPlane from the display and restore the displays former state.