|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cts.IdentifiableComponent
org.cts.op.AbstractCoordinateOperation
org.cts.op.CoordinateOperationSequence
public class CoordinateOperationSequence
A coordinate operation sequence can transform a coordinate through several ordered CoordinateOperations.
| Field Summary |
|---|
| Fields inherited from class org.cts.op.AbstractCoordinateOperation |
|---|
precision |
| Fields inherited from interface org.cts.Identifiable |
|---|
DEFAULT, LOCAL, UNKNOWN |
| Constructor Summary | |
|---|---|
CoordinateOperationSequence(Identifier identifier,
CoordinateOperation... sequence)
Create a CoordinateOperationSequence from an identifier and an array of CoordinateOperations. |
|
CoordinateOperationSequence(Identifier identifier,
CoordinateOperation[] sequence,
double precision)
Create a CoordinateOperationSequence from an identifier an array of CoordinateOperations and a precision. |
|
CoordinateOperationSequence(Identifier identifier,
List<CoordinateOperation> list)
Create a CoordinateOperationSequence from an identifier and a List of CoordinateOperations. |
|
CoordinateOperationSequence(Identifier identifier,
List<CoordinateOperation> list,
double precision)
Creates a CoordinateOperationSequence from an identifier, a List of CoordinateOperations and a precision. |
|
| Method Summary | |
|---|---|
static List<CoordinateOperation> |
cleverAdd(List<CoordinateOperation> ops,
CoordinateOperation op)
cleverAdd add cleverly a CoordinateOperation in a list of CoordinateOperations by removing the last element of list if it is the inverse of the element to add. |
boolean |
equals(Object o)
Returns true if object is equals to this. |
int |
hashCode()
Returns the hash code for this CoordinateOperationSequence. |
CoordinateOperation |
inverse()
Creates the inverse CoordinateOperation. |
String |
toString()
Returns a String representation of this CoordinateOperationSequence. |
double[] |
transform(double[] coord)
Implementation of the transform method for a sequence of transformation. |
| Methods inherited from class org.cts.op.AbstractCoordinateOperation |
|---|
getPrecision |
| Methods inherited from class org.cts.IdentifiableComponent |
|---|
addAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getComponent, getIdentifier, getName, getRemarks, getShortName, setIdentifier, setRemarks, setShortName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.cts.Identifiable |
|---|
addAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getName, getRemarks, getShortName, setRemarks, setShortName |
| Constructor Detail |
|---|
public CoordinateOperationSequence(Identifier identifier,
CoordinateOperation... sequence)
org.cts.CoordinateOperation.
identifier - this operation sequence identifiersequence - an array containing ordered operations to apply to
coordinates
public CoordinateOperationSequence(Identifier identifier,
List<CoordinateOperation> list)
org.cts.CoordinateOperation.
identifier - this operation sequence identifierlist - a list containing ordered operations to apply to coordinates
public CoordinateOperationSequence(Identifier identifier,
CoordinateOperation[] sequence,
double precision)
identifier - this operation sequence identifiersequence - a list containing ordered operations to apply to
coordinatesprecision - precision of this CoordinateOperation as a whole.
public CoordinateOperationSequence(Identifier identifier,
List<CoordinateOperation> list,
double precision)
identifier - this operation sequence identifierlist - a list containing ordered operations to apply to coordinatesprecision - precision of this CoordinateOperation as a whole.| Method Detail |
|---|
public double[] transform(double[] coord)
throws IllegalCoordinateException
org.cts.CoordinateOperations.
transform in interface CoordinateOperationtransform in class AbstractCoordinateOperationcoord - the 3D coord to transform
IllegalCoordinateException - if coord is not
compatible with this CoordinateOperation.
public CoordinateOperation inverse()
throws NonInvertibleOperationException
inverse in interface CoordinateOperationinverse in class AbstractCoordinateOperationNonInvertibleOperationException
public static List<CoordinateOperation> cleverAdd(List<CoordinateOperation> ops,
CoordinateOperation op)
op is the Identity transformation, it is added only if
ops is empty. NB2: If
ops contains only the identity transformation, it is
replaced by
op.
ops - the list in which the CoordinateOperation should be addedop - the CoordinateOperation to add list)public String toString()
toString in class IdentifiableComponentpublic boolean equals(Object o)
this. Tests equality between the length of the sequences and
then the equality of each CoordinateOperation.
equals in class IdentifiableComponentobject - The object to compare this CoordinateOperationSequence
againstpublic int hashCode()
hashCode in class IdentifiableComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||