JIGL
v1.6

jigl.image.warp
Class Composite

java.lang.Object
  |
  +--jigl.image.warp.Composite
All Implemented Interfaces:
PointMapper

public class Composite
extends Object
implements PointMapper

Allows for composition of transformations on a mapped image.


Field Summary
private  PointMapper pointMapper1
          The first PointerMapper object
private  PointMapper pointMapper2
          The second PointerMapper object
 
Constructor Summary
Composite(PointMapper pm1, PointMapper pm2)
          Create a composite of two PointMappers.
 
Method Summary
 void inverseTransform(float[] x, float[] y)
          Performs the inverse of the composite transforms.
 void inverseTransform(float[] x, float[] y, int offset, int count)
          Performs the inverse of the composite transforms.
 void transform(float[] x, float[] y)
          Performs the Composite transforms.
 void transform(float[] x, float[] y, int offset, int count)
          Performs the composite transforms.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pointMapper1

private PointMapper pointMapper1
The first PointerMapper object


pointMapper2

private PointMapper pointMapper2
The second PointerMapper object

Constructor Detail

Composite

public Composite(PointMapper pm1,
                 PointMapper pm2)
Create a composite of two PointMappers.

Parameters:
pm1 - the first PointMapper to be applied
pm2 - the pointMapper to applied last.
Method Detail

transform

public void transform(float[] x,
                      float[] y)
               throws IllegalArgumentException
Performs the Composite transforms. First pointMapper1 applies a transform on it, then pointMapper2 applies a transform on it.

Specified by:
transform in interface PointMapper
Parameters:
x - an array containing the x coordinates
y - an array containing the y coordinates
IllegalArgumentException

transform

public void transform(float[] x,
                      float[] y,
                      int offset,
                      int count)
               throws IllegalArgumentException
Performs the composite transforms.

Specified by:
transform in interface PointMapper
Parameters:
x - an array containing the x coordinates
y - an array containing the y coordinates
offset - the starting point of the array
count - the number of points from the offset to apply the transformation
IllegalArgumentException

inverseTransform

public void inverseTransform(float[] x,
                             float[] y)
                      throws IllegalArgumentException
Performs the inverse of the composite transforms.

Specified by:
inverseTransform in interface PointMapper
Parameters:
x - an array containing the x coordinates
y - an array containing the y coordinates
IllegalArgumentException

inverseTransform

public void inverseTransform(float[] x,
                             float[] y,
                             int offset,
                             int count)
                      throws IllegalArgumentException
Performs the inverse of the composite transforms.

Specified by:
inverseTransform in interface PointMapper
Parameters:
x - an array containing the x coordinates
y - an array containing the y coordinates
offset - the starting point of the array
count - the number of points from the offset to apply the transformation
IllegalArgumentException

JIGL
v1.6

Submit a bug or feature
Revised in May 2002 by Weiming Liu