Class HydraRGBDisplayable

java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.DisplayableData
edu.wisc.ssec.mcidasv.data.hydra.HydraRGBDisplayable

public class HydraRGBDisplayable extends ucar.visad.display.DisplayableData
  • 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 boolean
    flag for whether alpha is used or not
    private ScalarMap
    field index to Animation ScalarMap
    static final String
    The name of the "color palette" property.
    control for ScalarMap
    private ScalarMap
    color ScalarMap
    private float[][]
    Color Palette
    private String
     
    private int
    default curvedSize
    private double
    high range for colors
    private double
    high range for select
    private RealType
    RealType for the Animation ScalarMap
    private double
    low range for colors
    private double
    low range for select
    private double
    high range for select map
    private double
    low range for select map
    private HydraControl
     
    private float
    local point size
    static final int
    The polygon fill style
    static final int
    The polygon line style
    static final int
    The polygon point style
    private int
    default polygonMode
    static final String
    The name of the "RGB real-type" property.
    private RealType
    RealType for the ScalarMap
    private RangeControl
    Control for select range
    private ScalarMap
    RealType for the SelectRange ScalarMap
    private RealType
    RealType for the SelectRange ScalarMap
    private boolean
     

    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.
     
    HydraRGBDisplayable(String name, RealType rgbRealType, RealType indexRealType, boolean alphaflag, HydraControl multiSpecCntrl)
    Constructs from a name for the Displayable and the type of the RGB parameter.
     
    HydraRGBDisplayable(String name, RealType rgbRealType, RealType indexRealType, float[][] colorPalette, boolean alphaflag, ucar.unidata.util.Range initRange, HydraControl multiSpecCntrl)
     
     
    HydraRGBDisplayable(String name, RealType rgbRealType, RealType indexRealType, float[][] colorPalette, String colorPaletteName, boolean alphaflag, ucar.unidata.util.Range initRange, HydraControl multiSpecCntrl)
    Constructs from a name for the Displayable and the type of the RGB parameter.
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    applyUnit(ScalarMap colorMap, RealType rgbRealType)
    Apply the correct unit (either the displayUnit or the colorUnit) to the scalar map
    private int
    Converts an RGBDisplayable Polygon mode to the appropriate (or default) VisAD mode
     
     
    float[][]
    Return the current color palette in this Displayable
     
    int
    Return the size of a curved texture
    protected DataRenderer
     
    float
    Gets the point size associated with this LineDrawing
    int
    Return the type of polygon mode being used
    double[]
    Deprecated.
    use #getRangeForColor()
    double[]
    Get the color range
    Returns the RealType of the RGB parameter.
    Returns the RealType of the SelectRange parameter.
    boolean
    Returns whether this Displayable has a valid range (i.e., lowRange and highRange are both not NaN's
    boolean
    Returns whether this Displayable has a valid range (i.e., lowSelectedRange and highSelectedRange are both not NaN's
    private boolean
    Check to see if the range has been set for the select
    protected ConstantMap
    makeCurvedSizeMap(int curvedSize)
    Create the ConstantMap for the texture curve size
    void
    setColor(Color color)
    Make a color palette representing this color and set it as the color pallete.
    private void
    creates the ScalarMap for color and ColorControl 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; asigns null (doesn't have a name) for the name.
    void
    setColorPalette(float[][] colorPalette, String name)
    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.
    void
    Set the units for the displayed range
    void
    setCurvedSize(int curvedSize)
    Set the curved size for textured displays
    void
     
    void
    Set the units for the displayed range
    final void
    This method sets the color palette to shades of grey.
    void
     
    void
    setPointSize(float pointSize)
    Sets the size of points in this Displayable.
    void
    setPolygonMode(int polygonMode)
    Set the type of polygon display that should be used
    void
    setRange(double low, double hi)
    Deprecated.
    use setRangeForColor
    void
    setRangeForColor(double low, double hi)
    Set the upper and lower limit of the range values associated with a color table.
    void
    setRangeForSelect(double low, double hi)
    Set the upper and lower limit of the range values associated with a color table.
    void
    Sets the RealType of the RGB parameter.
    protected void
    setScalarMaps(ucar.visad.display.ScalarMapSet maps)
    Sets the set of ScalarMap-s of this instance.
    void
    setSelectedRange(double low, double hi)
    Set selected range with the range for select
    private void
     
    private void
    creates the ScalarMap for SelectRange and control for this Displayable.
    protected void
    Sets the RealType of the select parameter.
    final void
    This method with no argument sets the default Vis5D color spectrum.
    protected boolean
    Does this object use the displayUnit (or the colorUnit) for its display unit.

    Methods inherited from class ucar.visad.display.DisplayableData

    addAction, cloneForDisplay, dataChange, destroy, getActive, getAnimationSet, getData, getLineWidth, getName, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setDragAdapter, setLineWidth, setManipulable, setPickable, setPointMode, 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, setColorPalette, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setScalarMapSet, setSelectedRange, setUseTimesInAnimation, toFront

    Methods inherited from class java.lang.Object

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