gov.nasa.worldwind
Class AbstractSceneController
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.AbstractSceneController
- All Implemented Interfaces:
- AVList, Disposable, SceneController, WWObject, PropertyChangeListener, EventListener
- Direct Known Subclasses:
- AnaglyphSceneController, BasicSceneController
public abstract class AbstractSceneController
- extends WWObjectImpl
- implements SceneController
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 |
AbstractSceneController
public AbstractSceneController()
applyView
protected void applyView(DrawContext dc)
checkGLErrors
protected void checkGLErrors(DrawContext dc)
- Called to check for openGL errors. This method includes a "round-trip" between the application and renderer,
which is slow. Therefore, this method is excluded from the "normal" render pass. It is here as a matter of
convenience to developers, and is not part of the API.
- Parameters:
dc
- the relevant DrawContext
clearFrame
protected void clearFrame(DrawContext dc)
createTerrain
protected void createTerrain(DrawContext dc)
dispose
public void dispose()
- Releases resources associated with this scene controller.
- Specified by:
dispose
in interface Disposable
doRepaint
protected abstract void doRepaint(DrawContext dc)
draw
protected void draw(DrawContext dc)
finalizeFrame
protected void finalizeFrame(DrawContext dc)
getDrawContext
public DrawContext getDrawContext()
- Specified by:
getDrawContext
in interface SceneController
getFramesPerSecond
public double getFramesPerSecond()
- Specified by:
getFramesPerSecond
in interface SceneController
getFrameTime
public double getFrameTime()
- Specified by:
getFrameTime
in interface SceneController
getModel
public Model getModel()
- Specified by:
getModel
in interface SceneController
getPerFrameStatistics
public Collection<PerformanceStatistic> getPerFrameStatistics()
- Specified by:
getPerFrameStatistics
in interface SceneController
getPickedObjectList
public PickedObjectList getPickedObjectList()
- Specified by:
getPickedObjectList
in interface SceneController
getPickPoint
public Point getPickPoint()
- Specified by:
getPickPoint
in interface SceneController
getScreenCreditController
public ScreenCreditController getScreenCreditController()
- Specified by:
getScreenCreditController
in interface SceneController
getTerrain
public SectorGeometryList getTerrain()
- Specified by:
getTerrain
in interface SceneController
getTextRendererCache
public TextRendererCache getTextRendererCache()
getTextureCache
public TextureCache getTextureCache()
getVerticalExaggeration
public double getVerticalExaggeration()
- Specified by:
getVerticalExaggeration
in interface SceneController
getView
public View getView()
- Specified by:
getView
in interface SceneController
initializeFrame
protected void initializeFrame(DrawContext dc)
pick
protected void pick(DrawContext dc)
pickLayers
protected void pickLayers(DrawContext dc)
pickTerrain
protected void pickTerrain(DrawContext dc)
preRender
protected void preRender(DrawContext dc)
reinitialize
public void reinitialize()
- Specified by:
reinitialize
in interface SceneController
repaint
public int repaint()
- Specified by:
repaint
in interface SceneController
resolveTopPick
protected void resolveTopPick(DrawContext dc)
setModel
public void setModel(Model model)
- Specified by:
setModel
in interface SceneController
setPerFrameStatisticsKeys
public void setPerFrameStatisticsKeys(Set<String> keys)
- Specified by:
setPerFrameStatisticsKeys
in interface SceneController
setPickedObjectList
protected void setPickedObjectList(PickedObjectList pol)
setPickPoint
public void setPickPoint(Point pickPoint)
- Specified by:
setPickPoint
in interface SceneController
setScreenCreditController
public void setScreenCreditController(ScreenCreditController screenCreditController)
- Specified by:
setScreenCreditController
in interface SceneController
setTextureCache
public void setTextureCache(TextureCache textureCache)
- Specified by:
setTextureCache
in interface SceneController
setVerticalExaggeration
public void setVerticalExaggeration(double verticalExaggeration)
- Specified by:
setVerticalExaggeration
in interface SceneController
setView
public void setView(View view)
- Specified by:
setView
in interface SceneController