Class ViewpointInfo

java.lang.Object
ucar.unidata.view.geoloc.ViewpointInfo

public class ViewpointInfo extends Object
A class to transfer angle of view settings from the dialog box ViewpointDialog class. Azimuth is angle of line of view, from north, clockwise, 0 to 360 degrees. Tilt is angle down from overhead, 0 to 180 degrees; looking straight down is 0, sideways is 90, straight up is 180. Member data .azimuth and .tilt is public for ease of access.
Version:
$Id: ViewpointInfo.java,v 1.5 2005/05/13 18:33:15 jeffmc Exp $
Author:
Jeff McWhirter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
    Azimuth value
    double
    Tilt value
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
    ViewpointInfo(double azimuth, double tilt)
    Construct class to hold angle of view settings from the dialog box ViewpointDialog class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Get the Azimuth property.
    double
    Get the Tilt property.
    void
    setAzimuth(double value)
    Set the Azimuth property.
    void
    setTilt(double value)
    Set the Tilt property.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • azimuth

      public double azimuth
      Azimuth value
    • tilt

      public double tilt
      Tilt value
  • Constructor Details

    • ViewpointInfo

      public ViewpointInfo()
      Default constructor
    • ViewpointInfo

      public ViewpointInfo(double azimuth, double tilt)
      Construct class to hold angle of view settings from the dialog box ViewpointDialog class.
      Parameters:
      azimuth - angle of line of view, from north, clockwise, 0 to 360 degrees.
      tilt - angle down from overhead, 0 to 180 degrees; looking straight down is 0, sideways is 90, straight up is 180.
  • Method Details

    • setAzimuth

      public void setAzimuth(double value)
      Set the Azimuth property.
      Parameters:
      value - The new value for Azimuth
    • getAzimuth

      public double getAzimuth()
      Get the Azimuth property.
      Returns:
      The Azimuth
    • setTilt

      public void setTilt(double value)
      Set the Tilt property.
      Parameters:
      value - The new value for Tilt
    • getTilt

      public double getTilt()
      Get the Tilt property.
      Returns:
      The Tilt