protected class Cube.OrderedCube extends java.lang.Object implements OrderedRenderable
| Modifier and Type | Field and Description |
|---|---|
protected Extent |
extent
The cube's Cartesian bounding extent.
|
protected double |
eyeDistance
Distance from the eye point to the cube.
|
protected Vec4 |
placePoint
Cartesian position of the cube, computed from
Cube.position. |
| Modifier | Constructor and Description |
|---|---|
protected |
OrderedCube() |
| Modifier and Type | Method and Description |
|---|---|
double |
getDistanceFromEye()
Returns the ordered renderable's distance from the current view's eye point.
|
void |
pick(DrawContext dc,
java.awt.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 Extent extent
protected double eyeDistance
protected Vec4 placePoint
Cube.position.public double getDistanceFromEye()
OrderedRenderablegetDistanceFromEye in interface OrderedRenderablepublic void pick(DrawContext dc, java.awt.Point pickPoint)
OrderedRenderablepick in interface OrderedRenderabledc - the current draw context.pickPoint - the pick point.public void render(DrawContext dc)
RenderableRenderable to render itself using the provided draw context.render in interface Renderabledc - the DrawContext to be usedDrawContext