|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
javax.media.opengl.awt.GLJPanel
nl.tudelft.goal.ut2004.visualizer.map.MapGLPanel
public abstract class MapGLPanel
This is a GLJPanel that displays UT2004Map. it is a base class, so it takes care of some things, while others are left for derived class to do.
What it does: * Can render passed map * Can render all stuff in agentRenderers * Takes care of user interaction for map viewpoint * Selection of object
What it doesn't do: * automatically display map, someone else has to take care of that (adding/removing) from agentRenderers * fill in agentRenderers, derived class has to do that. In lookup are selected objects
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Nested classes/interfaces inherited from interface javax.media.nativewindow.WindowClosingProtocol |
|---|
javax.media.nativewindow.WindowClosingProtocol.WindowClosingMode |
| Field Summary | |
|---|---|
protected GLRendererCollection<IRenderableUTAgent> |
agentRenderes
|
protected EnvironmentRenderer |
environmentRenderer
|
protected int |
lastGLName
|
protected Logger |
logger
|
protected MapController |
mapController
|
protected MapRenderer |
mapRenderer
|
protected MapViewpoint |
mapViewpoint
|
protected GLRendererCollection<IRenderableWorldObject> |
objectRenderes
|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.media.opengl.GLAutoDrawable |
|---|
SCREEN_CHANGE_ACTION_ENABLED |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
protected |
MapGLPanel(javax.media.opengl.GLCapabilities caps,
cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap map,
Logger log)
Create a panel for |
protected |
MapGLPanel(cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap map,
Logger log)
Create a pane showing passed map |
| Method Summary | |
|---|---|
void |
destroy()
Remove listeners and basically clean up this map. |
protected cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap |
getMap()
|
Set<IRenderableWorldObject> |
getObjectsAt(Point p)
Get agents at point p in the scene. |
void |
onChangedViewpoint(MapViewpoint viewpoint)
When viewpoint is changed, render the map (call display()). |
| Methods inherited from class javax.media.opengl.awt.GLJPanel |
|---|
addGLEventListener, addGLEventListener, addNotify, createContext, display, dispose, getAnimator, getAutoSwapBufferMode, getChosenGLCapabilities, getContext, getContextCreationFlags, getDefaultCloseOperation, getFactory, getGL, getGLProfile, getHandle, getNativeSurface, getThreadName, getUpstreamWidget, invoke, isRealized, paintComponent, removeGLEventListener, removeGLEventListener, removeNotify, reshape, setAnimator, setAutoSwapBufferMode, setContext, setContextCreationFlags, setDefaultCloseOperation, setGL, setOpaque, setRealized, shouldPreserveColorBufferIfTranslucent, swapBuffers, toString |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.media.opengl.awt.AWTGLAutoDrawable |
|---|
repaint, setSize |
| Methods inherited from interface javax.media.opengl.GLDrawable |
|---|
getHeight, getWidth |
| Methods inherited from interface javax.media.opengl.awt.ComponentEvents |
|---|
addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
protected Logger logger
protected MapViewpoint mapViewpoint
protected MapController mapController
protected MapRenderer mapRenderer
protected GLRendererCollection<IRenderableUTAgent> agentRenderes
protected GLRendererCollection<IRenderableWorldObject> objectRenderes
protected EnvironmentRenderer environmentRenderer
protected int lastGLName
| Constructor Detail |
|---|
protected MapGLPanel(javax.media.opengl.GLCapabilities caps,
cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap map,
Logger log)
caps - map - log -
protected MapGLPanel(cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap map,
Logger log)
map - Map this pane is supposed to show| Method Detail |
|---|
public void onChangedViewpoint(MapViewpoint viewpoint)
onChangedViewpoint in interface MapViewpoint.ViewpointListenerviewpoint - public Set<IRenderableWorldObject> getObjectsAt(Point p)
p - in window coordiates system, [0,0] is left top
public void destroy()
destroy in interface javax.media.opengl.GLAutoDrawabledestroy in class javax.media.opengl.awt.GLJPanelprotected cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap getMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||