Package ucar.visad.display
Class Grid3DDisplayable
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.RGBDisplayable
ucar.visad.display.IsoSurface
ucar.visad.display.Grid3DDisplayable
- All Implemented Interfaces:
GridDisplayable
A class to support showing 3D gridded data as an IsoSurface
- Version:
- $Revision: 1.20 $
- Author:
- IDV Development Team
-
Nested Class Summary
Nested classes/interfaces inherited from class ucar.visad.display.DisplayableData
DisplayableData.DragAdapter
-
Field Summary
Fields inherited from class ucar.visad.display.IsoSurface
CONTOUR_REAL_TYPE, SURFACE_VALUE
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
ConstructorsConstructorDescriptionGrid3DDisplayable
(String name, boolean alphaflag) Constructs an instance with the supplied name and alphaflag. -
Method Summary
Modifier and TypeMethodDescriptionReturns a clone of this instance suitable for another VisAD display.void
Load data into this Displayable.void
setColoredByAnother
(boolean yesno) Set whether this GridDisplayable should have the data colored by another parameter.void
Set the data into the Displayableprotected boolean
Does this object use the displayUnit (or the colorUnit) for its display unit.Methods inherited from class ucar.visad.display.IsoSurface
getContourRealType, getSurfaceValue, setContourRealType, setDisplayUnit, setScalarMaps, setSurfaceValue
Methods inherited from class ucar.visad.display.RGBDisplayable
getAutoScaleColorRange, getColorPalette, getCurvedSize, getPolygonMode, getRangeforColor, getRangeForColor, getRGBRealType, getSelectRealType, getUseRGBTypeForSelect, hasRange, hasSelectedRange, makeCurvedSizeMap, setAutoScaleColorRange, setColor, setColorPalette, setColorUnit, setCurvedSize, setGreyPalette, setPolygonMode, setRange, setRangeForColor, setRangeForSelect, setRGBRealType, setSelectedRange, setSelectRealType, setUseRGBTypeForSelect, setVisADPalette
Methods inherited from class ucar.visad.display.DisplayableData
addAction, dataChange, destroy, getActive, getAnimationSet, getData, getDataRenderer, 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, setColorPalette, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setScalarMapSet, setSelectedRange, setUseTimesInAnimation, toFront
-
Constructor Details
-
Grid3DDisplayable
Constructs an instance with the supplied name and alphaflag.- Parameters:
name
- a String identifieralphaflag
- boolean flag whether to use transparency- Throws:
VisADException
- from construction of super classRemoteException
- from construction of super class
-
-
Method Details
-
useDisplayUnitForColor
protected boolean useDisplayUnitForColor()Does this object use the displayUnit (or the colorUnit) for its display unit. If we have the case where this isosurface is colored by another field then this returns false.- Overrides:
useDisplayUnitForColor
in classRGBDisplayable
- Returns:
- true if the display unit is also the color unit.
-
setGrid3D
Set the data into the Displayable- Parameters:
field
- a VisAD FlatField with a 3D nature- Throws:
VisADException
- from construction of VisAd objectsRemoteException
- from construction of VisAD objects
-
loadData
Load data into this Displayable.- Specified by:
loadData
in interfaceGridDisplayable
- Parameters:
field
- field representing the data- 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 classDisplayableData
- Returns:
- A semi-deep clone of this instance.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setColoredByAnother
public void setColoredByAnother(boolean yesno) Set whether this GridDisplayable should have the data colored by another parameter.- Specified by:
setColoredByAnother
in interfaceGridDisplayable
- Parameters:
yesno
- true if colored by another
-