ucar.visad.display
Class IsoSurface

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.IsoSurface
Direct Known Subclasses:
Grid3DDisplayable

public abstract class IsoSurface
extends RGBDisplayable

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

Field Summary
static String CONTOUR_REAL_TYPE
          The name of the "contour real-type" property.
static String SURFACE_VALUE
          The name of the "surface value" property.
 
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 IsoSurface(IsoSurface that)
          Constructs from another instance.
  IsoSurface(String name, RealType contourRealType, boolean alphaflag)
          Constructs from a name for the Displayable and the type of the iso-surface parameter.
 
Method Summary
 RealType getContourRealType()
          Returns the RealType of the contoured parameter.
 float getSurfaceValue()
          Gets the value of the isosurface
protected  void setContourRealType(RealType realType)
          Sets the RealType of the contoured parameter.
 void setDisplayUnit(Unit unit)
          Set the units for the displayed range
protected  void setScalarMaps(ScalarMapSet maps)
          Sets the set of ScalarMap-s of this instance.
 void setSurfaceValue(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, useDisplayUnitForColor
 
Methods 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, 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
 

Field Detail

SURFACE_VALUE

public static final String SURFACE_VALUE
The name of the "surface value" property.

See Also:
Constant Field Values

CONTOUR_REAL_TYPE

public static final String CONTOUR_REAL_TYPE
The name of the "contour real-type" property.

See Also:
Constant Field Values
Constructor Detail

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 be null.
alphaflag - boolean flag whether to use transparency
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

IsoSurface

protected IsoSurface(IsoSurface that)
              throws VisADException,
                     RemoteException
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 Detail

setContourRealType

protected void setContourRealType(RealType realType)
                           throws RemoteException,
                                  VisADException
Sets the RealType of the contoured parameter.

Parameters:
realType - The RealType of the contoured parameter. May not be null.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

setDisplayUnit

public void setDisplayUnit(Unit unit)
                    throws VisADException,
                           RemoteException
Set the units for the displayed range

Overrides:
setDisplayUnit in class RGBDisplayable
Parameters:
unit - Unit for display
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

getContourRealType

public RealType getContourRealType()
Returns the RealType of the contoured parameter.

Returns:
The RealType of the contoured parameter. May be null.

setSurfaceValue

public final void setSurfaceValue(float value)
                           throws RemoteException,
                                  VisADException
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:
SURFACE_VALUE

setScalarMaps

protected void setScalarMaps(ScalarMapSet maps)
                      throws BadMappingException
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 with null for 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 invoke super.setScalarMaps(ScalarMapSet).

Overrides:
setScalarMaps in class RGBDisplayable
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