public class BasicAirspaceControlPointRenderer extends java.lang.Object implements AirspaceControlPointRenderer
Constructor and Description |
---|
BasicAirspaceControlPointRenderer() |
BasicAirspaceControlPointRenderer(Marker controlPointMarker) |
Modifier and Type | Method and Description |
---|---|
protected void |
begin(DrawContext dc) |
protected double |
computeMarkerRadius(DrawContext dc,
Marker marker,
Vec4 point) |
protected double |
computeMaxMarkerSize(java.lang.Iterable<? extends AirspaceControlPoint> controlPoints) |
static Marker |
createDefaultMarker() |
protected void |
draw(DrawContext dc,
java.lang.Iterable<? extends AirspaceControlPoint> controlPoints) |
protected void |
drawControlPoints(DrawContext dc,
java.lang.Iterable<? extends AirspaceControlPoint> controlPoints) |
protected void |
drawMarker(DrawContext dc,
AirspaceControlPoint controlPoint) |
protected void |
drawMarkers(DrawContext dc,
java.lang.Iterable<? extends AirspaceControlPoint> controlPoints) |
protected void |
end(DrawContext dc) |
Marker |
getControlPointMarker() |
Vec4 |
getLightDirection() |
Material |
getLightMaterial() |
protected double |
getMaxMarkerSize() |
protected PickSupport |
getPickSupport() |
boolean |
isEnableDepthTest() |
boolean |
isEnableLighting() |
void |
pick(DrawContext dc,
java.lang.Iterable<? extends AirspaceControlPoint> controlPoints,
java.awt.Point pickPoint,
Layer layer) |
void |
render(DrawContext dc,
java.lang.Iterable<? extends AirspaceControlPoint> controlPoints) |
void |
setControlPointMarker(Marker marker) |
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 java.util.SortedSet<AirspaceControlPoint> |
sortControlPoints(DrawContext dc,
java.lang.Iterable<? extends AirspaceControlPoint> unsortedPoints) |
public BasicAirspaceControlPointRenderer()
public BasicAirspaceControlPointRenderer(Marker controlPointMarker)
protected void begin(DrawContext dc)
protected double computeMarkerRadius(DrawContext dc, Marker marker, Vec4 point)
protected double computeMaxMarkerSize(java.lang.Iterable<? extends AirspaceControlPoint> controlPoints)
public static Marker createDefaultMarker()
protected void draw(DrawContext dc, java.lang.Iterable<? extends AirspaceControlPoint> controlPoints)
protected void drawControlPoints(DrawContext dc, java.lang.Iterable<? extends AirspaceControlPoint> controlPoints)
protected void drawMarker(DrawContext dc, AirspaceControlPoint controlPoint)
protected void drawMarkers(DrawContext dc, java.lang.Iterable<? extends AirspaceControlPoint> controlPoints)
protected void end(DrawContext dc)
public Marker getControlPointMarker()
public Vec4 getLightDirection()
public Material getLightMaterial()
protected double getMaxMarkerSize()
protected PickSupport getPickSupport()
public boolean isEnableDepthTest()
public boolean isEnableLighting()
public void pick(DrawContext dc, java.lang.Iterable<? extends AirspaceControlPoint> controlPoints, java.awt.Point pickPoint, Layer layer)
pick
in interface AirspaceControlPointRenderer
public void render(DrawContext dc, java.lang.Iterable<? extends AirspaceControlPoint> controlPoints)
render
in interface AirspaceControlPointRenderer
public void setControlPointMarker(Marker marker)
public void setEnableDepthTest(boolean enable)
public void setEnableLighting(boolean enable)
public void setLightDirection(Vec4 direction)
public void setLightMaterial(Material material)
protected void setMaxMarkerSize(double size)
protected void setupLighting(DrawContext dc)
protected java.util.SortedSet<AirspaceControlPoint> sortControlPoints(DrawContext dc, java.lang.Iterable<? extends AirspaceControlPoint> unsortedPoints)