Package ucar.visad.display
Class IsoSurface
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.RGBDisplayable
ucar.visad.display.IsoSurface
- Direct Known Subclasses:
Grid3DDisplayable
Provides support for a Displayable that comprises an iso-surface
Supports color tables as well.
Instances of this class have the following bound properties:
| Name | Type | Access | Default | Description |
|---|---|---|---|---|
| surfaceValue | float | set/get | 0 | The displayed contour iso-surface value associated with this instance. |
| contourRealType | visad.RealType | set/get | null |
The VisAD type of the contoured quantity. |
- Version:
- $Revision: 1.15 $
- Author:
- Don Murray
-
Nested Class Summary
Nested classes/interfaces inherited from class ucar.visad.display.DisplayableData
DisplayableData.DragAdapter -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the "contour real-type" property.static final StringThe name of the "surface value" property.Fields inherited from class ucar.visad.display.RGBDisplayable
COLOR_PALETTE, POLYGON_FILL, POLYGON_LINE, POLYGON_POINT, RGB_REAL_TYPEFields inherited from class ucar.visad.display.DisplayableData
LINE_WIDTH, MANIPULABLE, renderer, VISIBLEFields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET -
Constructor Summary
ConstructorsModifierConstructorDescriptionIsoSurface(String name, RealType contourRealType, boolean alphaflag) Constructs from a name for the Displayable and the type of the iso-surface parameter.protectedIsoSurface(IsoSurface that) Constructs from another instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the RealType of the contoured parameter.final floatGets the value of the isosurfaceprotected voidsetContourRealType(RealType realType) Sets the RealType of the contoured parameter.voidsetDisplayUnit(Unit unit) Set the units for the displayed rangeprotected voidsetScalarMaps(ScalarMapSet maps) Sets the set of ScalarMap-s of this instance.final voidsetSurfaceValue(float value) Sets the "contour" value, the value of the isosurface.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, useDisplayUnitForColorMethods inherited from class ucar.visad.display.DisplayableData
addAction, cloneForDisplay, 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, toStringMethods 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
-
Field Details
-
SURFACE_VALUE
The name of the "surface value" property.- See Also:
-
CONTOUR_REAL_TYPE
The name of the "contour real-type" property.- See Also:
-
-
Constructor Details
-
IsoSurface
public IsoSurface(String name, RealType contourRealType, boolean alphaflag) throws VisADException, RemoteException Constructs from a name for the Displayable and the type of the iso-surface parameter.- Parameters:
name- The name for the displayable.contourRealType- The type of the iso-surface parameter. May benull.alphaflag- boolean flag whether to use transparency- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
IsoSurface
Constructs from another instance. The following attributes are set from the other instance: surface value, the contour RealType.- Parameters:
that- The other instance.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
-
Method Details
-
setContourRealType
Sets the RealType of the contoured parameter.- Parameters:
realType- The RealType of the contoured parameter. May not benull.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
setDisplayUnit
Set the units for the displayed range- Overrides:
setDisplayUnitin classRGBDisplayable- Parameters:
unit- Unit for display- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
getContourRealType
Returns the RealType of the contoured parameter.- Returns:
- The RealType of the contoured parameter. May
be
null.
-
setSurfaceValue
Sets the "contour" value, the value of the isosurface. This method fires a PropertyChangeEvent for SURFACE_VALUE.- Parameters:
value- The value of the isosurface.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.- See Also:
-
setScalarMaps
Sets the set of ScalarMap-s of this instance. The ScalarMap-s of this instance will be added to the set before the SCALAR_MAP_SET property is set. This method fires a PropertyChangeEvent for SCALAR_MAP_SET withnullfor the old value and the new set of ScalarMap-s for the new Value. Intermediate subclasses that have their own ScalarMap-s should override this method and invokesuper.setScalarMaps(ScalarMapSet).- Overrides:
setScalarMapsin classRGBDisplayable- Parameters:
maps- The set of ScalarMap-s to be added.- Throws:
BadMappingException- The RealType of the contour parameter has not been set or its ScalarMap is alread in the set.
-
getSurfaceValue
public final float getSurfaceValue()Gets the value of the isosurface- Returns:
- float value of the isosurface
-