Class 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 Details

    • SURFACE_VALUE

      public static final String SURFACE_VALUE
      The name of the "surface value" property.
      See Also:
    • CONTOUR_REAL_TYPE

      public static final String 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 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 Details

    • 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:
    • 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