Package Map

Class MapRectProjector


public class MapRectProjector extends MapProjector
The Map Rectangle Projector.
Author:
Doug Gillespie
  • Constructor Details

    • MapRectProjector

      public MapRectProjector()
  • Method Details

    • setScales

      public void setScales(double xScale, double yScale, double zScale, double originX, double originY, double originZ)
      Specified by:
      setScales in class MapProjector
    • getDataPosition

      public LatLong getDataPosition(PamCoordinate screenPosition)
      Description copied from class: GeneralProjector
      Do the exact opposite of getCoord3d and turn a screen position back into a data coordinate (e.g. a time / freq, a lat long, etc)/.
      Specified by:
      getDataPosition in class GeneralProjector<LatLong>
      Parameters:
      screenPosition - screen position
      Returns:
      data object.
    • getCoord3d

      public Coordinate3d getCoord3d(LatLong latLong)
      Description copied from class: GeneralProjector
      Same as getCoordinate3d but using the generic type
      Specified by:
      getCoord3d in class GeneralProjector<LatLong>
      Parameters:
      latLong - object extending PamCoordinate
      Returns:
      3d coordinate.
    • getCoord3d

      public Coordinate3d getCoord3d(double latDegrees, double longDegrees, double height)
      Description copied from class: GeneralProjector
      Function ultimately used by a PamDataBlock to convert it's own data, in whatever form that is in into screen coordinates.
      Specified by:
      getCoord3d in class GeneralProjector<LatLong>
      Parameters:
      latDegrees - d2 and d3 are data representing whatever is appropriate for the concrete instance of the projector (e.g. Latitude, Longitude, depth, Time Frequency, etc)
      Returns:
      A 3 dimensional coordinate (realistically z is never currently used)
    • getCoord3dNoRotate

      public Coordinate3d getCoord3dNoRotate(double latDegrees, double longDegrees, double height)
    • lld2Coord3dMeters

      public Coordinate3d lld2Coord3dMeters(double latDegrees, double longDegrees, double d3, LatLong origin)
    • LL2panel

      public Coordinate3d LL2panel(LatLong LL)
    • panel2LL

      public LatLong panel2LL(double x, double y)
      Get an absolute lat long from a map position
      Parameters:
      x -
      y -
      Returns:
    • panel2LL

      public LatLong panel2LL(PamCoordinate screenPosition)
      Get an absolute lat long from a map position
      Parameters:
      screenPosition -
      Returns:
    • getMapVerticalRotationDegrees

      public double getMapVerticalRotationDegrees()
      Returns:
      the mapVerticalRotationDegrees
    • setMapVerticalRotationDegrees

      public void setMapVerticalRotationDegrees(double mapVerticalRotationDegrees)
      Parameters:
      mapVerticalRotationDegrees - the mapVerticalRotationDegrees to set
    • image2LL

      public LatLong image2LL(Coordinate3d c)
      Not quite sure what this does - it seems to only be some relative measure of lat long, not absolute.
      Parameters:
      c -
      Returns:
    • symbolSizePerpective

      public int symbolSizePerpective(int originalSize, Coordinate3d screenPos)
      Recalculate a symbol size using perspective...
      Parameters:
      originalSize - original symbol size
      screenPos - 3D screen coordinate
      Returns:
      new size.
    • symbolSizePerpective

      public int symbolSizePerpective(int originalSize, Coordinate3d screenPos, int minSize, int maxSize)
      Recalculate symbol size using perspective
      Parameters:
      originalSize - original symbol size
      screenPos - 3D screen coordinate
      minSize - minimum size for symbol
      maxSize - maximum size for symbol.
      Returns:
      new size.
    • image2LL

      public LatLong image2LL(double x, double y)
      Not quite sure what this does - it seems to only be some relative measure of lat long, not absolute.
      Parameters:
      x -
      y -
      Returns:
    • getMapCentreDegrees

      public LatLong getMapCentreDegrees()
    • setMapCentreDegrees

      public void setMapCentreDegrees(LatLong mapCentreDegrees)
    • getMapRangeMetres

      public double getMapRangeMetres()
    • setMapRangeMetres

      public void setMapRangeMetres(double mapRangeMetres)
    • getMapRotationDegrees

      public double getMapRotationDegrees()
    • setMapRotationDegrees

      public void setMapRotationDegrees(double mapRotationDegrees)
    • getPanelHeight

      public double getPanelHeight()
    • setPanelHeight

      public void setPanelHeight(double panelHeight)
    • getPanelWidth

      public double getPanelWidth()
    • setPanelWidth

      public void setPanelWidth(double panelWidth)
    • getPixelsPerMetre

      public double getPixelsPerMetre()
    • setPixelsPerMetre

      public void setPixelsPerMetre(double pixelsPerMetre)
    • setMapPanelRef

      public void setMapPanelRef(MapPanel mapPanelRef)
    • getMapPanelRef

      public MapPanel getMapPanelRef()
    • getLastClickedMouseLatLong

      public LatLong getLastClickedMouseLatLong()
    • setLastClickedMouseLatLong

      public void setLastClickedMouseLatLong(LatLong lastClickedMouseLatLong)
    • getMouseMotionAdapter

      public MouseMotionAdapter getMouseMotionAdapter()
    • getAffineTransform

      public AffineTransform getAffineTransform()
    • getHoverText

      public String getHoverText(Point mousePoint, int ploNumberMatch)
      Overrides:
      getHoverText in class GeneralProjector<LatLong>