Documentation of 'visad.data.CachedFlatField' Java class
CachedFlatField
visad.data

Class CachedFlatField

    • Field Detail

      • mycnt

        public final int mycnt
    • Constructor Detail

      • CachedFlatField

        public CachedFlatField(FunctionType type,
                               Set domainSet)
                        throws VisADException
        Create a new CachedFlatField
        Parameters:
        type - Function type
        domainSet - set for this
        Throws:
        VisADException - On badness
      • CachedFlatField

        public CachedFlatField(FunctionType type,
                               float[][] floats)
                        throws VisADException
        Create a new CachedFlatField
        Parameters:
        floats - The values
        type - Function type
        Throws:
        VisADException - On badness
      • CachedFlatField

        public CachedFlatField(FunctionType type,
                               Set domainSet,
                               float[][] floats)
                        throws VisADException
        Create a new CachedFlatField
        Parameters:
        floats - The values
        type - Function type
        domainSet - Domain
        Throws:
        VisADException - On badness
      • CachedFlatField

        public CachedFlatField(FunctionType type,
                               Set domainSet,
                               CoordinateSystem rangeCoordSys,
                               Set[] rangeSets,
                               Unit[] units,
                               float[][] floats)
                        throws VisADException
        Create a new CachedFlatField
        Parameters:
        type - Function type
        domainSet - Domain
        rangeCoordSys - range CoordSystem
        rangeSets - range sets
        units - units
        floats - The values
        Throws:
        VisADException - On badness
      • CachedFlatField

        public CachedFlatField(FunctionType type,
                               Set domainSet,
                               CoordinateSystem rangeCoordSys,
                               CoordinateSystem[] rangeCoordSyses,
                               Set[] rangeSets,
                               Unit[] units,
                               float[][] floats)
                        throws VisADException
        Create a new CachedFlatField
        Parameters:
        type - Function type
        domainSet - Domain
        rangeCoordSys - range CoordSystem
        rangeCoordSyses - range CoordSystem's
        rangeSets - range sets
        units - units
        floats - The values
        Throws:
        VisADException - On badness
      • CachedFlatField

        public CachedFlatField(CachedFlatField that,
                               boolean copy,
                               FunctionType type,
                               Set domainSet,
                               CoordinateSystem rangeCoordSys,
                               CoordinateSystem[] rangeCoordSysArray,
                               Set[] rangeSets,
                               Unit[] units)
                        throws VisADException
        Copy constructor
        Parameters:
        that - What we clone from
        copy - copy the values
        type - Function type
        domainSet - Domain
        rangeCoordSys - range CoordSystem
        rangeCoordSysArray - rangeCoordSysArray
        rangeSets - range sets
        units - units
        Throws:
        VisADException - On badness
    • Method Detail

      • finalize

        public void finalize()
                      throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • clone

        public java.lang.Object clone()
        Override method so we clear the caches on the cloned object
        Overrides:
        clone in class FlatField
        Returns:
        the clone
      • setSampleRanges

        public void setSampleRanges(DataRange[] sampleRanges)
        Set the sample ranges
        Parameters:
        sampleRanges - the sample ranges
      • clearCachedRange

        public void clearCachedRange()
        Clear the cached ranges
      • getRanges

        public DataRange[] getRanges(boolean force)
                              throws VisADException
        Get the ranges
        Parameters:
        force - force a recalc
        Returns:
        ranges the ranges
        Throws:
        VisADException - problem getting ranges
      • getRanges

        public DataRange[] getRanges(float[][] values)
                              throws VisADException
        Get the ranges for the values
        Parameters:
        values - the values
        Returns:
        the ranges
        Throws:
        VisADException - Problem in VisAD land
      • readData

        public float[][] readData()
        Used to provide a hook to derived classes to dynamically read in the data
        Returns:
        data
      • msg

        public void msg(java.lang.String s)
        Debug statment
        Parameters:
        s - message to print
      • haveData

        public boolean haveData()
      • getSample

        public Data getSample(int index)
                       throws VisADException,
                              java.rmi.RemoteException
        Get the range value at the index-th sample.
        Specified by:
        getSample in interface Field
        Overrides:
        getSample in class FlatField
        Parameters:
        index - index of the sample
        Returns:
        Data object (Real, RealTuple, or Tuple) corresponding to the range at the index-th sample.
        Throws:
        VisADException - problem getting data
        java.rmi.RemoteException - problem getting data from remote object
      • unpackFloats

        public float[][] unpackFloats(boolean copy)
                               throws VisADException
        get the float values
        Parameters:
        copy - copy the values
        Returns:
        The values
        Throws:
        VisADException - On badness

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.