|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.render.DrawContextImpl
public class DrawContextImpl
| Field Summary |
|---|
| Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
changeSupport |
| Fields inherited from interface gov.nasa.worldwind.render.DrawContext |
|---|
HIGH_PRIORITY, LOW_PRIORITY |
| Constructor Summary | |
|---|---|
DrawContextImpl()
|
|
| Method Summary | |
|---|---|
void |
addOrderedRenderable(OrderedRenderable orderedRenderable)
|
void |
addPickedObject(PickedObject pickedObject)
Adds a single insatnce of the picked object to the current picked-object list |
void |
addPickedObjects(PickedObjectList pickedObjects)
Add picked objects to the current list of picked objects. |
void |
disablePickingMode()
Disables color picking mode |
void |
dispose()
Free internal resources held by this draw context. |
void |
drawUnitQuad()
|
void |
drawUnitQuad(TextureCoords texCoords)
|
void |
enablePickingMode()
Enables color picking mode |
AnnotationRenderer |
getAnnotationRenderer()
|
Color |
getClearColor()
|
int |
getDrawableHeight()
Retrieves the drawable height of this DrawContext. |
int |
getDrawableWidth()
Retrieves the drawable width of this DrawContext. |
SurfaceTileRenderer |
getGeographicSurfaceTileRenderer()
|
GL |
getGL()
Retrieves the current javax.media.opengl.GL. |
GLContext |
getGLContext()
Retrieves this DrawContexts javax.media.opengl.GLContext. |
GLDrawable |
getGLDrawable()
Retrieves the current javax.media.opengl.GLDrawable. |
Globe |
getGlobe()
Retrieves the current Globe, which may be null. |
GLU |
getGLU()
Retrieves the current javax.media.opengl.glu.GLU. |
LayerList |
getLayers()
Retrieves a list containing all the current layers. |
Model |
getModel()
Retrieves the current Model, which may be null. |
int |
getNumTextureUnits()
|
Queue<OrderedRenderable> |
getOrderedRenderables()
|
Collection<PerformanceStatistic> |
getPerFrameStatistics()
|
Set<String> |
getPerFrameStatisticsKeys()
|
PickedObjectList |
getPickedObjects()
Returns the list of objects picked during the most recent pick traversal. |
Point |
getPickPoint()
|
Vec4 |
getPointOnGlobe(Angle latitude,
Angle longitude)
|
SectorGeometryList |
getSurfaceGeometry()
Retrieves a list of all the sectors rendered so far this frame. |
TextRendererCache |
getTextRendererCache()
|
TextureCache |
getTextureCache()
|
Color |
getUniquePickColor()
Returns a unique color to serve as a pick identifier during picking. |
double |
getVerticalExaggeration()
Retrieves the current vertical exaggeration. |
View |
getView()
Retrieves the current View, which may be null. |
Vec4 |
getViewportCenterGlobePoint()
|
Position |
getViewportCenterPosition()
|
Point |
getViewportCenterScreenPoint()
|
Vec4 |
getViewportCenterSurfacePoint()
|
Sector |
getVisibleSector()
Retrieves a Sector which is at least as large as the current visible sector. |
void |
initialize(GLContext glContext)
Initializes this DrawContext. |
boolean |
isPickingMode()
Returns true if the Picking mode is active, otherwise return false |
void |
reinitialize()
|
void |
setAnnotationRenderer(AnnotationRenderer ar)
|
void |
setGLContext(GLContext glContext)
Assigns this DrawContext a new javax.media.opengl.GLContext. |
void |
setModel(Model model)
Assign a new Model. |
void |
setNumTextureUnits(int numTextureUnits)
|
void |
setPerFrameStatistic(String key,
String displayName,
Object value)
|
void |
setPerFrameStatistics(Collection<PerformanceStatistic> stats)
|
void |
setPerFrameStatisticsKeys(Set<String> statKeys,
Collection<PerformanceStatistic> stats)
|
void |
setPickPoint(Point pickPoint)
|
void |
setSurfaceGeometry(SectorGeometryList surfaceGeometry)
|
void |
setTextRendererCache(TextRendererCache textRendererCache)
|
void |
setTextureCache(TextureCache textureCache)
|
void |
setVerticalExaggeration(double verticalExaggeration)
Sets the vertical exaggeration. |
void |
setView(View view)
Assigns a new View. |
void |
setViewportCenterPosition(Position viewportCenterPosition)
|
void |
setViewportCenterScreenPoint(Point viewportCenterScreenPoint)
|
void |
setVisibleSector(Sector s)
Sets the visible Sector. |
| Methods inherited from class gov.nasa.worldwind.WWObjectImpl |
|---|
propertyChange |
| Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gov.nasa.worldwind.avlist.AVList |
|---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Methods inherited from interface java.beans.PropertyChangeListener |
|---|
propertyChange |
| Constructor Detail |
|---|
public DrawContextImpl()
| Method Detail |
|---|
public void addOrderedRenderable(OrderedRenderable orderedRenderable)
addOrderedRenderable in interface DrawContextpublic void addPickedObject(PickedObject pickedObject)
addPickedObject in interface DrawContextpickedObject - the object to add
IllegalArgumentException - if picked Object is nullpublic void addPickedObjects(PickedObjectList pickedObjects)
addPickedObjects in interface DrawContextpickedObjects - the list of picked objects to add
IllegalArgumentException - if pickedObjects is nullpublic void disablePickingMode()
disablePickingMode in interface DrawContextpublic void dispose()
dispose in interface DisposableGLException - - If an OpenGL context is not current when this method is called.public void drawUnitQuad()
drawUnitQuad in interface DrawContextpublic void drawUnitQuad(TextureCoords texCoords)
drawUnitQuad in interface DrawContextpublic void enablePickingMode()
enablePickingMode in interface DrawContextpublic AnnotationRenderer getAnnotationRenderer()
getAnnotationRenderer in interface DrawContextpublic Color getClearColor()
getClearColor in interface DrawContextpublic final int getDrawableHeight()
DrawContextDrawContext.
getDrawableHeight in interface DrawContextDrawCOntextpublic final int getDrawableWidth()
DrawContextDrawContext.
getDrawableWidth in interface DrawContextDrawCOntextpublic SurfaceTileRenderer getGeographicSurfaceTileRenderer()
getGeographicSurfaceTileRenderer in interface DrawContextpublic final GL getGL()
DrawContextjavax.media.opengl.GL. A GL or GLU is required for
all graphical rendering in World Wind Raptor.
getGL in interface DrawContextGL if available, null otherwisepublic final GLContext getGLContext()
DrawContextDrawContexts javax.media.opengl.GLContext. If this method returns null,
then there are potentially no active GLContexts and rendering should be aborted.
getGLContext in interface DrawContextDrawContexts javax.media.opengl.GLContext.public final GLDrawable getGLDrawable()
DrawContextjavax.media.opengl.GLDrawable. A GLDrawable can be used to create
a GLContext, which can then be used for rendering.
getGLDrawable in interface DrawContextGLDrawable, null if none availablepublic final Globe getGlobe()
DrawContextGlobe, which may be null.
getGlobe in interface DrawContextGlobe, which may be nullpublic final GLU getGLU()
DrawContextjavax.media.opengl.glu.GLU. A GLU or GL is required
for all graphical rendering in World Wind Raptor.
getGLU in interface DrawContextGLU if available, null otherwisepublic final LayerList getLayers()
DrawContext
getLayers in interface DrawContextLayerList containing all the current layerspublic final Model getModel()
DrawContextModel, which may be null.
getModel in interface DrawContextModel, which may be nullpublic int getNumTextureUnits()
getNumTextureUnits in interface DrawContextpublic Queue<OrderedRenderable> getOrderedRenderables()
getOrderedRenderables in interface DrawContextpublic Collection<PerformanceStatistic> getPerFrameStatistics()
getPerFrameStatistics in interface DrawContextpublic Set<String> getPerFrameStatisticsKeys()
getPerFrameStatisticsKeys in interface DrawContextpublic PickedObjectList getPickedObjects()
DrawContext
getPickedObjects in interface DrawContextpublic Point getPickPoint()
getPickPoint in interface DrawContext
public Vec4 getPointOnGlobe(Angle latitude,
Angle longitude)
getPointOnGlobe in interface DrawContextpublic SectorGeometryList getSurfaceGeometry()
DrawContext
getSurfaceGeometry in interface DrawContextSectorGeometryList containing every SectorGeometry rendered so far this
render pass.public TextRendererCache getTextRendererCache()
getTextRendererCache in interface DrawContextpublic TextureCache getTextureCache()
getTextureCache in interface DrawContextpublic Color getUniquePickColor()
DrawContext
getUniquePickColor in interface DrawContextpublic final double getVerticalExaggeration()
DrawContextGlobe. A vertical exaggeration of 3 will create mountains and valleys which are three times as
high/deep as they really are.
getVerticalExaggeration in interface DrawContextpublic final View getView()
DrawContextView, which may be null.
getView in interface DrawContextView, which may be nullpublic Vec4 getViewportCenterGlobePoint()
getViewportCenterGlobePoint in interface DrawContextpublic Position getViewportCenterPosition()
getViewportCenterPosition in interface DrawContextpublic Point getViewportCenterScreenPoint()
getViewportCenterScreenPoint in interface DrawContextpublic Vec4 getViewportCenterSurfacePoint()
getViewportCenterSurfacePoint in interface DrawContextpublic final Sector getVisibleSector()
DrawContextSector which is at least as large as the current visible sector. The value returned is
the value passed to SetVisibleSector. This method may return null.
getVisibleSector in interface DrawContextSector at least the size of the curernt visible sector, null if unavailablepublic final void initialize(GLContext glContext)
DrawContextDrawContext. This method should be called at the beginning of each frame to prepare
the DrawContext for the coming render pass.
initialize in interface DrawContextglContext - the javax.media.opengl.GLContext to use for this render passpublic boolean isPickingMode()
isPickingMode in interface DrawContextpublic void reinitialize()
public void setAnnotationRenderer(AnnotationRenderer ar)
setAnnotationRenderer in interface DrawContextpublic final void setGLContext(GLContext glContext)
DrawContextDrawContext a new javax.media.opengl.GLContext. May throw a
NullPointerException if glContext is null.
setGLContext in interface DrawContextglContext - the new javax.media.opengl.GLContextpublic final void setModel(Model model)
DrawContextModel. Some layers cannot function properly with a null Model. It is
recommended that the Model is never set to null during a normal render pass.
setModel in interface DrawContextmodel - the new Modelpublic void setNumTextureUnits(int numTextureUnits)
setNumTextureUnits in interface DrawContext
public void setPerFrameStatistic(String key,
String displayName,
Object value)
setPerFrameStatistic in interface DrawContextpublic void setPerFrameStatistics(Collection<PerformanceStatistic> stats)
setPerFrameStatistics in interface DrawContext
public void setPerFrameStatisticsKeys(Set<String> statKeys,
Collection<PerformanceStatistic> stats)
setPerFrameStatisticsKeys in interface DrawContextpublic void setPickPoint(Point pickPoint)
setPickPoint in interface DrawContextpublic void setSurfaceGeometry(SectorGeometryList surfaceGeometry)
setSurfaceGeometry in interface DrawContextpublic void setTextRendererCache(TextRendererCache textRendererCache)
setTextRendererCache in interface DrawContextpublic void setTextureCache(TextureCache textureCache)
setTextureCache in interface DrawContextpublic final void setVerticalExaggeration(double verticalExaggeration)
DrawContextGlobe. A vertical exaggeration of 3 will create mountains and valleys which are three times as
high/deep as they really are.
setVerticalExaggeration in interface DrawContextverticalExaggeration - the new vertical exaggeration.public final void setView(View view)
DrawContextView. Some layers cannot function properly with a null View. It is
recommended that the View is never set to null during a normal render pass.
setView in interface DrawContextview - the enw Viewpublic void setViewportCenterPosition(Position viewportCenterPosition)
setViewportCenterPosition in interface DrawContextpublic void setViewportCenterScreenPoint(Point viewportCenterScreenPoint)
setViewportCenterScreenPoint in interface DrawContextpublic final void setVisibleSector(Sector s)
DrawContextSector. The new visible sector must completely encompass the Sector which is
visible on the display.
setVisibleSector in interface DrawContexts - the new visible Sector
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||