Google Earth API

KmlLookAt Interface Reference

Inheritance diagram for KmlLookAt:
Inheritance graph

List of all members.

Public Member Functions

void set (double latitude, double longitude, double altitude, KmlAltitudeModeEnum altitudeMode, double heading, double tilt, double range)
double getLatitude ()
void setLatitude (double latitude)
double getLongitude ()
void setLongitude (double longitude)
double getRange ()
void setRange (double range)
double getTilt ()
void setTilt (double tilt)
double getHeading ()
void setHeading (double heading)
double getAltitude ()
void setAltitude (double altitude)
KmlAltitudeModeEnum getAltitudeMode ()
void setAltitudeMode (KmlAltitudeModeEnum altitudeMode)

Detailed Description

Defines a camera that is associated with anything derived from feature. The LookAt element positions the "camera" in relation to the object that is being viewed. This class either positions the relative to a feature, or you can manually change the view, using ge.getView().setAbstractView().

Member Function Documentation

void KmlLookAt.set ( double  latitude,
double  longitude,
double  altitude,
KmlAltitudeModeEnum  altitudeMode,
double  heading,
double  tilt,
double  range 
)

Sets the latitude, longitude, altitude, altitudeMode, heading, tilt, and range for the camera.

Latitude of the point the camera is looking at. Degrees north or south of the Equator (0 degrees). Values range from -90 degrees (South Pole) to 90 degrees (North Pole).

void KmlLookAt.setLatitude ( double  latitude)

Latitude of the point the camera is looking at. Degrees north or south of the Equator (0 degrees). Values range from -90 degrees (South Pole) to 90 degrees (North Pole).

Longitude of the point the camera is looking at. Angular distance in degrees, relative to the Prime Meridian. Values west of the Meridian range from -180 to 0 degrees. Values east of the Meridian range from 0 to 180 degrees.

void KmlLookAt.setLongitude ( double  longitude)

Longitude of the point the camera is looking at. Angular distance in degrees, relative to the Prime Meridian. Values west of the Meridian range from -180 to 0 degrees. Values east of the Meridian range from 0 to 180 degrees.

double KmlLookAt.getRange ( )

The distance in meters from the point specified by longitude, latitude, and altitude for the LookAt position.

void KmlLookAt.setRange ( double  range)

The distance in meters from the point specified by longitude, latitude, and altitude for the LookAt position.

double KmlLookAt.getTilt ( )

Angle between the direction of the LookAt position and the normal to the surface of the earth. Values range from 0 to 90 degrees. Values for tilt cannot be negative. A tilt value of 0 degrees indicates viewing from directly above. A tilt value of 90 degrees indicates viewing along the horizon.

void KmlLookAt.setTilt ( double  tilt)

Angle between the direction of the LookAt position and the normal to the surface of the earth. Values range from 0 to 90 degrees. Values for tilt cannot be negative. A tilt value of 0 degrees indicates viewing from directly above. A tilt value of 90 degrees indicates viewing along the horizon.

Direction (that is, North, South, East, West), in degrees. Default=0 (North). Values range from 0 to 360 degrees.

void KmlLookAt.setHeading ( double  heading)

Direction (that is, North, South, East, West), in degrees. Default=0 (North). Values range from 0 to 360 degrees.

Distance from the earth's surface, in meters.

void KmlLookAt.setAltitude ( double  altitude)

Distance from the earth's surface, in meters.

KmlAltitudeModeEnum KmlLookAt.getAltitudeMode ( )

Specifies how altitude components in the coordinates element are interpreted.

void KmlLookAt.setAltitudeMode ( KmlAltitudeModeEnum  altitudeMode)

Specifies how altitude components in the coordinates element are interpreted.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.