|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Canvas
javax.media.opengl.GLCanvas
gov.nasa.worldwind.awt.WorldWindowGLCanvas
public class WorldWindowGLCanvas
WorldWindowGLCanvas is an AWT component for displaying World Wind Models (globe and layers).
This implementation is a heavyweight AWT component. It derives from GLCanvas and therefore also provides a
general GLDrawable for OpenGL rendering.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Canvas |
|---|
Canvas.AccessibleAWTCanvas |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
WorldWindowGLCanvas()
Constructs a new WorldWindowGLCanvas window on the default graphics device. |
|
WorldWindowGLCanvas(WorldWindowGLCanvas shareWith)
Constructs a new WorldWindowGLCanvas window on the default graphics device that will share graphics
resources with another WorldWindowGLCanvas window. |
|
WorldWindowGLCanvas(WorldWindowGLCanvas shareWith,
GraphicsDevice device)
Constructs a new WorldWindowGLCanvas window that will share graphics resources with another
WorldWindowGLCanvas window. |
|
| Method Summary | |
|---|---|
void |
addPositionListener(PositionListener listener)
|
void |
addRenderingListener(RenderingListener listener)
|
void |
addSelectListener(SelectListener listener)
|
InputHandler |
getInputHandler()
|
Model |
getModel()
Returns the window's current model. |
SceneController |
getSceneController()
Returns the scene controller assocciated with this instance. |
View |
getView()
Returns this window's current view. |
PickedObjectList |
pick(Point pickPoint)
|
void |
removePositionListener(PositionListener listener)
|
void |
removeRenderingListener(RenderingListener listener)
|
void |
removeSelectListener(SelectListener listener)
|
void |
setInputHandler(InputHandler eventSource)
|
void |
setModel(Model model)
Sets the model to display in this window. |
void |
setModelAndView(Model model,
View view)
Sets the model to display in this window and the view used to display it. |
void |
setView(View view)
Sets the view to use when displaying this window's model. |
| Methods inherited from class javax.media.opengl.GLCanvas |
|---|
addGLEventListener, addNotify, createContext, display, getAutoSwapBufferMode, getChosenGLCapabilities, getContext, getGL, paint, removeGLEventListener, removeNotify, reshape, setAutoSwapBufferMode, setGL, setRealized, swapBuffers, update |
| Methods inherited from class java.awt.Canvas |
|---|
createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.media.opengl.GLAutoDrawable |
|---|
repaint |
| Methods inherited from interface javax.media.opengl.GLDrawable |
|---|
getHeight, getWidth, setSize |
| Constructor Detail |
|---|
public WorldWindowGLCanvas()
WorldWindowGLCanvas window on the default graphics device.
public WorldWindowGLCanvas(WorldWindowGLCanvas shareWith)
WorldWindowGLCanvas window on the default graphics device that will share graphics
resources with another WorldWindowGLCanvas window. The other window, sharewith, may not
be null
shareWith - a WorldWindowGLCanvas with which to share graphics resources.
NullPointerException - if shareWith is nullGLCanvas.GLCanvas(GLCapabilities,GLCapabilitiesChooser,GLContext,GraphicsDevice)
public WorldWindowGLCanvas(WorldWindowGLCanvas shareWith,
GraphicsDevice device)
WorldWindowGLCanvas window that will share graphics resources with another
WorldWindowGLCanvas window. The new window is created on the specified graphics device. Neither
shareWith or device may be null.
shareWith - a WorldWindowGLCanvas with which to share graphics resources.device - the GraphicsDevice on which to create the window.
NullPointerException - if shareWith is null
IllegalArgumentException - if deevice is nullGLCanvas.GLCanvas(GLCapabilities,GLCapabilitiesChooser,GLContext,GraphicsDevice)| Method Detail |
|---|
public void addPositionListener(PositionListener listener)
addPositionListener in interface WorldWindowpublic void addRenderingListener(RenderingListener listener)
addRenderingListener in interface WorldWindowpublic void addSelectListener(SelectListener listener)
addSelectListener in interface WorldWindowpublic InputHandler getInputHandler()
getInputHandler in interface WorldWindowpublic Model getModel()
WorldWindow
getModel in interface WorldWindowpublic SceneController getSceneController()
WorldWindow
getSceneController in interface WorldWindowpublic View getView()
WorldWindow
getView in interface WorldWindowpublic PickedObjectList pick(Point pickPoint)
pick in interface WorldWindowpublic void removePositionListener(PositionListener listener)
removePositionListener in interface WorldWindowpublic void removeRenderingListener(RenderingListener listener)
removeRenderingListener in interface WorldWindowpublic void removeSelectListener(SelectListener listener)
removeSelectListener in interface WorldWindowpublic void setInputHandler(InputHandler eventSource)
setInputHandler in interface WorldWindowpublic void setModel(Model model)
WorldWindownull is specified for the model, the current model, if
any, is disassociated with the window.
setModel in interface WorldWindowmodel - the model to display. May be null.
public void setModelAndView(Model model,
View view)
WorldWindownull is specified for
the model, the current model, if any, is disassociated with the window. If null is specified for the
view, the current view, if any, is disassociated with the window.
setModelAndView in interface WorldWindowmodel - the model to display. May benull.view - the view to use to display this window's model. May benull.public void setView(View view)
WorldWindownull is specified for the view, the
current view, if any, is disassociated with the window.
setView in interface WorldWindowview - the view to use to display this window's model. May be null.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||