nl.tudelft.goal.ut2004.visualizer.timeline.map
Interface IRenderableUTAgent

Package class diagram package IRenderableUTAgent
Type Parameters:
T - Type of object this object uses to get its data from
All Superinterfaces:
cz.cuni.amis.pogamut.base.agent.IAgent, cz.cuni.amis.pogamut.base3d.agent.IAgent3D, cz.cuni.amis.pogamut.base.component.IComponent, cz.cuni.amis.pogamut.base.component.IComponentAware, cz.cuni.amis.pogamut.base.component.IControllable, cz.cuni.amis.pogamut.base.agent.IEmbodiedAgent, cz.cuni.amis.pogamut.base3d.worldview.object.ILocated, cz.cuni.amis.pogamut.base3d.worldview.object.ILocomotive, cz.cuni.amis.pogamut.base.agent.IObservingAgent, IRenderableWorldObject, cz.cuni.amis.pogamut.base3d.worldview.object.IRotable, cz.cuni.amis.pogamut.unreal.bot.IUnrealBot
All Known Implementing Classes:
ProxyRenderablePlayer

public interface IRenderableUTAgent
extends cz.cuni.amis.pogamut.unreal.bot.IUnrealBot, IRenderableWorldObject

This interface is used for passing info about agent to EntityRenderer. It is supposed to be unified interface for both timeline and overview map. Timeline implementation will provide available info at current time of db.

Author:
Honza

Method Summary
 List<String> getAssociatedInfo()
          Return text info associated with the agent.
 Color getColor()
          Get color of agent.
 Object getDataSource()
          Return source of all data that are providing stuff used.
 int getGLName()
          Return OpenGl name used for selection (see selction mode of opengl).
 
Methods inherited from interface cz.cuni.amis.pogamut.unreal.bot.IUnrealBot
respawn
 
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IEmbodiedAgent
getAct
 
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IObservingAgent
getWorldView
 
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IAgent
getComponentId, getIntrospection, getLogger, getName, getState, kill, pause, resume, start, startPaused, stop
 
Methods inherited from interface cz.cuni.amis.pogamut.base.component.IComponentAware
getEventBus
 
Methods inherited from interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocated
getLocation
 
Methods inherited from interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocomotive
getVelocity
 
Methods inherited from interface cz.cuni.amis.pogamut.base3d.worldview.object.IRotable
getRotation
 

Method Detail

getColor

Color getColor()
Get color of agent. It should not change if possible, otherwise it can confuse a user.

Specified by:
getColor in interface IRenderableWorldObject
Returns:
Color that will be used to render agent in map.

getAssociatedInfo

List<String> getAssociatedInfo()
Return text info associated with the agent. Agent can have multiple infos associated (e.g. current state, like "I am in water" and "I am looking for ammo")

Returns:
List of infos about the agent.

getDataSource

Object getDataSource()
Return source of all data that are providing stuff used. Why do I want it? The selection, I am putting this stuff to lookup and some other component can look it up and select nodes representing data sources. XXX: return type should be more general, but this saves trouble and no need to generalize too soon.

Specified by:
getDataSource in interface IRenderableWorldObject

getGLName

int getGLName()
Return OpenGl name used for selection (see selction mode of opengl). Basically after all is rendered, whe get glNames(ints) of objects that were rendered in viewvolume. But we need to map it back. That is what this is for.

Specified by:
getGLName in interface IRenderableWorldObject
Returns:


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.