1 package nl.tudelft.goal.ut2004.visualizer.timeline.map;
2
3 import java.awt.Color;
4
5 import cz.cuni.amis.pogamut.base3d.worldview.object.ILocated;
6
7 /**
8 * Wrapper around world objects to simplify rendering.
9 *
10 * TODO: Merge/inherit with IRenderableUTAgent.
11 *
12 *
13 * @author M.P. Korstanje
14 *
15 */
16 public interface IRenderableWorldObject extends ILocated {
17
18 /**
19 * Get color of agent. It should not change if possible, otherwise it can confuse a user.
20 * @return Color that will be used to render agent in map.
21 */
22 public Color getColor();
23
24 /**
25 * Return source of all data that are providing stuff used.
26 * Why do I want it? The selection, I am putting this stuff to lookup and
27 * some other component can look it up and select nodes representing data sources.
28 *
29 * XXX: return type should be more general, but this saves trouble and no need to
30 * generalize too soon.
31 */
32 public Object getDataSource();
33
34 /**
35 * Return OpenGl name used for selection (see selection mode of opengl).
36 * Basically after all is rendered, when get glNames(ints) of objects that were
37 * rendered in viewvolume. But we need to map it back. That is what this is for.
38 * @return
39 */
40 public int getGLName();
41
42 }