java.lang.Object
videoRangePanel.vrmethods.landMarkMethod.LandMark
All Implemented Interfaces:
Serializable, Cloneable

public class LandMark extends Object implements Serializable, Cloneable
Class for storing Landmark information. A landmark may be known exactly using GPS information, however a landmark may only have a bearing and pitch from a specified location if not possible to fix and exact location.
Author:
Jamie Macaulay
See Also:
  • Constructor Details

    • LandMark

      public LandMark()
    • LandMark

      public LandMark(String name, LatLong position, Double height)
    • LandMark

      public LandMark(String name, double bearing, double pitch, LatLong latLongOrigin)
  • Method Details

    • update

      public void update(LandMark newData)
    • getName

      public String getName()
      Get the name of the Landmark
      Returns:
      the name of the landmark
    • getPosition

      public LatLong getPosition()
      Get the latitude and longitude position of the landmark. Note that this can be null if bearings are used instead.
      Returns:
      the lat lon position of the landmark
    • getHeight

      public double getHeight()
      Get the height of the landmark
      Returns:
      the height of the landmark in meters
    • setName

      public void setName(String name)
      Set the name of the landmark.
      Parameters:
      name - - the nmae of the landmark
    • setPosition

      public void setPosition(LatLong position)
      Set the latiide and longitude of the landmark.
      Parameters:
      position -
    • getBearing

      public Double getBearing()
      Get the horizontal bearing to the landmark from the image location. This has limits of -pi to pi and is in RADIANS.
      Returns:
      the horizontal bearing to the landmark in RADIANS.
    • getPitch

      public Double getPitch()
      The pitch of landmark from the image location limits of -pi/2 to pi/2 in RADIANS
      Returns:
      the image pitch in RADIANS.
    • getHeightOrigin

      public Double getHeightOrigin()
      Get the height of the image.
      Returns:
      the height of the landmark
    • getLatLongOrigin

      public LatLong getLatLongOrigin()
      Get the location the bearings to the landmark are from
      Returns:
      the location the horizontal and vertical bearings are from.
    • setBearing

      public void setBearing(Double bearing)
      Set the horizontal bearing in RADIANS
      Parameters:
      bearing - - the horizontal bearings in RADIANS.
    • setPitch

      public void setPitch(Double pitch)
      Set the pitch of the landmark form the image origin.
      Parameters:
      pitch - - the pitch in RADIANS.
    • setHeightOrigin

      public void setHeightOrigin(Double heightOrigin)
      Set the height of the location the horizontal and vertical bearings to the landmark are measured from.
      Parameters:
      heightOrigin - - the height the landmark pitch and horizontal angles are measured from.
    • setLatLongOrigin

      public void setLatLongOrigin(LatLong latLongOrigin)
      Set the location the horizontal and vertcial angles of the landmark are measured from
      Parameters:
      latLongOrigin - - the location the landmark horizontal bearings are measured from.
    • clone

      public LandMark clone()