|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.c5corp.c5gps.SimpleXYCoordinateTranslation
public class SimpleXYCoordinateTranslation
A SimpleXYCoordinateTranslation specifies a simple cartesian translation between two different WayPoints: a base and base translator. The base is a waypoint around which relative Waypoints, Routes and Tracklogs are actually defined. The base translator is used to convert these points into the region of the base translator. The translation is done via a simple an X,Y cartesian translation (maintaining north/south references) into the base translator location while maintaining the absolute relationship between the translated (orginal) data and the base. In other words, it projects data from one region into another, defined by two WayPoints, the base and the base translator. It is useful for psychogeographic exercises.
Route
,
TrackLog
,
WayPoint
,
GpsType
Constructor Summary | |
---|---|
SimpleXYCoordinateTranslation(WayPoint base,
WayPoint baseTranslator)
Constructor |
Method Summary | |
---|---|
WayPoint |
getBase()
Returns the base WayPoint, or the relative base of the original points that will be translated |
WayPoint |
getBaseTranslator()
Returns the base translator, or the base of the translation from the base WayPoint to the translator waypoints |
Route |
getTranslatedRoute(Route route)
Accepts a Route from the base area returns a new Route translated to the base translator area, (simple XY coordinate translation.) Note: calls reset() on the Route parameter. |
TrackLog |
getTranslatedTrackLog(TrackLog tracklog)
Accepts a TrackLog from the base area returns a new TrackLog translated to the base translator area, (simple XY coordinate translation.) Note: calls reset() on the tracklog. |
WayPoint |
getTranslatedWayPoint(WayPoint input)
Accepts a Waypoint from the base area and returns a new Waypoint translated to the base translator area. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleXYCoordinateTranslation(WayPoint base, WayPoint baseTranslator)
base
- the base WaypointbaseTranslator
- the baseTranslator Waypoint to tranlate the base toMethod Detail |
---|
public WayPoint getTranslatedWayPoint(WayPoint input)
input
- relative to base (in the base area)
public Route getTranslatedRoute(Route route)
route
-
public TrackLog getTranslatedTrackLog(TrackLog tracklog)
tracklog
- the tracklog to translate
public WayPoint getBase()
getBase
in interface CoordinateTranslation
public WayPoint getBaseTranslator()
getBaseTranslator
in interface CoordinateTranslation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |