mpicbg.models
Class InvertibleCoordinateTransformList<E extends InvertibleCoordinateTransform>

java.lang.Object
  extended by mpicbg.models.InvertibleCoordinateTransformList<E>
All Implemented Interfaces:
Serializable, Boundable, CoordinateTransform, InverseBoundable, InverseCoordinateTransform, InvertibleBoundable, InvertibleCoordinateTransform, TransformList<E>

public class InvertibleCoordinateTransformList<E extends InvertibleCoordinateTransform>
extends Object
implements InvertibleBoundable, TransformList<E>

Author:
Stephan Saalfeld
See Also:
Serialized Form

Field Summary
protected  List<E> transforms
           
 
Constructor Summary
InvertibleCoordinateTransformList()
           
 
Method Summary
 void add(E t)
           
 double[] apply(double[] location)
          Apply the CoordinateTransform to a location.
 void applyInPlace(double[] location)
          Apply the CoordinateTransform to a location.
 double[] applyInverse(double[] location)
          Apply the inverse of the model to a point location
 void applyInverseInPlace(double[] location)
          apply the inverse of the model to a point location
 void clear()
           
 InvertibleCoordinateTransformList<E> createInverse()
           
 void estimateBounds(double[] min, double[] max)
          Estimate the bounds of an n-dimensional interval [min,max] with min and max being n-dimensional vectors.
 void estimateInverseBounds(double[] min, double[] max)
          Estimate the bounds of an n-dimensional interval [min,max] with min and max being n-dimensional vectors.
 E get(int i)
           
 List<E> getList(List<E> preAllocatedList)
           
 void remove(E t)
           
 E remove(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transforms

protected final List<E extends InvertibleCoordinateTransform> transforms
Constructor Detail

InvertibleCoordinateTransformList

public InvertibleCoordinateTransformList()
Method Detail

add

public void add(E t)
Specified by:
add in interface TransformList<E extends InvertibleCoordinateTransform>

remove

public void remove(E t)
Specified by:
remove in interface TransformList<E extends InvertibleCoordinateTransform>

remove

public E remove(int i)
Specified by:
remove in interface TransformList<E extends InvertibleCoordinateTransform>

get

public E get(int i)
Specified by:
get in interface TransformList<E extends InvertibleCoordinateTransform>

clear

public final void clear()
Specified by:
clear in interface TransformList<E extends InvertibleCoordinateTransform>

getList

public final List<E> getList(List<E> preAllocatedList)
Specified by:
getList in interface TransformList<E extends InvertibleCoordinateTransform>

apply

public final double[] apply(double[] location)
Description copied from interface: CoordinateTransform
Apply the CoordinateTransform to a location.

Specified by:
apply in interface CoordinateTransform
Returns:
transformed location

applyInPlace

public final void applyInPlace(double[] location)
Description copied from interface: CoordinateTransform
Apply the CoordinateTransform to a location.

Specified by:
applyInPlace in interface CoordinateTransform

applyInverse

public final double[] applyInverse(double[] location)
                            throws NoninvertibleModelException
Description copied from interface: InverseCoordinateTransform
Apply the inverse of the model to a point location

Specified by:
applyInverse in interface InverseCoordinateTransform
Returns:
transformed point
Throws:
NoninvertibleModelException

applyInverseInPlace

public final void applyInverseInPlace(double[] location)
                               throws NoninvertibleModelException
Description copied from interface: InverseCoordinateTransform
apply the inverse of the model to a point location

Specified by:
applyInverseInPlace in interface InverseCoordinateTransform
Throws:
NoninvertibleModelException

estimateBounds

public void estimateBounds(double[] min,
                           double[] max)
Estimate the bounds of an n-dimensional interval [min,max] with min and max being n-dimensional vectors. Estimate the bounds approximately by iteration over a fixed grid of exemplary locations. TODO Find a better solution.

Specified by:
estimateBounds in interface Boundable

estimateInverseBounds

public void estimateInverseBounds(double[] min,
                                  double[] max)
                           throws NoninvertibleModelException
Estimate the bounds of an n-dimensional interval [min,max] with min and max being n-dimensional vectors. Estimate the bounds approximately by iteration over a fixed grid of exemplary locations. TODO Find a better solution.

Specified by:
estimateInverseBounds in interface InverseBoundable
Throws:
NoninvertibleModelException

createInverse

public InvertibleCoordinateTransformList<E> createInverse()
Specified by:
createInverse in interface InvertibleCoordinateTransform


Copyright © 2007-2016 Fiji. All Rights Reserved.