Map
Class MapRectProjector

java.lang.Object
  extended by PamView.GeneralProjector
      extended by Map.MapProjector
          extended by Map.MapRectProjector

public class MapRectProjector
extends MapProjector


Nested Class Summary
 
Nested classes/interfaces inherited from class PamView.GeneralProjector
GeneralProjector.ParameterType, GeneralProjector.ParameterUnits
 
Field Summary
(package private) static double EARTHRADIUS
           
(package private)  LatLong lastClickedMouseLatLong
           
(package private)  LatLong mapCentreDegrees
           
(package private)  MapPanel mapPanelRef
           
(package private)  double mapRangeMetres
           
(package private)  double mapRotationDegrees
           
(package private)  double originX
           
(package private)  double originY
           
(package private)  double originZ
           
(package private)  double panelHeight
           
(package private)  double panelWidth
           
(package private)  double pixelsPerMetre
           
(package private)  double xScale
           
(package private)  double yScale
           
(package private)  double zScale
           
 
Fields inherited from class PamView.GeneralProjector
NPARAMETERS
 
Constructor Summary
MapRectProjector()
           
 
Method Summary
 Coordinate3d getCoord3d(double latDegrees, double longDegrees, double d3)
          Function ultimately used by a PamDataBlock to convert it's own data, in whatever form that is in into screen coordinates.
 LatLong getLastClickedMouseLatLong()
           
 LatLong getMapCentreDegrees()
           
 MapPanel getMapPanelRef()
           
 double getMapRangeMetres()
           
 double getMapRotationDegrees()
           
 java.awt.event.MouseMotionAdapter getMouseMotionAdapter()
           
 double getPanelHeight()
           
 double getPanelWidth()
           
 double getPixelsPerMetre()
           
 LatLong image2LL(Coordinate3d c)
           
 Coordinate3d LL2panel(LatLong LL)
           
 Coordinate3d lld2Coord3dMeters(double latDegrees, double longDegrees, double d3, LatLong origin)
           
 LatLong panel2LL(Coordinate3d c)
           
 void setLastClickedMouseLatLong(LatLong lastClickedMouseLatLong)
           
 void setMapCentreDegrees(LatLong mapCentreDegrees)
           
 void setMapPanelRef(MapPanel mapPanelRef)
           
 void setMapRangeMetres(double mapRangeMetres)
           
 void setMapRotationDegrees(double mapRotationDegrees)
           
 void setPanelHeight(double panelHeight)
           
 void setPanelWidth(double panelWidth)
           
 void setPixelsPerMetre(double pixelsPerMetre)
           
 void setScales(double xScale, double yScale, double zScale, double originX, double originY, double originZ)
           
 
Methods inherited from class PamView.GeneralProjector
addHoverData, addHoverData, clearHoverList, findClosestDataUnitIndex, findClosestDataUnitIndex, getHoveredDataUnit, getMouseHoverAdapter, getParmeterType, getParmeterUnits, setParmeterType, setParmeterUnits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EARTHRADIUS

static final double EARTHRADIUS
See Also:
Constant Field Values

xScale

double xScale

yScale

double yScale

zScale

double zScale

originX

double originX

originY

double originY

originZ

double originZ

mapRangeMetres

double mapRangeMetres

mapCentreDegrees

LatLong mapCentreDegrees

panelWidth

double panelWidth

panelHeight

double panelHeight

mapRotationDegrees

double mapRotationDegrees

pixelsPerMetre

double pixelsPerMetre

mapPanelRef

MapPanel mapPanelRef

lastClickedMouseLatLong

LatLong lastClickedMouseLatLong
Constructor Detail

MapRectProjector

public MapRectProjector()
Method Detail

setScales

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

getCoord3d

public Coordinate3d getCoord3d(double latDegrees,
                               double longDegrees,
                               double d3)
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
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)

lld2Coord3dMeters

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

LL2panel

public Coordinate3d LL2panel(LatLong LL)

panel2LL

public LatLong panel2LL(Coordinate3d c)

image2LL

public LatLong image2LL(Coordinate3d c)

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 java.awt.event.MouseMotionAdapter getMouseMotionAdapter()