Package ucar.visad.display
Class ImageSequenceDisplayable
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.RGBDisplayable
ucar.visad.display.Grid2DDisplayable
ucar.visad.display.ImageSequenceDisplayable
- All Implemented Interfaces:
GridDisplayable
Provides support for displaying ImageSequences
- Version:
- $Revision: 1.27 $
- Author:
- Don Murray
-
Nested Class Summary
Nested classes/interfaces inherited from class ucar.visad.display.DisplayableData
DisplayableData.DragAdapter
-
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, renderer, VISIBLE
Fields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET
-
Constructor Summary
ConstructorsModifierConstructorDescriptionImageSequenceDisplayable
(String name, RealType imageType) Create a new ImageSequenceDisplayable with the given name and using the given typeImageSequenceDisplayable
(String name, RealType imageType, float[][] initialColorPalette) Create an ImageSequenceDisplayableprotected
Construct an ImageSequenceDisplayable using the data an properties of another -
Method Summary
Modifier and TypeMethodDescriptionReturns a clone of this instance suitable for another VisAD display.protected DataRenderer
Get the DataRenderer used for this Displayable.boolean
Get whether this is textured or smoothedvoid
setAlpha
(float alpha) Set the alpha.void
setColorPalette
(float[][] colorPalette) Set the color palette for the displayvoid
setImageSequence
(FieldImpl sequence) Set the data into this Displayable.void
setImageSequence
(ImageSequence sequence) Set the data into this Displayablevoid
setReUseScenes
(boolean on) Set reuse frames propertyvoid
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, 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, setColorPalette, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setScalarMapSet, setSelectedRange, setUseTimesInAnimation, toFront
-
Constructor Details
-
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 displayableimageType
- RealType for image data- Throws:
RemoteException
- Java RMI errorVisADException
- problem creating VisAD object
-
ImageSequenceDisplayable
public ImageSequenceDisplayable(String name, RealType imageType, float[][] initialColorPalette) throws VisADException, RemoteException Create an ImageSequenceDisplayable- Parameters:
name
- name for this displayableimageType
- RealType for image datainitialColorPalette
- initial color palette- Throws:
RemoteException
- Java RMI errorVisADException
- 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 errorVisADException
- problem creating VisAD object
-
-
Method Details
-
setImageSequence
Set the data into this Displayable- Parameters:
sequence
- sequence of images- Throws:
RemoteException
- Java RMI errorVisADException
- problem creating VisAD object
-
setAlpha
Set the alpha. Unused.- Parameters:
alpha
- alpha- Throws:
RemoteException
- On badnessVisADException
- On badness
-
setImageSequence
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 errorVisADException
- problem creating VisAD object
-
getDataRenderer
Get the DataRenderer used for this Displayable.- Overrides:
getDataRenderer
in classGrid2DDisplayable
- Returns:
- the DataRenderer
-
setColorPalette
Set the color palette for the display- Overrides:
setColorPalette
in classRGBDisplayable
- Parameters:
colorPalette
- colorPalette to use- Throws:
RemoteException
- Java RMI errorVisADException
- problem creating VisAD object
-
cloneForDisplay
Returns a clone of this instance suitable for another VisAD display. Underlying data objects are not cloned.- Overrides:
cloneForDisplay
in classGrid2DDisplayable
- Returns:
- A semi-deep clone of this instance.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setTextureProperties
Override superclass method to avoid adding a ConstantMap.- Overrides:
setTextureProperties
in classGrid2DDisplayable
- Parameters:
grid
- grid to use to set the properties. Can be null.- Throws:
RemoteException
- problem with remote dataVisADException
- problem with local data
-
getTextureEnable
public boolean getTextureEnable()Get whether this is textured or smoothed- Overrides:
getTextureEnable
in classGrid2DDisplayable
- Returns:
- true
-
setReUseScenes
Set reuse frames property- Parameters:
on
- true to reuse the scene graphs- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-