de.fhpotsdam.unfolding.texture
Class AbstractLensDistorter

java.lang.Object
  extended by de.fhpotsdam.unfolding.texture.AbstractLensDistorter
All Implemented Interfaces:
Distorter
Direct Known Subclasses:
LinearInterpolationDistorter, ScaleInterpolationDistorter

public abstract class AbstractLensDistorter
extends java.lang.Object
implements Distorter


Field Summary
protected  processing.core.PVector center
           
protected static float DEFAULT_ZOOM
           
 
Constructor Summary
AbstractLensDistorter()
           
 
Method Summary
 void distort(processing.core.PVector origCoord, processing.core.PVector distCoord, int value)
           
protected abstract  float interpolateRadius(float radius)
           
 void setCenter(float x, float y)
           
 void setCenter(processing.core.PVector center)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ZOOM

protected static final float DEFAULT_ZOOM
See Also:
Constant Field Values

center

protected processing.core.PVector center
Constructor Detail

AbstractLensDistorter

public AbstractLensDistorter()
Method Detail

setCenter

public void setCenter(processing.core.PVector center)

setCenter

public void setCenter(float x,
                      float y)

distort

public void distort(processing.core.PVector origCoord,
                    processing.core.PVector distCoord,
                    int value)
Specified by:
distort in interface Distorter

interpolateRadius

protected abstract float interpolateRadius(float radius)