public class Camera extends AbstractView implements Cloneable
Defines the virtual camera that views the scene. This element defines the position
of the camera relative to the Earth's surface as well as the viewing direction of
the camera. The camera position is defined by
Defining a View
The X axis points toward the right of the camera and is called the right vector. The Y axis defines the "up" direction relative to the screen and is called the up vector. The Z axis points from the center of the screen toward the eye point. The camera looks down the −Z axis, which is called the view vector.
The following diagram shows the X, Y, and Z axes, which are attached to the virtual camera.
Within a Feature or
<Camera id="ID">
<!-- inherited from AbstractView element -->
<TimePrimitive>...</TimePrimitive> <!-- gx:TimeSpan or gx:TimeStamp -->
<!-- specific to Camera -->
<longitude>0</longitude> <!-- kml:angle180 -->
<latitude>0</latitude> <!-- kml:angle90 -->
<altitude>0</altitude> <!-- double -->
<heading>0</heading> <!-- kml:angle360 -->
<tilt>0</tilt> <!-- kml:anglepos180 -->
<roll>0</roll> <!-- kml:angle180 -->
<altitudeMode>clampToGround</altitudeMode>
<!-- kml:altitudeModeEnum: relativeToGround, clampToGround, or absolute -->
<!-- or, gx:altitudeMode can be substituted: clampToSeaFloor, relativeToSeaFloor -->
</Camera>
Extends:| Modifier and Type | Field and Description |
|---|---|
protected double |
altitude
|
protected AltitudeMode |
altitudeMode
AltitudeMode
clampToGround, relativeToGround, absolute
See Also:
See
|
protected List<AbstractObject> |
cameraObjectExtension
|
protected List<Object> |
cameraSimpleExtension |
protected double |
heading
|
protected double |
latitude
|
protected double |
longitude
|
protected double |
roll
|
protected double |
tilt
|
abstractViewObjectExtension, abstractViewSimpleExtensionid, objectSimpleExtension, targetId| Constructor and Description |
|---|
Camera() |
| Modifier and Type | Method and Description |
|---|---|
Camera |
addToAbstractViewObjectExtension(AbstractObject abstractViewObjectExtension)
add a value to the abstractViewObjectExtension property collection
|
Camera |
addToAbstractViewSimpleExtension(Object abstractViewSimpleExtension)
add a value to the abstractViewSimpleExtension property collection
|
Camera |
addToCameraObjectExtension(AbstractObject cameraObjectExtension)
add a value to the cameraObjectExtension property collection
|
Camera |
addToCameraSimpleExtension(Object cameraSimpleExtension)
add a value to the cameraSimpleExtension property collection
|
Camera |
addToObjectSimpleExtension(Object objectSimpleExtension)
add a value to the objectSimpleExtension property collection
|
Camera |
clone() |
boolean |
equals(Object obj) |
double |
getAltitude() |
AltitudeMode |
getAltitudeMode() |
List<AbstractObject> |
getCameraObjectExtension() |
List<Object> |
getCameraSimpleExtension() |
double |
getHeading() |
double |
getLatitude() |
double |
getLongitude() |
double |
getRoll() |
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 |
setCameraObjectExtension(List<AbstractObject> cameraObjectExtension) |
void |
setCameraSimpleExtension(List<Object> cameraSimpleExtension) |
void |
setHeading(double value) |
void |
setLatitude(double value) |
void |
setLongitude(double value) |
void |
setObjectSimpleExtension(List<Object> objectSimpleExtension) |
void |
setRoll(double value) |
void |
setTilt(double value) |
Camera |
withAbstractViewObjectExtension(List<AbstractObject> abstractViewObjectExtension)
fluent setter
|
Camera |
withAbstractViewSimpleExtension(List<Object> abstractViewSimpleExtension)
fluent setter
|
Camera |
withAltitude(double altitude)
fluent setter
|
Camera |
withAltitudeMode(AltitudeMode altitudeMode)
fluent setter
|
Camera |
withCameraObjectExtension(List<AbstractObject> cameraObjectExtension)
fluent setter
|
Camera |
withCameraSimpleExtension(List<Object> cameraSimpleExtension)
fluent setter
|
Camera |
withHeading(double heading)
fluent setter
|
Camera |
withId(String id)
fluent setter
|
Camera |
withLatitude(double latitude)
fluent setter
|
Camera |
withLongitude(double longitude)
fluent setter
|
Camera |
withObjectSimpleExtension(List<Object> objectSimpleExtension)
fluent setter
|
Camera |
withRoll(double roll)
fluent setter
|
Camera |
withTargetId(String targetId)
fluent setter
|
Camera |
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 roll
Rotation about the y axis. A positive rotation is clockwise around the y axis and specified in degrees from 0 to 360.
Rotation, in degrees, of the camera around the Z axis. Values range from −180 to +180 degrees.
This diagram illustrates the typical orientation of a model's axes:
protected AltitudeMode altitudeMode
clampToGround, relativeToGround, absolute
See Also: Seeprotected List<AbstractObject> cameraObjectExtension
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 getRoll()
Doublerollpublic void setRoll(double value)
value - allowed object is
Doublerollpublic 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> getCameraSimpleExtension()
cameraSimpleExtensionpublic List<AbstractObject> getCameraObjectExtension()
cameraObjectExtensionpublic int hashCode()
hashCode in class AbstractViewpublic boolean equals(Object obj)
equals in class AbstractViewpublic void setCameraSimpleExtension(List<Object> cameraSimpleExtension)
cameraSimpleExtension - cameraSimpleExtensionpublic Camera addToCameraSimpleExtension(Object cameraSimpleExtension)
cameraSimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setCameraObjectExtension(List<AbstractObject> cameraObjectExtension)
cameraObjectExtension - cameraObjectExtensionpublic Camera addToCameraObjectExtension(AbstractObject cameraObjectExtension)
cameraObjectExtension - Objects of the following type are allowed in the list: AbstractObjectpublic void setObjectSimpleExtension(List<Object> objectSimpleExtension)
setObjectSimpleExtension in class AbstractViewobjectSimpleExtensionpublic Camera 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 Camera 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 Camera addToAbstractViewObjectExtension(AbstractObject abstractViewObjectExtension)
AbstractViewaddToAbstractViewObjectExtension in class AbstractViewabstractViewObjectExtension - Objects of the following type are allowed in the list: <TimeSpanJAXBElement<AbstractObjectJAXBElement<TimeStampJAXBElement<ViewerOptionspublic Camera withLongitude(double longitude)
longitude - required parametersetLongitude(double)public Camera withLatitude(double latitude)
latitude - required parametersetLatitude(double)public Camera withAltitude(double altitude)
altitude - required parametersetAltitude(double)public Camera withHeading(double heading)
heading - required parametersetHeading(double)public Camera withTilt(double tilt)
tilt - required parametersetTilt(double)public Camera withRoll(double roll)
roll - required parametersetRoll(double)public Camera withAltitudeMode(AltitudeMode altitudeMode)
altitudeMode - required parameter#setAltitudeMode(Object)public Camera withCameraSimpleExtension(List<Object> cameraSimpleExtension)
cameraSimpleExtension - required parameter#setCameraSimpleExtension(Listpublic Camera withCameraObjectExtension(List<AbstractObject> cameraObjectExtension)
cameraObjectExtension - required parameter#setCameraObjectExtension(List) public Camera withObjectSimpleExtension(List<Object> objectSimpleExtension)
AbstractObjectwithObjectSimpleExtension in class AbstractViewobjectSimpleExtension - required parameter#setObjectSimpleExtension(Listpublic Camera withId(String id)
AbstractObjectwithId in class AbstractViewid - required parameterAbstractObject.setId(String)public Camera withTargetId(String targetId)
AbstractObjectwithTargetId in class AbstractViewtargetId - required parameterAbstractObject.setTargetId(String)public Camera withAbstractViewSimpleExtension(List<Object> abstractViewSimpleExtension)
AbstractViewwithAbstractViewSimpleExtension in class AbstractViewabstractViewSimpleExtension - required parameter#setAbstractViewSimpleExtension(Listpublic Camera withAbstractViewObjectExtension(List<AbstractObject> abstractViewObjectExtension)
AbstractViewwithAbstractViewObjectExtension in class AbstractViewabstractViewObjectExtension - required parameter#setAbstractViewObjectExtension(List) public Camera clone()
clone in class AbstractViewCopyright © 2014 Micromata GmbH. All rights reserved.