|
||||||||||
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.PlayerRenderer
public class PlayerRenderer
Sub-renderer for object IRenderableUTAgent
Implementation note: be careful when asking twice for same field of
agent (like agent.getRotation()), because it is dependent on time when you
ask and returned value is not guaranteed to be same (like first can be valid
and second null).
Constructor Summary | |
---|---|
PlayerRenderer(cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayer utAgent,
int glName)
Create a new subrenderer with passed agent as source of data. |
Method Summary | |
---|---|
void |
destroy()
Call renderer to clean up any resources it used. |
static Color |
getBlueTeamColor()
|
Color |
getColor()
|
int |
getGLName()
|
cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayer |
getObject()
Return object this renderer draws. |
static Color |
getRedTeamColor()
|
void |
prepare(javax.media.opengl.GL gl)
Here should be done preparation for rendering (e.g. |
void |
render(javax.media.opengl.GL gla)
Display stuff you want to. |
static void |
setBlueTeamColor(Color c)
|
static void |
setRedTeamColor(Color c)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlayerRenderer(cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayer utAgent, int glName)
renderableUTAgent
- agent used as source of data.Method Detail |
---|
public void prepare(javax.media.opengl.GL gl)
ISubGLRenderer
prepare
in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayer>
public cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayer getObject()
ISubGLRenderer
getObject
in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayer>
public void render(javax.media.opengl.GL gla)
ISubGLRenderer
CollectionRenderer
render
in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayer>
public Color getColor()
public static Color getRedTeamColor()
public static void setRedTeamColor(Color c)
public static Color getBlueTeamColor()
public static void setBlueTeamColor(Color c)
public int getGLName()
getGLName
in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayer>
public void destroy()
ISubGLRenderer
destroy
in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayer>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |