Class ImageRGBDisplayable

java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.DisplayableData
edu.wisc.ssec.mcidasv.data.hydra.ImageRGBDisplayable
All Implemented Interfaces:
ucar.visad.display.GridDisplayable

public class ImageRGBDisplayable extends ucar.visad.display.DisplayableData implements ucar.visad.display.GridDisplayable
Provides support for a Displayable that needs a map to (Display.Red,Display.Green,Display.Blue)
Version:
$Revision$
Author:
IDV development team
  • Nested Class Summary

    Nested classes/interfaces inherited from class ucar.visad.display.DisplayableData

    ucar.visad.display.DisplayableData.DragAdapter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private ScalarMap[]
    color ScalarMaps
    private float[][]
    color palette
    color MathType
    private boolean
    flag for whether we use Alpha channel or not
    What do we map with

    Fields inherited from class ucar.visad.display.DisplayableData

    LINE_WIDTH, MANIPULABLE, renderer, VISIBLE

    Fields inherited from class ucar.visad.display.Displayable

    DISPLAY, parent, SCALAR_MAP_SET
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructs from another instance.
     
    Constructs from a name for the Displayable and the type of the RGB parameter.
     
    ImageRGBDisplayable(String name, boolean doAlpha)
    Constructs from a name for the Displayable and the type of the RGB parameter.
     
    ImageRGBDisplayable(String name, float[][] colorPalette, boolean doAlpha)
    Constructs from a name for the Displayable and the type of the RGB parameter.
     
    ImageRGBDisplayable(String name, float[][] colorPalette, boolean doAlpha, FieldImpl field)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float[][]
    Return the current color palette in this Displayable
    Get the RealTupleType of the RGB parameter.
    protected DataRenderer
     
    Deprecated.
    use getColorTupleType()
    void
    Set the data into the Displayable; set RGB Type
    void
    setAlpha(float alpha)
    Set the alpha.
    void
    setColoredByAnother(boolean yesno)
    Set whether this GridDisplayable should have the data colored by another parameter.
    private void
    creates the ScalarMaps for color for this Displayable.
    void
    setColorPalette(float[][] colorPalette)
    This method sets the color palette according to the color table in argument; pair this method with setRange(lo,high) to get a fixed association of color table and range of values.
    private void
    setColorsInControls(float[][] colorPalette)
    Set colors for the controls of all color maps.
    private void
    setColorsInControls(float[][] colorPalette, int colorMapIndex)
    Set colors for the control defined by the given colorMapIndex (0, 1, or 2).
    protected void
    Sets the RealTupleType of the RGB parameter.
    void
    Set the display.
    protected void
    setScalarMaps(ucar.visad.display.ScalarMapSet maps)
    Sets the set of ScalarMap-s of this instance.

    Methods inherited from class ucar.visad.display.DisplayableData

    addAction, cloneForDisplay, dataChange, destroy, getActive, getAnimationSet, getData, getLineWidth, getName, getPointSize, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setDragAdapter, setLineWidth, setManipulable, setPickable, setPointMode, setPointSize, setUseFastRendering, setVisible, showme, toString

    Methods inherited from class ucar.visad.display.Displayable

    addConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getDestroyed, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, isActive, isUnitCompatible, isVisible, logException, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setAdjustFlow, setColor, setColorPalette, setColorUnit, setConstantPosition, setContourInfo, setDisplayActive, setDisplayInactive, setDisplayMaster, setDisplayUnit, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange, setSelectedRange, setUseTimesInAnimation, toFront

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait