public class TrackRenderer extends 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,
Iterator<TrackPoint> trackPositions) |
protected void |
end(DrawContext dc) |
Object |
getClient() |
double |
getElevation() |
int |
getLowerLimit() |
double |
getMarkerPixels() |
Material |
getMaterial() |
double |
getMinMarkerSize() |
int |
getUpperLimit() |
boolean |
isKeepSeparated() |
boolean |
isOverrideElevation() |
Vec4 |
pick(DrawContext dc,
Iterator<TrackPoint> trackPositions,
Point pickPoint,
Layer layer) |
Vec4 |
render(DrawContext dc,
Iterator<TrackPoint> trackPositions) |
void |
setClient(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(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, Iterator<TrackPoint> trackPositions)
protected void end(DrawContext dc)
public 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, Iterator<TrackPoint> trackPositions, Point pickPoint, Layer layer)
public Vec4 render(DrawContext dc, Iterator<TrackPoint> trackPositions)
public void setClient(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(String shapeName)
public void setUpperLimit(int upperLimit)