nl.tudelft.goal.ut2004.visualizer.map
Class RenderableWaypoint

Package class diagram package RenderableWaypoint
java.lang.Object
  extended by nl.tudelft.goal.ut2004.visualizer.map.RenderableWaypoint
All Implemented Interfaces:
cz.cuni.amis.pogamut.base3d.worldview.object.ILocated, IRenderableWorldObject

public class RenderableWaypoint
extends Object
implements IRenderableWorldObject


Constructor Summary
RenderableWaypoint(cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealWaypoint waypoint, int glName)
           
 
Method Summary
 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 selection mode of opengl).
 cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderableWaypoint

public RenderableWaypoint(cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealWaypoint waypoint,
                          int glName)
Method Detail

getColor

public Color getColor()
Description copied from interface: IRenderableWorldObject
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.

getDataSource

public Object getDataSource()
Description copied from interface: IRenderableWorldObject
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

public int getGLName()
Description copied from interface: IRenderableWorldObject
Return OpenGl name used for selection (see selection mode of opengl). Basically after all is rendered, when 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:

getLocation

public cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation()
Specified by:
getLocation in interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocated


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