radardisplay
Class RadarProjector

java.lang.Object
  extended by PamView.GeneralProjector
      extended by radardisplay.RadarProjector

public class RadarProjector
extends GeneralProjector


Nested Class Summary
 
Nested classes/interfaces inherited from class PamView.GeneralProjector
GeneralProjector.ParameterType, GeneralProjector.ParameterUnits
 
Field Summary
private  RadarDisplay radarDisplay
           
private  RadarParameters radarParameters
           
 
Fields inherited from class PamView.GeneralProjector
NPARAMETERS
 
Constructor Summary
RadarProjector(RadarDisplay radarDisplay)
           
 
Method Summary
private  boolean canPlot(double bearing)
          Return true if the point can be plotted on this particular display.
private  Coordinate3d getAmplitudeCood3d(double bearing, double amplitude)
           
 Coordinate3d getCoord3d(double d1, double d2, double d3)
          Function ultimately used by a PamDataBlock to convert it's own data, in whatever form that is in into screen coordinates.
 double getPixelsPerMetre()
           
 RadarDisplay getRadarDisplay()
           
private  Coordinate3d getRangeCood3d(double bearing, double range)
          be warned that this function will return null if the given bearing cannot be displayed !
 void setRadarParameters(RadarParameters radarParameters)
           
 
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

radarDisplay

private RadarDisplay radarDisplay

radarParameters

private RadarParameters radarParameters
Constructor Detail

RadarProjector

public RadarProjector(RadarDisplay radarDisplay)
Method Detail

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()