Package Map
Class MapRectProjector
The Map Rectangle Projector.
- Author:
- Doug Gillespie
-
Nested Class Summary
Nested classes/interfaces inherited from class PamView.GeneralProjector
GeneralProjector.ParameterType, GeneralProjector.ParameterUnits
-
Field Summary
Fields inherited from class Map.MapProjector
parameterTypes, parameterUnits
Fields inherited from class PamView.GeneralProjector
NPARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCoord3d
(double latDegrees, double longDegrees, double height) Function ultimately used by a PamDataBlock to convert it's own data, in whatever form that is in into screen coordinates.getCoord3d
(LatLong latLong) Same as getCoordinate3d but using the generic typegetCoord3dNoRotate
(double latDegrees, double longDegrees, double height) getDataPosition
(PamCoordinate screenPosition) Do the exact opposite of getCoord3d and turn a screen position back into a data coordinate (e.g.getHoverText
(Point mousePoint, int ploNumberMatch) double
double
double
double
double
double
image2LL
(double x, double y) Not quite sure what this does - it seems to only be some relative measure of lat long, not absolute.Not quite sure what this does - it seems to only be some relative measure of lat long, not absolute.lld2Coord3dMeters
(double latDegrees, double longDegrees, double d3, LatLong origin) panel2LL
(double x, double y) Get an absolute lat long from a map positionpanel2LL
(PamCoordinate screenPosition) Get an absolute lat long from a map positionvoid
setLastClickedMouseLatLong
(LatLong lastClickedMouseLatLong) void
setMapCentreDegrees
(LatLong mapCentreDegrees) void
setMapPanelRef
(MapPanel mapPanelRef) void
setMapRangeMetres
(double mapRangeMetres) void
setMapRotationDegrees
(double mapRotationDegrees) void
setMapVerticalRotationDegrees
(double mapVerticalRotationDegrees) 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) int
symbolSizePerpective
(int originalSize, Coordinate3d screenPos) Recalculate a symbol size using perspective...int
symbolSizePerpective
(int originalSize, Coordinate3d screenPos, int minSize, int maxSize) Recalculate symbol size using perspectiveMethods inherited from class PamView.GeneralProjector
addHoverData, addHoverData, addHoverData, addHoverData, addHoverData, addHoverData, clearHoverList, findClosestDataUnitIndex, findClosestDataUnitIndex, getDataSelector, getHoverDataList, getHoverDataSynchroniser, getHoveredDataUnit, getHoverText, getMouseHoverAdapter, getPamSymbolChooser, getParameterTypes, getParameterUnits, getParmeterType, getParmeterUnits, getProjectorDrawingOptions, isViewer, setDataSelector, setPamSymbolChooser, setParmeterType, setParmeterUnits, setProjectorDrawingOptions
-
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 classMapProjector
-
getDataPosition
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 classGeneralProjector<LatLong>
- Parameters:
screenPosition
- screen position- Returns:
- data object.
-
getCoord3d
Description copied from class:GeneralProjector
Same as getCoordinate3d but using the generic type- Specified by:
getCoord3d
in classGeneralProjector<LatLong>
- Parameters:
latLong
- object extending PamCoordinate- Returns:
- 3d coordinate.
-
getCoord3d
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 classGeneralProjector<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
-
lld2Coord3dMeters
public Coordinate3d lld2Coord3dMeters(double latDegrees, double longDegrees, double d3, LatLong origin) -
LL2panel
-
panel2LL
Get an absolute lat long from a map position- Parameters:
x
-y
-- Returns:
-
panel2LL
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
Not quite sure what this does - it seems to only be some relative measure of lat long, not absolute.- Parameters:
c
-- Returns:
-
symbolSizePerpective
Recalculate a symbol size using perspective...- Parameters:
originalSize
- original symbol sizescreenPos
- 3D screen coordinate- Returns:
- new size.
-
symbolSizePerpective
Recalculate symbol size using perspective- Parameters:
originalSize
- original symbol sizescreenPos
- 3D screen coordinateminSize
- minimum size for symbolmaxSize
- maximum size for symbol.- Returns:
- new size.
-
image2LL
Not quite sure what this does - it seems to only be some relative measure of lat long, not absolute.- Parameters:
x
-y
-- Returns:
-
getMapCentreDegrees
-
setMapCentreDegrees
-
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
-
getMapPanelRef
-
getLastClickedMouseLatLong
-
setLastClickedMouseLatLong
-
getMouseMotionAdapter
-
getAffineTransform
-
getHoverText
- Overrides:
getHoverText
in classGeneralProjector<LatLong>
-