Marble.GeoDataLookAt

KDE 4.5 PyKDE API Reference

- KDE's Python API

# GeoDataLookAt Class Reference

`from PyKDE4.marble import *`

Inherits: Marble.GeoDataAbstractView → Marble.GeoDataObject → Marble.GeoNode
Namespace: Marble.GeoDataLookAt

## Detailed Description

## Methods
| __init__ (self)
| __init__ (self, Marble.GeoDataLookAt other)
float | altitude (self)
Marble.GeoDataCoordinates | coordinates (self)
| detach (self)
float | latitude (self, Marble.GeoDataCoordinates.Unit unit=Marble.GeoDataCoordinates.Radian)
float | longitude (self, Marble.GeoDataCoordinates.Unit unit=Marble.GeoDataCoordinates.Radian)
float | range (self)
| setAltitude (self, float altitude)
| setLatitude (self, float latitude, Marble.GeoDataCoordinates.Unit unit=Marble.GeoDataCoordinates.Radian)
| setLongitude (self, float longitude, Marble.GeoDataCoordinates.Unit unit=Marble.GeoDataCoordinates.Radian)
| setRange (self, float range)

## Method Documentation

__init__ | ( |  | self ) |

__init__ | ( | self, |
|  | Marble.GeoDataLookAt | other
| ) |  |  |

float altitude | ( |  | self ) |

retrieves the altitude of the GeoDataLookAt object

Returns:
  latitude

Marble.GeoDataCoordinates coordinates | ( |  | self ) |

retrieve the lat/lon/alt triple as a GeoDataCoordinates object

Returns:
  GeoDataCoordinates

See also:
  longitude latitude altitude

detach | ( |  | self ) |

float latitude | ( | self, |
|  | Marble.GeoDataCoordinates.Unit | unit=Marble.GeoDataCoordinates.Radian
| ) |  |  |

retrieves the latitude of the GeoDataLookAt object use the unit parameter to switch between Radian and DMS

Parameters:

  | unit | units that lon and lat get measured in (default for Radian: north pole at pi/2, southpole at -pi/2)

Returns:
  latitude

float longitude | ( | self, |
|  | Marble.GeoDataCoordinates.Unit | unit=Marble.GeoDataCoordinates.Radian
| ) |  |  |

retrieves the longitude of the GeoDataLookAt object use the unit parameter to switch between Radian and DMS

Parameters:

  | unit | units that lon and lat get measured in (default for Radian: north pole at pi/2, southpole at -pi/2)

Returns:
  latitude

float range | ( |  | self ) |

Retrieve the distance (in meters) between the camera and the object looked at

See also:
  setRange

setAltitude | ( | self, |
|  | float | altitude
| ) |  |  |

set the altitude in a GeoDataLookAt object

Parameters:

  | altitude | latitude

setLatitude | ( | self, |
|  | float | latitude,
|  | Marble.GeoDataCoordinates.Unit | unit=Marble.GeoDataCoordinates.Radian
| ) |  |  |

set the latitude in a GeoDataLookAt object

Parameters:

  | latitude | latitude
  | unit | units that lon and lat get measured in (default for Radian: north pole at pi/2, southpole at -pi/2)

setLongitude | ( | self, |
|  | float | longitude,
|  | Marble.GeoDataCoordinates.Unit | unit=Marble.GeoDataCoordinates.Radian
| ) |  |  |

set the longitude in a GeoDataLookAt object

Parameters:

  | longitude | longitude
  | unit | units that lon and lat get measured in (default for Radian: north pole at pi/2, southpole at -pi/2)

setRange | ( | self, |
|  | float | range
| ) |  |  |

Change the distance (in meters) between the camera and the object looked at

See also:
  range