courselog.maputils
Class MapReferencePoint

java.lang.Object
  extended by courselog.gpsutils.GeoPoint
      extended by courselog.maputils.MapReferencePoint
All Implemented Interfaces:
ewe.util.Copyable

public class MapReferencePoint
extends GeoPoint
implements ewe.util.Copyable


Field Summary
static java.lang.String CSVLINECODE
          Code to read a MapReferencePoint CSV line.
 int iX
          Coordinates in the bitmap of the reference point.
 int iY
           
 
Fields inherited from class courselog.gpsutils.GeoPoint
altSeaLevel, dummyAng, dummyCoord, ER, lat, lon, myX, myY, myZ, uTMEasting, uTMLatZone, uTMLonZone, uTMNorthing
 
Constructor Summary
MapReferencePoint()
          Creates a new instance of MapReferencePoint
 
Method Summary
 void copyFrom(java.lang.Object param)
          Copy of param reference point into this.
 int formatInBuffer(byte[] buff)
          Formats this map reference point in a buffer so that it can be written to the reference file.
 java.lang.Object getCopy()
          Create a new copy of this reference point.
 void initialise()
          Initialise the Reference point with (-1,-1) coordinates e.g.
 boolean readFromCsvLine(java.lang.String l)
          Read a line of CSV values into a MapReferencePoint.
 
Methods inherited from class courselog.gpsutils.GeoPoint
computeCartesian, computeLatLonAlt, computeLatLonToUTMRef, computeUTMtoLatLng, coordinatesIn, ddmmssLat, ddmmssLon, directionTo, distance, formatAlt, getLat, getLon, getUTMLatitudeZoneLetter, headingTo, moveBy, readFromLogLine, toLatLonString, toString, toUTMString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CSVLINECODE

public static final java.lang.String CSVLINECODE
Code to read a MapReferencePoint CSV line.

See Also:
Constant Field Values

iX

public int iX
Coordinates in the bitmap of the reference point.


iY

public int iY
Constructor Detail

MapReferencePoint

public MapReferencePoint()
Creates a new instance of MapReferencePoint

Method Detail

initialise

public void initialise()
Initialise the Reference point with (-1,-1) coordinates e.g. invalid ones.

Overrides:
initialise in class GeoPoint

copyFrom

public void copyFrom(java.lang.Object param)
Copy of param reference point into this.

Overrides:
copyFrom in class GeoPoint
Parameters:
param - Object to copy from, if not a MapReferencePoint, no copy.

getCopy

public java.lang.Object getCopy()
Create a new copy of this reference point.

Specified by:
getCopy in interface ewe.util.Copyable
Overrides:
getCopy in class GeoPoint
Returns:
New GeoPoint with identical data
See Also:
Copyable.getCopy()

readFromCsvLine

public boolean readFromCsvLine(java.lang.String l)
Read a line of CSV values into a MapReferencePoint.


formatInBuffer

public int formatInBuffer(byte[] buff)
Formats this map reference point in a buffer so that it can be written to the reference file. Values are formatted in order to be readable as csv values.

Overrides:
formatInBuffer in class GeoPoint
Parameters:
buff - buffer to write in.
Returns:
Length of the formatted values in the buffer.