Documentation of 'visad.util.DualRes' Java class
DualRes
visad.util

Class DualRes

  • Direct Known Subclasses:
    ResSwitcher


    public class DualRes
    extends java.lang.Object
    Maintains two representations for a given data reference: one at high (normal) resolution, and one at low (scaled-down) resolution. When greater rendering speed is necessary, programs can utilize the computed low-resolution data. When more detail is required, programs can switch back to the hi-resolution data.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static boolean DEBUG
      Debugging flag.
    • Constructor Summary

      Constructors 
      Constructor and Description
      DualRes(DataReferenceImpl ref)
      Constructs an object to maintain both high- and low-resolution representations for the referenced data.
    • Field Detail

      • DEBUG

        public static boolean DEBUG
        Debugging flag.
    • Constructor Detail

      • DualRes

        public DualRes(DataReferenceImpl ref)
                throws VisADException,
                       java.rmi.RemoteException
        Constructs an object to maintain both high- and low-resolution representations for the referenced data.
        Throws:
        VisADException
        java.rmi.RemoteException
    • Method Detail

      • setResolutionScale

        public void setResolutionScale(double scale)
                                throws VisADException
        Sets the factor by which the low-resolution representation is scaled down from the high-resolution one.
        Throws:
        VisADException
      • getResolutionScale

        public double getResolutionScale()
        Gets the factor by which the low-resolution representation is scaled down from the high-resolution one.
      • getHighResReference

        public DataReferenceImpl getHighResReference()
        Gets the DataReference corresponding to the full-resolution data.
      • getLowResReference

        public DataReferenceImpl getLowResReference()
        Gets the DataReference corresponding to the scaled-down data.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.