WISA.wisa3D.slicer
Class Slicer

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

public class Slicer
extends java.lang.Object

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


Field Summary
static int INFRAME
          Key for an inframe slicer, e.g. a slicer which displays its output in an separate display.
static int INLINE
          Key for an inline slicer, e.g. a slicer which displays its output in his input display.
static int STANDALONE
          Key for a standalone slicer, e.g. a slicer which displays its output in a separate frame.
static int X_AXIS
          Key for a x-axis slicer.
static int Y_AXIS
          Key for a y-axis slicer.
static int Z_AXIS
          Key for a z-axis slicer.
 
Constructor Summary
Slicer(Wisa3DPanel input)
          Construct a Slicer with INLINE mode and default axis.
Slicer(Wisa3DPanel input, int mode)
          Construct a slicer with either INLINE or STANDALONE mode.
Slicer(Wisa3DPanel input, int mode, int axis)
          Construct a slicer with either INLINE or STANDALONE mode and the given axis.
Slicer(Wisa3DPanel input, Wisa3DPanel output)
          Construct a slicer with INFRAME mode and the given axis.
Slicer(Wisa3DPanel input, Wisa3DPanel output, int axis)
          Construct a slicer with INFRAME mode and the given axis.
 
Method Summary
 void destroy()
          Destroy this slicer.
 int getAxis()
          Get the axis of this slicer.
 Wisa3DPanel getInput()
          Get the panel where this slicer gets its input from.
 int getMode()
          Get the mode of this slicer.
 Wisa3DPanel getOutput()
          Get the panel where the output of this slicer, e.g. the slices are drawn.
 void setAxis(int axis)
          Set the axis of this slicer and cause the slicer to update its appearance and its input and output displays.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INLINE

public static final int INLINE
Key for an inline slicer, e.g. a slicer which displays its output in his input display.

See Also:
Constant Field Values

INFRAME

public static final int INFRAME
Key for an inframe slicer, e.g. a slicer which displays its output in an separate display.

See Also:
Constant Field Values

STANDALONE

public static final int STANDALONE
Key for a standalone slicer, e.g. a slicer which displays its output in a separate frame.

See Also:
Constant Field Values

X_AXIS

public static final int X_AXIS
Key for a x-axis slicer.

See Also:
Constant Field Values

Y_AXIS

public static final int Y_AXIS
Key for a y-axis slicer.

See Also:
Constant Field Values

Z_AXIS

public static final int Z_AXIS
Key for a z-axis slicer.

See Also:
Constant Field Values
Constructor Detail

Slicer

public Slicer(Wisa3DPanel input)
Construct a Slicer with INLINE mode and default axis.

Parameters:
input - The Wisa3DPanel this Slicer makes slices of.

Slicer

public Slicer(Wisa3DPanel input,
              int mode)
Construct a slicer with either INLINE or STANDALONE mode.

Parameters:
input - The Wisa3DPanel this Slicer makes slices of.
mode - Either Slicer.INLINE or Slicer.STANDALONE.

Slicer

public Slicer(Wisa3DPanel input,
              int mode,
              int axis)
Construct a slicer with either INLINE or STANDALONE mode and the given axis.

Parameters:
input - The Wisa3DPanel this Slicer makes slices of.
mode - Either Slicer.INLINE or Slicer.STANDALONE.
axis - Slicer.X_AXIS, Slicer.Y_AXIS or Slicer.Z_AXIS.

Slicer

public Slicer(Wisa3DPanel input,
              Wisa3DPanel output)
Construct a slicer with INFRAME mode and the given axis.

Parameters:
input - The Wisa3DPanel this slicer makes slices of.
output - The Wisa3DPanel the slices are displayed.

Slicer

public Slicer(Wisa3DPanel input,
              Wisa3DPanel output,
              int axis)
Construct a slicer with INFRAME mode and the given axis.

Parameters:
input - The Wisa3DPanel this slicer makes slices of.
output - The Wisa3DPanel the slices are displayed.
axis - Slicer.X_AXIS, Slicer.Y_AXIS or Slicer.Z_AXIS.
Method Detail

setAxis

public void setAxis(int axis)
Set the axis of this slicer and cause the slicer to update its appearance and its input and output displays.

Parameters:
axis - The new axis of this slicer.

getAxis

public int getAxis()
Get the axis of this slicer.

Returns:
The axis of this slicer

getMode

public int getMode()
Get the mode of this slicer.

Returns:
The mode of this slicer.

getInput

public Wisa3DPanel getInput()
Get the panel where this slicer gets its input from.

Returns:
The input panel of this slicer.

getOutput

public Wisa3DPanel getOutput()
Get the panel where the output of this slicer, e.g. the slices are drawn.

Returns:
The ouput panel of this slicer.

destroy

public void destroy()
Destroy this slicer.