visad.bio
Class AlignmentPlane

java.lang.Object
  extended by visad.bio.PlaneSelector
      extended by visad.bio.AlignmentPlane

public class AlignmentPlane
extends PlaneSelector

AlignmentPlane maintains an arbitrary plane specifying a spatial alignment in 3-D.


Field Summary
static int ADJUST_MODE
          Mode where alignment plane can be moved but not resized.
static int APPLY_MODE
          Mode where alignment plane settings are applied to the display.
protected  VisBio bio
          VisBio frame.
protected  double d_dist
          Fixed distances between endpoints.
protected  double dist12
          Fixed distances between endpoints.
protected  double dist13
          Fixed distances between endpoints.
protected  double dist23
          Fixed distances between endpoints.
protected  double dist34
          Fixed distances between endpoints.
protected  int index
          Current timestep value.
protected  int mode
          Alignment plane mode.
protected  int numIndices
          Number of timesteps.
static int OFF_MODE
          Mode where drift correction is off.
protected  double[][][] pos
          Position of plane selector for each timestep.
static int SET_MODE
          Mode where user has free control over alignment plane endpoints.
 
Fields inherited from class visad.bio.PlaneSelector
btype, cell, display, domain, gtype, lines, lineValues, listeners, plane, range, refs, renderers, rtype, visible, x1, x2, x3, xtype, y1, y2, y3, ytype, z1, z2, z3, ztype
 
Constructor Summary
AlignmentPlane(VisBio biovis, DisplayImpl display)
          Constructs a plane selector.
 
Method Summary
protected  void alignDisplay(int old_index)
          Aligns the display to match the alignment plane.
protected  double[] descale(double[] vals)
          Convert point from scaled to non-scaled.
protected  double[] getScale()
          Gets coordinate system scale.
protected  boolean refresh()
          Refreshes the plane data from its endpoint locations.
protected  void setData(int i, double[] vals)
          Moves the given reference point.
 void setIndex(int index)
          Sets the current timestep.
 void setMode(int mode)
          Sets whether to lock endpoint distances to maintain size and shape.
protected  void setPos(int i, double[] vals)
          Updates internal position values.
 
Methods inherited from class visad.bio.PlaneSelector
addListener, computePlane, init, isVisible, notifyListeners, removeListener, toggle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OFF_MODE

public static final int OFF_MODE
Mode where drift correction is off.

See Also:
Constant Field Values

SET_MODE

public static final int SET_MODE
Mode where user has free control over alignment plane endpoints.

See Also:
Constant Field Values

ADJUST_MODE

public static final int ADJUST_MODE
Mode where alignment plane can be moved but not resized.

See Also:
Constant Field Values

APPLY_MODE

public static final int APPLY_MODE
Mode where alignment plane settings are applied to the display.

See Also:
Constant Field Values

bio

protected VisBio bio
VisBio frame.


numIndices

protected int numIndices
Number of timesteps.


pos

protected double[][][] pos
Position of plane selector for each timestep.


index

protected int index
Current timestep value.


mode

protected int mode
Alignment plane mode.


dist12

protected double dist12
Fixed distances between endpoints.


dist13

protected double dist13
Fixed distances between endpoints.


dist23

protected double dist23
Fixed distances between endpoints.


dist34

protected double dist34
Fixed distances between endpoints.


d_dist

protected double d_dist
Fixed distances between endpoints.

Constructor Detail

AlignmentPlane

public AlignmentPlane(VisBio biovis,
                      DisplayImpl display)
Constructs a plane selector.

Method Detail

setIndex

public void setIndex(int index)
Sets the current timestep.


setMode

public void setMode(int mode)
Sets whether to lock endpoint distances to maintain size and shape.


alignDisplay

protected void alignDisplay(int old_index)
Aligns the display to match the alignment plane.


refresh

protected boolean refresh()
Refreshes the plane data from its endpoint locations.

Overrides:
refresh in class PlaneSelector

setData

protected void setData(int i,
                       double[] vals)
Moves the given reference point.

Overrides:
setData in class PlaneSelector

setPos

protected void setPos(int i,
                      double[] vals)
Updates internal position values.


descale

protected double[] descale(double[] vals)
Convert point from scaled to non-scaled.


getScale

protected double[] getScale()
Gets coordinate system scale.