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

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

public class RenderableFlag
extends Object
implements IRenderableWorldObject


Constructor Summary
RenderableFlag(FlagInfo flag, 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

RenderableFlag

public RenderableFlag(FlagInfo flag,
                      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 © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.