NASA World Wind

gov.nasa.worldwind
Class WorldWindowGLAutoDrawable

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.WWObjectImpl
          extended by gov.nasa.worldwind.WorldWindowImpl
              extended by gov.nasa.worldwind.WorldWindowGLAutoDrawable
All Implemented Interfaces:
AVList, WorldWindow, WorldWindowGLDrawable, WWObject, java.beans.PropertyChangeListener, java.util.EventListener

public class WorldWindowGLAutoDrawable
extends WorldWindowImpl
implements WorldWindowGLDrawable

A non-platform specific WorldWindow class. This class can be aggregated into platform-specific classes to provide the core functionality of World Wind.


Field Summary
 
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl
changeSupport
 
Constructor Summary
WorldWindowGLAutoDrawable()
          Construct a new WorldWindowGLCanvase for a specified GLDrawable.
 
Method Summary
 void display(GLAutoDrawable glAutoDrawable)
          See GLEventListener#display(GLAutoDrawable).
 void displayChanged(GLAutoDrawable glAutoDrawable, boolean b, boolean b1)
          See GLEventListener#displayChanged(GLAutoDrawable,boolean,boolean).
protected  void doDisplay()
           
protected  void doSwapBuffers(GLAutoDrawable drawable)
           
 void init(GLAutoDrawable glAutoDrawable)
          See GLEventListener#init(GLAutoDrawable).
 void initDrawable(GLAutoDrawable glAutoDrawable)
           
 void initTextureCache(TextureCache textureCache)
           
 void propertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
          The property change listener for this instance.
 void redrawNow()
          Immediately repaints the world window without waiting for a window system repaint event.
 void reshape(GLAutoDrawable glAutoDrawable, int x, int y, int w, int h)
          See GLEventListener#reshape(GLAutoDrawable,int,int,int,int).
 void shutdown()
          Causes resources used by the World Window to be freed.
 
Methods inherited from class gov.nasa.worldwind.WorldWindowImpl
addPositionListener, addRenderingListener, addSelectListener, callPositionListeners, callRenderingListeners, callSelectListeners, getCurrentPosition, getCurrentSelection, getInputHandler, getModel, getObjectsAtCurrentPosition, getPerFrameStatistics, getSceneController, getTextureCache, getView, redraw, removePositionListener, removeRenderingListener, removeSelectListener, setInputHandler, setModel, setModelAndView, setPerFrameStatisticsKeys, setTextureCache, setView
 
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.WorldWindow
addPositionListener, addRenderingListener, addSelectListener, getCurrentPosition, getInputHandler, getModel, getObjectsAtCurrentPosition, getPerFrameStatistics, getSceneController, getTextureCache, getView, redraw, removePositionListener, removeRenderingListener, removeSelectListener, setInputHandler, setModel, setModelAndView, setPerFrameStatisticsKeys, setView
 
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
 

Constructor Detail

WorldWindowGLAutoDrawable

public WorldWindowGLAutoDrawable()
Construct a new WorldWindowGLCanvase for a specified GLDrawable.

Method Detail

display

public void display(GLAutoDrawable glAutoDrawable)
See GLEventListener#display(GLAutoDrawable).

Parameters:
glAutoDrawable - the drawable
Throws:
java.lang.IllegalStateException - if no SceneController exists for this canvas

displayChanged

public void displayChanged(GLAutoDrawable glAutoDrawable,
                           boolean b,
                           boolean b1)
See GLEventListener#displayChanged(GLAutoDrawable,boolean,boolean).

Parameters:
glAutoDrawable - the drawable

doDisplay

protected void doDisplay()

doSwapBuffers

protected void doSwapBuffers(GLAutoDrawable drawable)

init

public void init(GLAutoDrawable glAutoDrawable)
See GLEventListener#init(GLAutoDrawable).

Parameters:
glAutoDrawable - the drawable

initDrawable

public void initDrawable(GLAutoDrawable glAutoDrawable)
Specified by:
initDrawable in interface WorldWindowGLDrawable

initTextureCache

public void initTextureCache(TextureCache textureCache)
Specified by:
initTextureCache in interface WorldWindowGLDrawable

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
Description copied from class: WWObjectImpl
The property change listener for this instance. Recieves property change notifications that this instance has registered with other proprty change notifiers.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Overrides:
propertyChange in class WWObjectImpl
Parameters:
propertyChangeEvent - the event

redrawNow

public void redrawNow()
Description copied from interface: WorldWindow
Immediately repaints the world window without waiting for a window system repaint event. This is not the preferred way to cause a repaint, but is provided for the rare cases that require it.

Specified by:
redrawNow in interface WorldWindow
Overrides:
redrawNow in class WorldWindowImpl

reshape

public void reshape(GLAutoDrawable glAutoDrawable,
                    int x,
                    int y,
                    int w,
                    int h)
See GLEventListener#reshape(GLAutoDrawable,int,int,int,int).

Parameters:
glAutoDrawable - the drawable

shutdown

public void shutdown()
Description copied from class: WorldWindowImpl
Causes resources used by the World Window to be freed. The World Window cannot be used once this method is called. An OpenGL context for the window must be current.

Specified by:
shutdown in interface WorldWindow
Overrides:
shutdown in class WorldWindowImpl

NASA World Wind