Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class ncsa.horizon.util.AdjustableVolumeTransform

java.lang.Object
  |
  +--ncsa.horizon.util.VolumeTransform
        |
        +--ncsa.horizon.util.AdjustableVolumeTransform

public class AdjustableVolumeTransform
extends VolumeTransform
an mutable object for describing a simple tranformation between two spaces.

See Also:
VolumeTransform, Serialized Form

Fields inherited from class ncsa.horizon.util.VolumeTransform
inax, onax, transdat
 
Constructor Summary
AdjustableVolumeTransform()
          create a VolumeTransform that does a null transform between spaces of up to 2 dimensions
AdjustableVolumeTransform(int nax)
          create a VolumeTransform that does a null transform between spaces of up to a given number of dimensions
AdjustableVolumeTransform(int inputNaxes, int outputNaxes)
          create a VolumeTransform that does a null transform between spaces of a differing number number of dimensions
AdjustableVolumeTransform(Volume in, Volume out)
          create the transform that will convert a given input Volume to a given output Volume.
AdjustableVolumeTransform(int inputNaxes, int outputNaxes, double[] trans, double[] scale, int[] order)
          create a transform given a translation, scale, and axis order.
 
Method Summary
void setAxisReordering(int[] order)
          set the axis reordering to be applied to input Volumes
void setScaling(double[] s)
          set the scaling to be applied to input Volume's
void setScaling(int axis, double s)
          set the scaling to be applied to input Volumes
void setTranslation(double[] t)
          set the translation to be applied to input Volume's
void setTranslation(int axis, double t)
          set the translation to be applied to input Volume's
 
Methods inherited from class ncsa.horizon.util.VolumeTransform
clone, getAxisReordering, getInputNaxes, getMonitor, getOutputNaxes, getScaling, getScaling, getTranslation, getTranslation, isMutable, transform, transform, transform, transform, untransform, untransform, untransform, untransform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

AdjustableVolumeTransform

public AdjustableVolumeTransform()
create a VolumeTransform that does a null transform between spaces of up to 2 dimensions

AdjustableVolumeTransform

public AdjustableVolumeTransform(int nax)
create a VolumeTransform that does a null transform between spaces of up to a given number of dimensions

AdjustableVolumeTransform

public AdjustableVolumeTransform(int inputNaxes,
                                 int outputNaxes)
create a VolumeTransform that does a null transform between spaces of a differing number number of dimensions

AdjustableVolumeTransform

public AdjustableVolumeTransform(Volume in,
                                 Volume out)
create the transform that will convert a given input Volume to a given output Volume.

AdjustableVolumeTransform

public AdjustableVolumeTransform(int inputNaxes,
                                 int outputNaxes,
                                 double[] trans,
                                 double[] scale,
                                 int[] order)
                          throws java.lang.IllegalArgumentException,
                                 java.lang.ArrayIndexOutOfBoundsException
create a transform given a translation, scale, and axis order. This version is prone to user error (in the specification of the axis order); VolumeTransform(Volume, Volume) should therefore be preferred. The meaning of input and output refers to that of the forward transform.
Parameters:
inputNaxes - the number of axes in the input space
outputNaxes - the number of axes in the input space
trans - the translation vector
scale - the scaling vector
order - the axis reordering
Throws:
java.lang.IllegalArgumentException - if an axis is repeated in the array.
java.lang.ArrayIndexOutOfBoundsException - if an axis index is out of range of [0, naxes-1], where naxes is the maximum of inputNaxes and outputNaxes.
Method Detail

setTranslation

public void setTranslation(double[] t)
set the translation to be applied to input Volume's

setTranslation

public void setTranslation(int axis,
                           double t)
set the translation to be applied to input Volume's

setScaling

public void setScaling(double[] s)
set the scaling to be applied to input Volume's

setScaling

public void setScaling(int axis,
                       double s)
set the scaling to be applied to input Volumes

setAxisReordering

public void setAxisReordering(int[] order)
set the axis reordering to be applied to input Volumes

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD