NASA World Wind

gov.nasa.worldwind.render.airspaces.editor
Class BasicAirspaceControlPointRenderer

java.lang.Object
  extended by gov.nasa.worldwind.render.airspaces.editor.BasicAirspaceControlPointRenderer
All Implemented Interfaces:
AirspaceControlPointRenderer

public class BasicAirspaceControlPointRenderer
extends Object
implements AirspaceControlPointRenderer


Constructor Summary
BasicAirspaceControlPointRenderer()
           
BasicAirspaceControlPointRenderer(Marker controlPointMarker)
           
 
Method Summary
protected  void begin(DrawContext dc)
           
protected  void beginDiagnostics(DrawContext dc)
           
protected  double computeMarkerRadius(DrawContext dc, Marker marker, Vec4 point)
           
protected  double computeMaxMarkerSize(Iterable<? extends AirspaceControlPoint> controlPoints)
           
static Marker createDefaultMarker()
           
protected  void draw(DrawContext dc, Iterable<? extends AirspaceControlPoint> controlPoints)
           
protected  void drawControlPoints(DrawContext dc, Iterable<? extends AirspaceControlPoint> controlPoints)
           
protected  void drawDiagnostics(DrawContext dc, Iterable<? extends AirspaceControlPoint> controlPoints)
           
protected  void drawMarker(DrawContext dc, AirspaceControlPoint controlPoint)
           
protected  void drawMarkers(DrawContext dc, Iterable<? extends AirspaceControlPoint> controlPoints)
           
protected  void end(DrawContext dc)
           
protected  void endDiagnostics(DrawContext dc)
           
 Marker getControlPointMarker()
           
 Vec4 getLightDirection()
           
 Material getLightMaterial()
           
protected  double getMaxMarkerSize()
           
protected  PickSupport getPickSupport()
           
protected  TextRenderer getTextRenderer()
           
 boolean isDrawDiagnostics()
           
 boolean isEnableDepthTest()
           
 boolean isEnableLighting()
           
 void pick(DrawContext dc, Iterable<? extends AirspaceControlPoint> controlPoints, Point pickPoint, Layer layer)
           
 void render(DrawContext dc, Iterable<? extends AirspaceControlPoint> controlPoints)
           
protected  void renderDiagnostics(DrawContext dc, Iterable<? extends AirspaceControlPoint> controlPoints)
           
 void setControlPointMarker(Marker marker)
           
 void setDrawDiagnostics(boolean draw)
           
 void setEnableDepthTest(boolean enable)
           
 void setEnableLighting(boolean enable)
           
 void setLightDirection(Vec4 direction)
           
 void setLightMaterial(Material material)
           
protected  void setMaxMarkerSize(double size)
           
protected  void setupLighting(DrawContext dc)
           
protected  SortedSet<AirspaceControlPoint> sortControlPoints(DrawContext dc, Iterable<? extends AirspaceControlPoint> unsortedPoints)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicAirspaceControlPointRenderer

public BasicAirspaceControlPointRenderer()

BasicAirspaceControlPointRenderer

public BasicAirspaceControlPointRenderer(Marker controlPointMarker)
Method Detail

begin

protected void begin(DrawContext dc)

beginDiagnostics

protected void beginDiagnostics(DrawContext dc)

computeMarkerRadius

protected double computeMarkerRadius(DrawContext dc,
                                     Marker marker,
                                     Vec4 point)

computeMaxMarkerSize

protected double computeMaxMarkerSize(Iterable<? extends AirspaceControlPoint> controlPoints)

createDefaultMarker

public static Marker createDefaultMarker()

draw

protected void draw(DrawContext dc,
                    Iterable<? extends AirspaceControlPoint> controlPoints)

drawControlPoints

protected void drawControlPoints(DrawContext dc,
                                 Iterable<? extends AirspaceControlPoint> controlPoints)

drawDiagnostics

protected void drawDiagnostics(DrawContext dc,
                               Iterable<? extends AirspaceControlPoint> controlPoints)

drawMarker

protected void drawMarker(DrawContext dc,
                          AirspaceControlPoint controlPoint)

drawMarkers

protected void drawMarkers(DrawContext dc,
                           Iterable<? extends AirspaceControlPoint> controlPoints)

end

protected void end(DrawContext dc)

endDiagnostics

protected void endDiagnostics(DrawContext dc)

getControlPointMarker

public Marker getControlPointMarker()

getLightDirection

public Vec4 getLightDirection()

getLightMaterial

public Material getLightMaterial()

getMaxMarkerSize

protected double getMaxMarkerSize()

getPickSupport

protected PickSupport getPickSupport()

getTextRenderer

protected TextRenderer getTextRenderer()

isDrawDiagnostics

public boolean isDrawDiagnostics()

isEnableDepthTest

public boolean isEnableDepthTest()

isEnableLighting

public boolean isEnableLighting()

pick

public void pick(DrawContext dc,
                 Iterable<? extends AirspaceControlPoint> controlPoints,
                 Point pickPoint,
                 Layer layer)
Specified by:
pick in interface AirspaceControlPointRenderer

render

public void render(DrawContext dc,
                   Iterable<? extends AirspaceControlPoint> controlPoints)
Specified by:
render in interface AirspaceControlPointRenderer

renderDiagnostics

protected void renderDiagnostics(DrawContext dc,
                                 Iterable<? extends AirspaceControlPoint> controlPoints)

setControlPointMarker

public void setControlPointMarker(Marker marker)

setDrawDiagnostics

public void setDrawDiagnostics(boolean draw)

setEnableDepthTest

public void setEnableDepthTest(boolean enable)

setEnableLighting

public void setEnableLighting(boolean enable)

setLightDirection

public void setLightDirection(Vec4 direction)

setLightMaterial

public void setLightMaterial(Material material)

setMaxMarkerSize

protected void setMaxMarkerSize(double size)

setupLighting

protected void setupLighting(DrawContext dc)

sortControlPoints

protected SortedSet<AirspaceControlPoint> sortControlPoints(DrawContext dc,
                                                            Iterable<? extends AirspaceControlPoint> unsortedPoints)

NASA World Wind