Documentation of 'visad.SampledSet' Java class
SampledSet
visad

Class SampledSet

    • Method Detail

      • finalize

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

        public static void setCacheSizeThreshold(int threshold)
        Parameters:
        threshold -
      • cram_missing

        public void cram_missing(boolean[] range_select)
        Specified by:
        cram_missing in interface SetIface
        Overrides:
        cram_missing in class Set
        Parameters:
        range_select -
      • isMissing

        public boolean isMissing()
        Specified by:
        isMissing in interface Data
        Returns:
        true or false
      • getSamples

        public float[][] getSamples()
                             throws VisADException

        Returns a copy of the samples of this instance. Element [i][j] of the returned array is the j-th value of the i-th component.

        This method is equivalent to getSamples(true).

        Specified by:
        getSamples in interface SetIface
        Overrides:
        getSamples in class Set
        Returns:
        A copy of the sample array.
        Throws:
        VisADException
        See Also:
        getSamples(boolean)
      • getSamples

        public float[][] getSamples(boolean copy)
                             throws VisADException

        Returns the samples of this instance or a copy of the samples.

        Note that, if the actual sample array is returned, then it is possible to modify the values of this instance -- breaking the immutability aspect of this class. Don't do this unless you enjoy debugging.

        Specified by:
        getSamples in interface SetIface
        Overrides:
        getSamples in class Set
        Parameters:
        copy - Whether or not a copy of the sample array should be returned.
        Returns:
        The sample array is copy is false; otherwise, a copy of the sample array.
        Throws:
        VisADException
      • make3DGeometry

        public VisADGeometryArray[] make3DGeometry(byte[][] color_values)
                                            throws VisADException
        create a 3-D GeometryArray from this Set and color_values; NOTE - this version only makes points; NOTE - when textures are supported by Java3D the Gridded3DSet implementation of make3DGeometry should use Texture3D, and the Irregular3DSet implementation should resample to a Gridded3DSet and use Texture3D; only used by Irregular3DSet and Gridded3DSet
        Specified by:
        make3DGeometry in interface SetIface
        Overrides:
        make3DGeometry in class Set
        Parameters:
        color_values -
        Returns:
        arrays of VisADGeometryArray
        Throws:
        VisADException
      • setGeometryArray

        public void setGeometryArray(VisADGeometryArray array,
                                     int color_length,
                                     byte[][] color_values)
                              throws VisADException
        copy and transpose Samples (from this Set( and color_values into array; if color_length == 3 don't use color_values[3]
        Parameters:
        array -
        color_length -
        color_values -
        Throws:
        VisADException
      • setGeometryArray

        public static void setGeometryArray(VisADGeometryArray array,
                                            float[][] samples,
                                            int color_length,
                                            byte[][] color_values)
                                     throws VisADException
        copy and transpose samples and color_values into array; if color_length == 3 don't use color_values[3]
        Parameters:
        array -
        samples -
        color_length -
        color_values -
        Throws:
        VisADException
      • getLow

        public float[] getLow()
        Description copied from interface: SampledSetIface
        Returns the minimum sample values.
        Specified by:
        getLow in interface SampledSetIface
        Returns:
        array of low values
      • getHi

        public float[] getHi()
        Description copied from interface: SampledSetIface
        Returns the maximum sample values.
        Specified by:
        getHi in interface SampledSetIface
        Returns:
        array of hi values
      • clone

        public java.lang.Object clone()
        Clones this instance.
        Overrides:
        clone in class Set
        Returns:
        A clone of this instance.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.