Package ucar.unidata.view.geoloc
Class ViewpointInfo
java.lang.Object
ucar.unidata.view.geoloc.ViewpointInfo
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 -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorViewpointInfo
(double azimuth, double tilt) Construct class to hold angle of view settings from the dialog box ViewpointDialog class. -
Method Summary
Modifier and TypeMethodDescriptiondouble
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.
-
Field Details
-
azimuth
public double azimuthAzimuth value -
tilt
public double tiltTilt 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
-