ucar.visad.display
Class ImageSequenceDisplayable

java.lang.Object
  extended by ucar.visad.display.Displayable
      extended by ucar.visad.display.DisplayableData
          extended by ucar.visad.display.RGBDisplayable
              extended by ucar.visad.display.Grid2DDisplayable
                  extended by ucar.visad.display.ImageSequenceDisplayable
All Implemented Interfaces:
GridDisplayable

public class ImageSequenceDisplayable
extends Grid2DDisplayable

Provides support for displaying ImageSequences

Version:
$Revision: 1.27 $
Author:
Don Murray

Field Summary
 
Fields inherited from class ucar.visad.display.RGBDisplayable
COLOR_PALETTE, POLYGON_FILL, POLYGON_LINE, POLYGON_POINT, RGB_REAL_TYPE
 
Fields inherited from class ucar.visad.display.DisplayableData
LINE_WIDTH, MANIPULABLE, VISIBLE
 
Fields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET
 
Constructor Summary
protected ImageSequenceDisplayable(ImageSequenceDisplayable that)
          Construct an ImageSequenceDisplayable using the data an properties of another
  ImageSequenceDisplayable(String name, RealType imageType)
          Create a new ImageSequenceDisplayable with the given name and using the given type
  ImageSequenceDisplayable(String name, RealType imageType, float[][] initialColorPalette)
          Create an ImageSequenceDisplayable
 
Method Summary
 Displayable cloneForDisplay()
          Returns a clone of this instance suitable for another VisAD display.
protected  DataRenderer getDataRenderer()
          Get the DataRenderer used for this Displayable.
 boolean getTextureEnable()
          Get whether this is textured or smoothed
 void setAlpha(float alpha)
          Set the alpha.
 void setColorPalette(float[][] colorPalette)
          Set the color palette for the display
 void setImageSequence(FieldImpl sequence)
          Set the data into this Displayable.
 void setImageSequence(ImageSequence sequence)
          Set the data into this Displayable
 void setReUseScenes(boolean on)
          Set reuse frames property
 void setTextureProperties(FieldImpl grid)
          Override superclass method to avoid adding a ConstantMap.
 
Methods inherited from class ucar.visad.display.Grid2DDisplayable
getCurvedSize, getMissingTransparent, getUseDefaultRenderer, loadData, makeTextureMap, myAddConstantMaps, setColoredByAnother, setCurvedSize, setGrid2D, setMissingTransparent, setTextureEnable, setUseDefaultRenderer
 
Methods inherited from class ucar.visad.display.RGBDisplayable
getAutoScaleColorRange, getColorPalette, getPolygonMode, getRangeforColor, getRangeForColor, getRGBRealType, getSelectRealType, getUseRGBTypeForSelect, hasRange, hasSelectedRange, makeCurvedSizeMap, setAutoScaleColorRange, setColor, setColorUnit, setDisplayUnit, setGreyPalette, setPolygonMode, setRange, setRangeForColor, setRangeForSelect, setRGBRealType, setScalarMaps, setSelectedRange, setSelectRealType, setUseRGBTypeForSelect, setVisADPalette, useDisplayUnitForColor
 
Methods inherited from class ucar.visad.display.DisplayableData
addAction, dataChange, destroy, getActive, getAnimationSet, getData, getLineWidth, getName, getPointSize, hasData, hasDataObject, isManipulable, isPickable, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setLineWidth, setManipulable, setPickable, setPointMode, setPointSize, setUseFastRendering, setVisible, toString
 
Methods inherited from class ucar.visad.display.Displayable
addConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, 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
 

Constructor Detail

ImageSequenceDisplayable

public ImageSequenceDisplayable(String name,
                                RealType imageType)
                         throws VisADException,
                                RemoteException
Create a new ImageSequenceDisplayable with the given name and using the given type

Parameters:
name - name for this displayable
imageType - RealType for image data
Throws:
RemoteException - Java RMI error
VisADException - problem creating VisAD object

ImageSequenceDisplayable

public ImageSequenceDisplayable(String name,
                                RealType imageType,
                                float[][] initialColorPalette)
                         throws VisADException,
                                RemoteException
Create an ImageSequenceDisplayable

Parameters:
name - name for this displayable
imageType - RealType for image data
initialColorPalette - initial color palette
Throws:
RemoteException - Java RMI error
VisADException - problem creating VisAD object

ImageSequenceDisplayable

protected ImageSequenceDisplayable(ImageSequenceDisplayable that)
                            throws VisADException,
                                   RemoteException
Construct an ImageSequenceDisplayable using the data an properties of another

Parameters:
that - the other ImageSequenceDisplayable
Throws:
RemoteException - Java RMI error
VisADException - problem creating VisAD object
Method Detail

setImageSequence

public void setImageSequence(ImageSequence sequence)
                      throws VisADException,
                             RemoteException
Set the data into this Displayable

Parameters:
sequence - sequence of images
Throws:
RemoteException - Java RMI error
VisADException - problem creating VisAD object

setAlpha

public void setAlpha(float alpha)
              throws RemoteException,
                     VisADException
Set the alpha. Unused.

Parameters:
alpha - alpha
Throws:
RemoteException - On badness
VisADException - On badness

setImageSequence

public void setImageSequence(FieldImpl sequence)
                      throws VisADException,
                             RemoteException
Set the data into this Displayable. Data does not have to be an ImageSequence, but does have to be a sequence of images

Parameters:
sequence - sequence of images
Throws:
RemoteException - Java RMI error
VisADException - problem creating VisAD object

getDataRenderer

protected DataRenderer getDataRenderer()
Get the DataRenderer used for this Displayable.

Overrides:
getDataRenderer in class Grid2DDisplayable
Returns:
the DataRenderer

setColorPalette

public void setColorPalette(float[][] colorPalette)
                     throws RemoteException,
                            VisADException
Set the color palette for the display

Overrides:
setColorPalette in class RGBDisplayable
Parameters:
colorPalette - colorPalette to use
Throws:
RemoteException - Java RMI error
VisADException - problem creating VisAD object

cloneForDisplay

public Displayable cloneForDisplay()
                            throws RemoteException,
                                   VisADException
Returns a clone of this instance suitable for another VisAD display. Underlying data objects are not cloned.

Overrides:
cloneForDisplay in class Grid2DDisplayable
Returns:
A semi-deep clone of this instance.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

setTextureProperties

public void setTextureProperties(FieldImpl grid)
                          throws VisADException,
                                 RemoteException
Override superclass method to avoid adding a ConstantMap.

Overrides:
setTextureProperties in class Grid2DDisplayable
Parameters:
grid - grid to use to set the properties. Can be null.
Throws:
RemoteException - problem with remote data
VisADException - problem with local data

getTextureEnable

public boolean getTextureEnable()
Get whether this is textured or smoothed

Overrides:
getTextureEnable in class Grid2DDisplayable
Returns:
true

setReUseScenes

public void setReUseScenes(boolean on)
                    throws RemoteException,
                           VisADException
Set reuse frames property

Parameters:
on - true to reuse the scene graphs
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.