|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nl.tudelft.goal.ut2004.visualizer.timeline.map.MapRenderer
public class MapRenderer
Renderer of map. Because of uncomplete server implementation I have no way of knowing state of the server, so I hope this will work. I *assume* that server is up and running and I can get worldmap from it.
Field Summary | |
---|---|
int |
GRID_SCALE
|
double |
NAVPOINT_RADIUS
|
Constructor Summary | |
---|---|
MapRenderer(cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap map,
int glName)
GameBots provides us with flags about pathways between navpoints. |
Method Summary | |
---|---|
int |
createMapBackground(javax.media.opengl.GL gla)
Create a diplay list for map background image, i.e. |
void |
destroy()
Clean up the component (listeners, contexts ect.) |
int |
getGLName()
|
static Color |
getHighColor()
|
static Color |
getLowColor()
|
cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap |
getObject()
Return object this renderer draws. |
void |
prepare(javax.media.opengl.GL gl)
Precreate display lists for map, because map can be quite large and it would be troublesome to do it every rendering. |
void |
render(javax.media.opengl.GL gla)
Display stuff you want to. |
static void |
setHighColor(Color c)
|
static void |
setLowColor(Color c)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int GRID_SCALE
public final double NAVPOINT_RADIUS
Constructor Detail |
---|
public MapRenderer(cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap map, int glName)
Method Detail |
---|
public cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap getObject()
ISubGLRenderer
getObject
in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap>
public void prepare(javax.media.opengl.GL gl)
prepare
in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap>
gl
- public int createMapBackground(javax.media.opengl.GL gla)
gl
-
public void render(javax.media.opengl.GL gla)
ISubGLRenderer
CollectionRenderer
render
in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap>
public static Color getHighColor()
public static void setHighColor(Color c)
public static Color getLowColor()
public static void setLowColor(Color c)
public void destroy()
destroy
in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap>
public int getGLName()
getGLName
in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |