project.android.imageprocessing.filter.effect
Class GlassSphereFilter

java.lang.Object
  extended by project.android.imageprocessing.GLRenderer
      extended by project.android.imageprocessing.input.GLTextureOutputRenderer
          extended by project.android.imageprocessing.filter.BasicFilter
              extended by project.android.imageprocessing.filter.effect.BulgeDistortionFilter
                  extended by project.android.imageprocessing.filter.effect.SphereRefractionFilter
                      extended by project.android.imageprocessing.filter.effect.GlassSphereFilter
All Implemented Interfaces:
GLTextureInputRenderer

public class GlassSphereFilter
extends SphereRefractionFilter

Same as the GPUImageSphereRefractionFilter, only the image is not inverted and there's a little bit of frosting at the edges of the glass center: The center about which to apply the distortion radius: The radius of the distortion, ranging from 0.0 to 1.0 refractiveIndex: The index of refraction for the sphere

Author:
Chris Batt

Field Summary
 
Fields inherited from class project.android.imageprocessing.GLRenderer
ATTRIBUTE_POSITION, ATTRIBUTE_TEXCOORD, UNIFORM_TEXTURE0, VARYING_TEXCOORD
 
Constructor Summary
GlassSphereFilter(android.graphics.PointF center, float radius, float refractiveIndex, float aspectRatio)
           
 
Method Summary
 
Methods inherited from class project.android.imageprocessing.filter.BasicFilter
newTextureReady
 
Methods inherited from class project.android.imageprocessing.input.GLTextureOutputRenderer
addTarget, destroy, getLockObject, getTargets, removeTarget
 
Methods inherited from class project.android.imageprocessing.GLRenderer
getBackgroundAlpha, getBackgroundBlue, getBackgroundGreen, getBackgroundRed, getHeight, getWidth, onDrawFrame, reInitialize, rotateClockwise90Degrees, rotateCounterClockwise90Degrees, setBackgroundAlpha, setBackgroundBlue, setBackgroundColour, setBackgroundGreen, setBackgroundRed, setRenderSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlassSphereFilter

public GlassSphereFilter(android.graphics.PointF center,
                         float radius,
                         float refractiveIndex,
                         float aspectRatio)