Class BarrelPincushionFilter


public class BarrelPincushionFilter extends Filter
This is a Filter that applies radial transformations to an image.
Version:
1.0
Author:
Douglas Brown
  • Field Details

    • minAlpha

      protected static double minAlpha
    • maxAlpha

      protected static double maxAlpha
    • minScale

      protected static double minScale
    • maxScale

      protected static double maxScale
  • Constructor Details

    • BarrelPincushionFilter

      public BarrelPincushionFilter()
      Constructor.
  • Method Details

    • newInspector

      protected Filter.InspectorDlg newInspector()
      Specified by:
      newInspector in class Filter
    • initInspector

      protected Filter.InspectorDlg initInspector()
      Specified by:
      initInspector in class Filter
    • refresh

      public void refresh()
      Refreshes this filter's GUI
      Overrides:
      refresh in class Filter
    • setAlpha

      public void setAlpha(double a)
    • setScale

      public void setScale(double scale)
    • initializeSubclass

      protected void initializeSubclass()
      Creates the input and output images.
      Specified by:
      initializeSubclass in class Filter
      Parameters:
      image - a new input image
    • initializeSource

      protected void initializeSource(BufferedImage image)
      Overrides:
      initializeSource in class Filter
    • setOutputPixels

      protected void setOutputPixels()
      Sets the output image pixels to a transformed version of the input pixels.
      Specified by:
      setOutputPixels in class Filter
      Parameters:
      input - the input image
    • superIsEnabled

      public boolean superIsEnabled()
      for inner anonymous class; could use qualified super
      Returns:
    • getLoader

      public static XML.ObjectLoader getLoader()
      Returns an XML.ObjectLoader to save and load filter data.
      Returns:
      the object loader