Class Cube.OrderedCube
- java.lang.Object
- 
- gov.nasa.worldwindx.examples.tutorial.Cube.OrderedCube
 
- 
- All Implemented Interfaces:
- OrderedRenderable,- Renderable
 - Enclosing class:
- Cube
 
 protected class Cube.OrderedCube extends java.lang.Object implements OrderedRenderable This class holds the Cube's Cartesian coordinates. An instance of it is added to the scene controller's ordered renderable queue during picking and rendering.
- 
- 
Field SummaryFields Modifier and Type Field Description protected ExtentextentThe cube's Cartesian bounding extent.protected doubleeyeDistanceDistance from the eye point to the cube.protected Vec4placePointCartesian position of the cube, computed fromCube.position.
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedOrderedCube()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetDistanceFromEye()Returns the ordered renderable's distance from the current view's eye point.voidpick(DrawContext dc, java.awt.Point pickPoint)Executes a pick of the ordered renderable.voidrender(DrawContext dc)Causes thisRenderableto render itself using the provided draw context.
 
- 
- 
- 
Field Detail- 
placePointprotected Vec4 placePoint Cartesian position of the cube, computed fromCube.position.
 - 
eyeDistanceprotected double eyeDistance Distance from the eye point to the cube.
 - 
extentprotected Extent extent The cube's Cartesian bounding extent.
 
- 
 - 
Method Detail- 
getDistanceFromEyepublic double getDistanceFromEye() Description copied from interface:OrderedRenderableReturns the ordered renderable's distance from the current view's eye point. Intended to be used only to sort a list of ordered renderables according to eye distance, and only during frame generation when a view is active.- Specified by:
- getDistanceFromEyein interface- OrderedRenderable
- Returns:
- the distance of the ordered renderable from the current view's eye point.
 
 - 
pickpublic void pick(DrawContext dc, java.awt.Point pickPoint) Description copied from interface:OrderedRenderableExecutes a pick of the ordered renderable.- Specified by:
- pickin interface- OrderedRenderable
- Parameters:
- dc- the current draw context.
- pickPoint- the pick point.
 
 - 
renderpublic void render(DrawContext dc) Description copied from interface:RenderableCauses thisRenderableto render itself using the provided draw context.- Specified by:
- renderin interface- Renderable
- Parameters:
- dc- the- DrawContextto be used
- See Also:
- DrawContext
 
 
- 
 
-