|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.ogc.collada.impl.ColladaMeshShape.OrderedMeshShape
public static class ColladaMeshShape.OrderedMeshShape
Class to represent an instance of the mesh to be drawn as an ordered renderable. We can't use the mesh itself as the ordered renderable because it may be drawn multiple times with different transforms.
| Field Summary | |
|---|---|
protected double |
eyeDistance
Distance from the eye to the shape's reference position. |
protected ColladaMeshShape |
mesh
Shape to render. |
protected Matrix |
renderMatrix
Transform applied to this instance of the mesh. |
| Constructor Summary | |
|---|---|
ColladaMeshShape.OrderedMeshShape(ColladaMeshShape mesh,
Matrix renderMatrix,
double eyeDistance)
Create a new ordered renderable. |
|
| Method Summary | |
|---|---|
double |
getDistanceFromEye()
Returns the ordered renderable's distance from the current view's eye point. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double eyeDistance
protected ColladaMeshShape mesh
protected Matrix renderMatrix
| Constructor Detail |
|---|
public ColladaMeshShape.OrderedMeshShape(ColladaMeshShape mesh,
Matrix renderMatrix,
double eyeDistance)
mesh - Mesh shape to render.renderMatrix - Transform matrix to apply when rendering the shape.eyeDistance - Distance from the eye position to the shape's reference position.| Method Detail |
|---|
public double getDistanceFromEye()
OrderedRenderable
getDistanceFromEye in interface OrderedRenderable
public void pick(DrawContext dc,
Point pickPoint)
OrderedRenderable
pick 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
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||