ilog.views.maps.srs.coordtrans
Class IlvConcatenatedTransform

java.lang.Object
  extended by ilog.views.maps.srs.coordtrans.IlvConcatenatedTransform
All Implemented Interfaces:
IlvPersistentObject, IlvMathTransform

public class IlvConcatenatedTransform
extends Object
implements IlvMathTransform, IlvPersistentObject

A transformation made of the concatenation of multiple transformations.

Since:
JViews 5.0

Constructor Summary
IlvConcatenatedTransform(IlvInputStream stream)
          Reads an IlvAbridgedMolodenskyTransformation from the specified input stream.
IlvConcatenatedTransform(IlvMathTransform[] ct)
          Constructs a concatenated transformation with the specified transformations.
 
Method Summary
 IlvMathTransform getInverse()
          Returns the inverse transformation of this transformation.
 int getSourceDimension()
          Returns the dimension of source coordinates.
 int getTargetDimension()
          Returns the dimension of target coordinates.
 boolean isIdentity()
          Returns true if this transformation is an identity.
 IlvCoordinate[] transform(IlvCoordinate[] sourceCP, IlvCoordinate[] result)
          Applies the transformation to an array of coordinates.
 IlvCoordinate transform(IlvCoordinate sourceCP, IlvCoordinate result)
          Transforms the specified source point.
 void write(IlvOutputStream stream)
          Writes this transformation to the specified output file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvConcatenatedTransform

public IlvConcatenatedTransform(IlvMathTransform[] ct)
Constructs a concatenated transformation with the specified transformations.


IlvConcatenatedTransform

public IlvConcatenatedTransform(IlvInputStream stream)
                         throws IlvReadFileException
Reads an IlvAbridgedMolodenskyTransformation from the specified input stream.

Parameters:
stream - The IlvInputStream.
Throws:
IlvReadFileException - If a transformation cannot be read from the input stream.
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Writes this transformation to the specified output file.

Specified by:
write in interface IlvPersistentObject
Parameters:
stream - The IlvOutputStream.
Throws:
IOException - If an error occurs.

getSourceDimension

public int getSourceDimension()
Returns the dimension of source coordinates.

Specified by:
getSourceDimension in interface IlvMathTransform

getTargetDimension

public int getTargetDimension()
Returns the dimension of target coordinates.

Specified by:
getTargetDimension in interface IlvMathTransform

transform

public IlvCoordinate transform(IlvCoordinate sourceCP,
                               IlvCoordinate result)
                        throws IlvCoordinateTransformationException
Transforms the specified source point.

Specified by:
transform in interface IlvMathTransform
Throws:
IlvCoordinateTransformationException

transform

public IlvCoordinate[] transform(IlvCoordinate[] sourceCP,
                                 IlvCoordinate[] result)
                          throws IlvCoordinateTransformationException
Applies the transformation to an array of coordinates.

Specified by:
transform in interface IlvMathTransform
Throws:
IlvCoordinateTransformationException

getInverse

public IlvMathTransform getInverse()
Returns the inverse transformation of this transformation.

Specified by:
getInverse in interface IlvMathTransform

isIdentity

public boolean isIdentity()
Returns true if this transformation is an identity.

Specified by:
isIdentity in interface IlvMathTransform


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.