Class RGBCompositeControl

All Implemented Interfaces:
ActionListener, ItemListener, PropertyChangeListener, EventListener, HyperlinkListener, Sharable, DataChangeListener, DisplayControl, Prototypable, ControlListener, DisplayListener

public class RGBCompositeControl extends DisplayControlImpl
  • Field Details

  • Constructor Details

    • RGBCompositeControl

      public RGBCompositeControl()
  • Method Details

    • init

      public boolean init(DataChoice dataChoice) throws VisADException, RemoteException
      Description copied from class: DisplayControlImpl

      Initialize this instance according to a data choice. Subclasses should override this method. Overridding methods should probably invoke DisplayControlImpl.setData(DataChoice) as part of their initialization procedure -- although it is unclear when this is actually necessary.

      This implementation simply returns true.

      Overrides:
      init in class DisplayControlImpl
      Parameters:
      dataChoice - A data choice or null.
      Returns:
      true if and only if this instance was correctly initialized by the data choice.
      Throws:
      VisADException - if a VisAD Failure occurs.
      RemoteException - if a Java RMI failure occurs.
    • initDone

      public void initDone()
      Description copied from class: DisplayControlImpl
      Called after all initialization has been done. A hook that allows derived classes to do any further initialization.
      Overrides:
      initDone in class DisplayControlImpl
    • getDataProjection

      public MapProjection getDataProjection()
      Description copied from class: DisplayControlImpl
      get MapProjection of data to display
      Specified by:
      getDataProjection in interface DisplayControl
      Overrides:
      getDataProjection in class DisplayControlImpl
      Returns:
      The native projection of the data
    • setRedRange

      public void setRedRange(double[] range)
    • getRedRange

      public double[] getRedRange()
    • setGrnRange

      public void setGrnRange(double[] range)
    • getGrnRange

      public double[] getGrnRange()
    • setBluRange

      public void setBluRange(double[] range)
    • getBluRange

      public double[] getBluRange()
    • setRedGamma

      public void setRedGamma(double gamma)
    • getRedGamma

      public double getRedGamma()
    • setGrnGamma

      public void setGrnGamma(double gamma)
    • getGrnGamma

      public double getGrnGamma()
    • setBluGamma

      public void setBluGamma(double gamma)
    • getBluGamma

      public double getBluGamma()
    • setGamma

      public void setGamma(double gamma)
    • getGamma

      public double getGamma()
    • correctRayleighVisible

      public static FieldImpl correctRayleighVisible(FieldImpl visibleField, FieldImpl satelliteZenithField, FieldImpl solarZenithField, FieldImpl satelliteAzimuthField, FieldImpl solarAzimuthField, double wavelengthVisible, double atmosphericPressure) throws VisADException, RemoteException
      Computes a Rayleigh scattering corrected 2D grid for visible range data.
      Parameters:
      visibleField - 2D grid of remote sensing data in the visible range (assuming it represents top-of-atmosphere radiance or reflectance).
      satelliteZenithField - 2D grid of satellite zenith angles (in degrees).
      solarZenithField - 2D grid of solar zenith angles (in degrees).
      satelliteAzimuthField - 2D grid of satellite azimuth angles (in degrees).
      solarAzimuthField - 2D grid of solar azimuth angles (in degrees).
      wavelengthVisible - Wavelength of the visible band (in micrometers).
      atmosphericPressure - Atmospheric pressure at the surface (in hPa).
      Returns:
      A 2D grid representing the Rayleigh scattering corrected data.
      Throws:
      IllegalArgumentException - if input grid dimensions are inconsistent.
      VisADException
      RemoteException
    • getZeroOutArray

      public float[][] getZeroOutArray(float[][] array)
    • getInitialColorTable

      protected ColorTable getInitialColorTable()
      Description copied from class: DisplayControlImpl
      A hook so derived classes can return a colortable. This method uses the DisplayConventions to get the color table based on the paramName
      Overrides:
      getInitialColorTable in class DisplayControlImpl
      Returns:
      The color table to use
    • doMakeContents

      public Container doMakeContents()
      Description copied from class: DisplayControlImpl
      Make Gui contents
      Overrides:
      doMakeContents in class DisplayControlImpl
      Returns:
      User interface contents