ucar.unidata.view.geoloc
Class ViewpointInfo

java.lang.Object
  extended by 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
 double azimuth
          Azimuth value
 double tilt
          Tilt value
 
Constructor Summary
ViewpointInfo()
          Default constructor
ViewpointInfo(double azimuth, double tilt)
          Construct class to hold angle of view settings from the dialog box ViewpointDialog class.
 
Method Summary
 double getAzimuth()
          Get the Azimuth property.
 double getTilt()
          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 Detail

azimuth

public double azimuth
Azimuth value


tilt

public double tilt
Tilt value

Constructor Detail

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 Detail

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