public class LookAt extends AbstractView implements Cloneable
Defines a virtual camera that is associated with any element derived from Feature. The LookAt element positions the "camera" in relation to the object that is being viewed. In Google Earth, the view "flies to" this LookAt viewpoint when the user double-clicks an item in the Places panel or double-clicks an icon in the 3D viewer.
Syntax:<LookAt id="ID">
<!-- inherited from AbstractView element -->
<TimePrimitive>...</TimePrimitive> <!-- gx:TimeSpan or gx:TimeStamp -->
<!-- specific to LookAt -->
<longitude>0</longitude> <!-- kml:angle180 -->
<latitude>0</latitude> <!-- kml:angle90 -->
<altitude>0</altitude> <!-- double -->
<heading>0</heading> <!-- kml:angle360 -->
<tilt>0</tilt> <!-- kml:anglepos90 -->
<range></range> <!-- double -->
<altitudeMode>clampToGround</altitudeMode>
<!--kml:altitudeModeEnum:clampToGround, relativeToGround, absolute -->
<!-- or, gx:altitudeMode can be substituted: clampToSeaFloor, relativeToSeaFloor -->
</LookAt>
Extends:| Modifier and Type | Field and Description |
|---|---|
protected double |
altitude
|
protected AltitudeMode |
altitudeMode
AltitudeMode
clampToGround, relativeToGround, absolute
See Also:
See
|
protected double |
heading
|
protected double |
latitude
|
protected double |
longitude
|
protected List<AbstractObject> |
lookAtObjectExtension
|
protected List<Object> |
lookAtSimpleExtension |
protected double |
range
|
protected double |
tilt
|
abstractViewObjectExtension, abstractViewSimpleExtensionid, objectSimpleExtension, targetId| Constructor and Description |
|---|
LookAt() |
| Modifier and Type | Method and Description |
|---|---|
LookAt |
addToAbstractViewObjectExtension(AbstractObject abstractViewObjectExtension)
add a value to the abstractViewObjectExtension property collection
|
LookAt |
addToAbstractViewSimpleExtension(Object abstractViewSimpleExtension)
add a value to the abstractViewSimpleExtension property collection
|
LookAt |
addToLookAtObjectExtension(AbstractObject lookAtObjectExtension)
add a value to the lookAtObjectExtension property collection
|
LookAt |
addToLookAtSimpleExtension(Object lookAtSimpleExtension)
add a value to the lookAtSimpleExtension property collection
|
LookAt |
addToObjectSimpleExtension(Object objectSimpleExtension)
add a value to the objectSimpleExtension property collection
|
LookAt |
clone() |
boolean |
equals(Object obj) |
double |
getAltitude() |
AltitudeMode |
getAltitudeMode() |
double |
getHeading() |
double |
getLatitude() |
double |
getLongitude() |
List<AbstractObject> |
getLookAtObjectExtension() |
List<Object> |
getLookAtSimpleExtension() |
double |
getRange() |
double |
getTilt() |
int |
hashCode() |
void |
setAbstractViewObjectExtension(List<AbstractObject> abstractViewObjectExtension)
Sets the value of the abstractViewObjectExtension property Objects of the following type(s) are allowed in the list List
|
void |
setAbstractViewSimpleExtension(List<Object> abstractViewSimpleExtension)
Sets the value of the abstractViewSimpleExtension property Objects of the following type(s) are allowed in the list List
|
void |
setAltitude(double value) |
void |
setAltitudeMode(AltitudeMode value) |
void |
setHeading(double value) |
void |
setLatitude(double value) |
void |
setLongitude(double value) |
void |
setLookAtObjectExtension(List<AbstractObject> lookAtObjectExtension) |
void |
setLookAtSimpleExtension(List<Object> lookAtSimpleExtension) |
void |
setObjectSimpleExtension(List<Object> objectSimpleExtension) |
void |
setRange(double value) |
void |
setTilt(double value) |
LookAt |
withAbstractViewObjectExtension(List<AbstractObject> abstractViewObjectExtension)
fluent setter
|
LookAt |
withAbstractViewSimpleExtension(List<Object> abstractViewSimpleExtension)
fluent setter
|
LookAt |
withAltitude(double altitude)
fluent setter
|
LookAt |
withAltitudeMode(AltitudeMode altitudeMode)
fluent setter
|
LookAt |
withHeading(double heading)
fluent setter
|
LookAt |
withId(String id)
fluent setter
|
LookAt |
withLatitude(double latitude)
fluent setter
|
LookAt |
withLongitude(double longitude)
fluent setter
|
LookAt |
withLookAtObjectExtension(List<AbstractObject> lookAtObjectExtension)
fluent setter
|
LookAt |
withLookAtSimpleExtension(List<Object> lookAtSimpleExtension)
fluent setter
|
LookAt |
withObjectSimpleExtension(List<Object> objectSimpleExtension)
fluent setter
|
LookAt |
withRange(double range)
fluent setter
|
LookAt |
withTargetId(String targetId)
fluent setter
|
LookAt |
withTilt(double tilt)
fluent setter
|
getAbstractViewObjectExtension, getAbstractViewSimpleExtensiongetId, getObjectSimpleExtension, getTargetId, setId, setTargetIdprotected 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.
Longitude of the virtual camera (eye point). 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.
protected 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 to 90 degrees.
Latitude of the virtual camera. Degrees north or south of the Equator (0 degrees). Values range from −90 degrees to 90 degrees.
protected double altitude
Distance from the earth's surface, in meters. Interpreted according to the LookAt's altitude mode.
Distance of the camera from the earth's surface, in meters. Interpreted according
to the Camera's
Specifies the distance above the earth's surface, in meters, and is interpreted according to the altitude mode.
protected double heading
Direction (azimuth) of the camera, in degrees. Default=0 (true North). (See diagram.) Values range from 0 to 360 degrees.
Direction (that is, North, South, East, West), in degrees. Default=0 (North). (See diagram below.) Values range from 0 to 360 degrees.
Direction (that is, North, South, East, West), in degrees. Default=0 (North). (See diagram.) Values range from 0 to 360 degrees.
Rotation about the z axis (normal to the Earth's surface). A value of 0 (the default) equals North. A positive rotation is clockwise around the z axis and specified in degrees from 0 to 360.
protected double tilt
Angle between the direction of the LookAt position and the normal to the surface
of the earth. (See diagram below.) Values range from 0 to 90 degrees. Values for
Rotation about the x axis. A positive rotation is clockwise around the x axis and specified in degrees from 0 to 360.
Rotation, in degrees, of the camera around the X axis. A value of 0 indicates that
the view is aimed straight down toward the earth (the most common case). A value
for 90 for
protected double range
Distance in meters from the point specified by
protected AltitudeMode altitudeMode
clampToGround, relativeToGround, absolute
See Also: Seeprotected List<AbstractObject> lookAtObjectExtension
public double getLongitude()
Doublelongitudepublic void setLongitude(double value)
value - allowed object is
Doublelongitudepublic double getLatitude()
Doublelatitudepublic void setLatitude(double value)
value - allowed object is
Doublelatitudepublic double getAltitude()
Doublealtitudepublic void setAltitude(double value)
value - allowed object is
Doublealtitudepublic double getHeading()
Doubleheadingpublic void setHeading(double value)
value - allowed object is
Doubleheadingpublic double getTilt()
Doubletiltpublic void setTilt(double value)
value - allowed object is
Doubletiltpublic double getRange()
Doublerangepublic void setRange(double value)
value - allowed object is
Doublerangepublic AltitudeMode getAltitudeMode()
<Object
<AltitudeMode
<de.micromata.opengis.kml.v_2_2_0.gx.AltitudeModealtitudeModepublic void setAltitudeMode(AltitudeMode value)
value - allowed object is
<Object
<AltitudeMode
<de.micromata.opengis.kml.v_2_2_0.gx.AltitudeModealtitudeModepublic List<Object> getLookAtSimpleExtension()
lookAtSimpleExtensionpublic List<AbstractObject> getLookAtObjectExtension()
lookAtObjectExtensionpublic int hashCode()
hashCode in class AbstractViewpublic boolean equals(Object obj)
equals in class AbstractViewpublic void setLookAtSimpleExtension(List<Object> lookAtSimpleExtension)
lookAtSimpleExtension - lookAtSimpleExtensionpublic LookAt addToLookAtSimpleExtension(Object lookAtSimpleExtension)
lookAtSimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setLookAtObjectExtension(List<AbstractObject> lookAtObjectExtension)
lookAtObjectExtension - lookAtObjectExtensionpublic LookAt addToLookAtObjectExtension(AbstractObject lookAtObjectExtension)
lookAtObjectExtension - Objects of the following type are allowed in the list: AbstractObjectpublic void setObjectSimpleExtension(List<Object> objectSimpleExtension)
setObjectSimpleExtension in class AbstractViewobjectSimpleExtensionpublic LookAt addToObjectSimpleExtension(Object objectSimpleExtension)
AbstractObjectaddToObjectSimpleExtension in class AbstractViewobjectSimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setAbstractViewSimpleExtension(List<Object> abstractViewSimpleExtension)
AbstractViewsetAbstractViewSimpleExtension in class AbstractViewabstractViewSimpleExtensionpublic LookAt addToAbstractViewSimpleExtension(Object abstractViewSimpleExtension)
AbstractViewaddToAbstractViewSimpleExtension in class AbstractViewabstractViewSimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setAbstractViewObjectExtension(List<AbstractObject> abstractViewObjectExtension)
AbstractViewNote:
This method does not make use of the fluent pattern.If you would like to make it fluent, use AbstractView.withAbstractViewObjectExtension(java.util.List<de.micromata.opengis.kml.v_2_2_0.AbstractObject>) instead.
setAbstractViewObjectExtension in class AbstractViewabstractViewObjectExtensionpublic LookAt addToAbstractViewObjectExtension(AbstractObject abstractViewObjectExtension)
AbstractViewaddToAbstractViewObjectExtension in class AbstractViewabstractViewObjectExtension - Objects of the following type are allowed in the list: <TimeSpanJAXBElement<AbstractObjectJAXBElement<TimeStampJAXBElement<ViewerOptionspublic LookAt withLongitude(double longitude)
longitude - required parametersetLongitude(double)public LookAt withLatitude(double latitude)
latitude - required parametersetLatitude(double)public LookAt withAltitude(double altitude)
altitude - required parametersetAltitude(double)public LookAt withHeading(double heading)
heading - required parametersetHeading(double)public LookAt withTilt(double tilt)
tilt - required parametersetTilt(double)public LookAt withRange(double range)
range - required parametersetRange(double)public LookAt withAltitudeMode(AltitudeMode altitudeMode)
altitudeMode - required parameter#setAltitudeMode(Object)public LookAt withLookAtSimpleExtension(List<Object> lookAtSimpleExtension)
lookAtSimpleExtension - required parameter#setLookAtSimpleExtension(Listpublic LookAt withLookAtObjectExtension(List<AbstractObject> lookAtObjectExtension)
lookAtObjectExtension - required parameter#setLookAtObjectExtension(List) public LookAt withObjectSimpleExtension(List<Object> objectSimpleExtension)
AbstractObjectwithObjectSimpleExtension in class AbstractViewobjectSimpleExtension - required parameter#setObjectSimpleExtension(Listpublic LookAt withId(String id)
AbstractObjectwithId in class AbstractViewid - required parameterAbstractObject.setId(String)public LookAt withTargetId(String targetId)
AbstractObjectwithTargetId in class AbstractViewtargetId - required parameterAbstractObject.setTargetId(String)public LookAt withAbstractViewSimpleExtension(List<Object> abstractViewSimpleExtension)
AbstractViewwithAbstractViewSimpleExtension in class AbstractViewabstractViewSimpleExtension - required parameter#setAbstractViewSimpleExtension(Listpublic LookAt withAbstractViewObjectExtension(List<AbstractObject> abstractViewObjectExtension)
AbstractViewwithAbstractViewObjectExtension in class AbstractViewabstractViewObjectExtension - required parameter#setAbstractViewObjectExtension(List) public LookAt clone()
clone in class AbstractViewCopyright © 2014 Micromata GmbH. All rights reserved.