protected class IconRenderer.OrderedIcon extends Object implements OrderedRenderable, Locatable
Modifier and Type | Field and Description |
---|---|
protected double |
eyeDistance |
protected double |
horizonDistance |
protected WWIcon |
icon |
protected Layer |
layer |
protected Vec4 |
point |
Constructor and Description |
---|
OrderedIcon(WWIcon icon,
Vec4 point,
Layer layer,
double eyeDistance,
double horizonDistance) |
Modifier and Type | Method and Description |
---|---|
double |
getDistanceFromEye()
Returns the ordered renderable's distance from the current view's eye point.
|
double |
getHorizonDistance() |
WWIcon |
getIcon() |
Layer |
getLayer() |
Vec4 |
getPoint() |
Position |
getPosition() |
IconRenderer |
getRenderer() |
void |
pick(DrawContext dc,
Point pickPoint)
Executes a pick of the ordered renderable.
|
void |
render(DrawContext dc)
Causes this
Renderable to render itself using the provided draw context. |
protected double eyeDistance
protected double horizonDistance
protected WWIcon icon
protected Layer layer
protected Vec4 point
public double getDistanceFromEye()
OrderedRenderable
getDistanceFromEye
in interface OrderedRenderable
public double getHorizonDistance()
public WWIcon getIcon()
public Layer getLayer()
public Vec4 getPoint()
public Position getPosition()
getPosition
in interface Locatable
public IconRenderer getRenderer()
public void pick(DrawContext dc, Point pickPoint)
OrderedRenderable
pick
in interface OrderedRenderable
dc
- the current draw context.pickPoint
- the pick point.public void render(DrawContext dc)
Renderable
Renderable
to render itself using the provided draw context.render
in interface Renderable
dc
- the DrawContext
to be usedDrawContext