radardisplay
Class RadarProjector
java.lang.Object
PamView.GeneralProjector
radardisplay.RadarProjector
public class RadarProjector
- extends GeneralProjector
| 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 |
radarDisplay
private RadarDisplay radarDisplay
radarParameters
private RadarParameters radarParameters
RadarProjector
public RadarProjector(RadarDisplay radarDisplay)
getCoord3d
public Coordinate3d getCoord3d(double d1,
double d2,
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:
d1 - 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)
getAmplitudeCood3d
private Coordinate3d getAmplitudeCood3d(double bearing,
double amplitude)
getRangeCood3d
private Coordinate3d getRangeCood3d(double bearing,
double range)
- be warned that this function will return null if
the given bearing cannot be displayed !
- Parameters:
bearing - range -
- Returns:
- the 3-D coordinate of the given bearing and range
getPixelsPerMetre
public double getPixelsPerMetre()
setRadarParameters
public void setRadarParameters(RadarParameters radarParameters)
canPlot
private boolean canPlot(double bearing)
- Return true if the point can be plotted on this particular
display. This is based purely on the stye of the radar plot
and whether or not the angle fits in within the drawn segment.
Bearings are measured clockwise from north (geometric calculations
are generally anti clockwise from east)
- Returns:
- true if the bearing can be plotted on the current display
getRadarDisplay
public RadarDisplay getRadarDisplay()