com.google.gwt.maps.client.streetview
Class Pov

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.streetview.Pov

public class Pov
extends com.google.gwt.core.client.JavaScriptObject

A class representing the structure of a camera point of view used by street view.

See Also:
"http://code.google.com/apis/maps/documentation/reference.html#GPov"

Constructor Summary
protected Pov()
          Protected constructor required for JS overlay.
 
Method Summary
 double getPitch()
          Returns the camera pitch in degrees, relative to the street view vehicle.
 double getYaw()
          Returns the camera yaw in degrees relative to true north.
 double getZoom()
          Returns the zoom level.
static Pov newInstance()
          Returns a new instance of Pov class.
 Pov setPitch(double pitch)
          Sets the camera pitch in degrees, relative to the street view vehicle.
 Pov setYaw(double yaw)
          Sets the camera yaw in degrees relative to true north.
 Pov setZoom(double zoom)
          Sets the zoom level.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pov

protected Pov()
Protected constructor required for JS overlay.

Method Detail

newInstance

public static Pov newInstance()
Returns a new instance of Pov class. By default all values are equal to 0.


setYaw

public final Pov setYaw(double yaw)
Sets the camera yaw in degrees relative to true north. True north is 0 degrees, east is 90 degrees, south is 180 degrees, west is 270 degrees.

Parameters:
yaw - the camera yaw in degrees relative to true north.
Returns:
this Pov object, for convenience when using the Builder pattern.

setPitch

public final Pov setPitch(double pitch)
Sets the camera pitch in degrees, relative to the street view vehicle. Ranges from 90 degrees (directly upwards) to -90 degrees (directly downwards).

Parameters:
pitch - the camera pitch in degrees, relative to the street view vehicle.
Returns:
this Pov object, for convenience when using the Builder pattern.

setZoom

public final Pov setZoom(double zoom)
Sets the zoom level. Fully zoomed-out is level 0, zooming in increases the zoom level.

Parameters:
zoom - the zoom level.
Returns:
this Pov object, for convenience when using the Builder pattern.

getYaw

public final double getYaw()
Returns the camera yaw in degrees relative to true north. True north is 0 degrees, east is 90 degrees, south is 180 degrees, west is 270 degrees.

Returns:
the camera yaw in degrees relative to true north.

getPitch

public final double getPitch()
Returns the camera pitch in degrees, relative to the street view vehicle. Ranges from 90 degrees (directly upwards) to -90 degrees (directly downwards).

Returns:
the camera pitch in degrees, relative to the street view vehicle.

getZoom

public final double getZoom()
Returns the zoom level. Fully zoomed-out is level 0, zooming in increases the zoom level.

Returns:
the zoom level.