public class TrackRenderer extends java.lang.Object implements Disposable
Modifier and Type | Class and Description |
---|---|
protected static class |
TrackRenderer.Cylinder |
protected static class |
TrackRenderer.Shape |
Modifier and Type | Field and Description |
---|---|
protected TrackRenderer.Shape |
CONE |
protected TrackRenderer.Shape |
CYLINDER |
protected int |
lowerLimit |
protected PickSupport |
pickSupport |
protected TrackRenderer.Shape |
SPHERE |
protected int |
upperLimit |
Constructor and Description |
---|
TrackRenderer() |
Modifier and Type | Method and Description |
---|---|
protected void |
begin(DrawContext dc) |
protected Vec4 |
computeSurfacePoint(DrawContext dc,
TrackPoint tp) |
void |
dispose()
Disposes of any internal resources allocated by the object.
|
protected Vec4 |
draw(DrawContext dc,
java.util.Iterator<TrackPoint> trackPositions) |
protected void |
end(DrawContext dc) |
java.lang.Object |
getClient() |
double |
getElevation() |
int |
getLowerLimit() |
double |
getMarkerPixels() |
Material |
getMaterial() |
double |
getMinMarkerSize() |
int |
getUpperLimit() |
boolean |
isKeepSeparated() |
boolean |
isOverrideElevation() |
Vec4 |
pick(DrawContext dc,
java.util.Iterator<TrackPoint> trackPositions,
java.awt.Point pickPoint,
Layer layer) |
Vec4 |
render(DrawContext dc,
java.util.Iterator<TrackPoint> trackPositions) |
void |
setClient(java.lang.Object client) |
void |
setElevation(double elevation) |
void |
setKeepSeparated(boolean keepSeparated) |
void |
setLowerLimit(int lowerLimit) |
void |
setMarkerPixels(double markerPixels) |
void |
setMaterial(Material material) |
void |
setMinMarkerSize(double minMarkerSize) |
void |
setOverrideElevation(boolean overrideMarkerElevation) |
void |
setShapeType(java.lang.String shapeName) |
void |
setUpperLimit(int upperLimit) |
protected final TrackRenderer.Shape CONE
protected final TrackRenderer.Shape CYLINDER
protected int lowerLimit
protected PickSupport pickSupport
protected final TrackRenderer.Shape SPHERE
protected int upperLimit
protected void begin(DrawContext dc)
protected Vec4 computeSurfacePoint(DrawContext dc, TrackPoint tp)
public void dispose()
Disposable
dispose
in interface Disposable
protected Vec4 draw(DrawContext dc, java.util.Iterator<TrackPoint> trackPositions)
protected void end(DrawContext dc)
public java.lang.Object getClient()
public double getElevation()
public int getLowerLimit()
public double getMarkerPixels()
public Material getMaterial()
public double getMinMarkerSize()
public int getUpperLimit()
public boolean isKeepSeparated()
public boolean isOverrideElevation()
public Vec4 pick(DrawContext dc, java.util.Iterator<TrackPoint> trackPositions, java.awt.Point pickPoint, Layer layer)
public Vec4 render(DrawContext dc, java.util.Iterator<TrackPoint> trackPositions)
public void setClient(java.lang.Object client)
public void setElevation(double elevation)
public void setKeepSeparated(boolean keepSeparated)
public void setLowerLimit(int lowerLimit)
public void setMarkerPixels(double markerPixels)
public void setMaterial(Material material)
public void setMinMarkerSize(double minMarkerSize)
public void setOverrideElevation(boolean overrideMarkerElevation)
public void setShapeType(java.lang.String shapeName)
public void setUpperLimit(int upperLimit)