mpicbg.models
Class CoordinateTransformList<E extends CoordinateTransform>

java.lang.Object
  extended by mpicbg.models.CoordinateTransformList<E>
All Implemented Interfaces:
Serializable, Boundable, CoordinateTransform, TransformList<E>

public class CoordinateTransformList<E extends CoordinateTransform>
extends Object
implements Boundable, TransformList<E>

TODO Think about if it should really implement Boundable. There is no adequate solution for estimating the bounding box correctly instead of approximative as implemented here.

Author:
Stephan Saalfeld
See Also:
Serialized Form

Field Summary
protected  List<E> transforms
           
 
Constructor Summary
CoordinateTransformList()
           
 
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.
 void clear()
           
 void estimateBounds(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 CoordinateTransform> transforms
Constructor Detail

CoordinateTransformList

public CoordinateTransformList()
Method Detail

add

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

remove

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

remove

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

get

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

clear

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

getList

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

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

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


Copyright © 2007-2016 Fiji. All Rights Reserved.