nl.tudelft.goal.ut2004.visualizer.timeline.map
Class WaypointRenderer

Package class diagram package WaypointRenderer
java.lang.Object
  extended by nl.tudelft.goal.ut2004.visualizer.timeline.map.WaypointRenderer
All Implemented Interfaces:
ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealWaypoint>

public class WaypointRenderer
extends Object
implements ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealWaypoint>

Sub renderer for Flag objects.

Author:
M.P. Korstanje

Field Summary
static double NAVPOINT_FLOAT
           
static double NAVPOINT_INNER_RADIUS
           
static double NAVPOINT_OUTER_RADIUS
           
static int NAVPOINT_RINGS
           
static int NAVPOINT_SLICES
           
 
Constructor Summary
WaypointRenderer(cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealWaypoint waypoint, int glName)
          Create a new subrenderer with passed waypoint as source of data.
 
Method Summary
 void destroy()
          Call renderer to clean up any resources it used.
static Color getColor()
           
 int getGLName()
           
 cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealWaypoint getObject()
          Return object this renderer draws.
 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 setColor(Color c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAVPOINT_OUTER_RADIUS

public static final double NAVPOINT_OUTER_RADIUS
See Also:
Constant Field Values

NAVPOINT_INNER_RADIUS

public static final double NAVPOINT_INNER_RADIUS
See Also:
Constant Field Values

NAVPOINT_SLICES

public static final int NAVPOINT_SLICES
See Also:
Constant Field Values

NAVPOINT_RINGS

public static final int NAVPOINT_RINGS
See Also:
Constant Field Values

NAVPOINT_FLOAT

public static final double NAVPOINT_FLOAT
See Also:
Constant Field Values
Constructor Detail

WaypointRenderer

public WaypointRenderer(cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealWaypoint waypoint,
                        int glName)
Create a new subrenderer with passed waypoint as source of data.

Parameters:
renderableUTAgent - agent used as source of data.
Method Detail

prepare

public void prepare(javax.media.opengl.GL gl)
Description copied from interface: ISubGLRenderer
Here should be done preparation for rendering (e.g. generation of display lists from massive data)

Specified by:
prepare in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealWaypoint>

render

public void render(javax.media.opengl.GL gla)
Description copied from interface: ISubGLRenderer
Display stuff you want to. Assume that settings have already been set in CollectionRenderer

Specified by:
render in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealWaypoint>

getObject

public cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealWaypoint getObject()
Description copied from interface: ISubGLRenderer
Return object this renderer draws. Because objects we want to draw can change rapidly, we have to remove and add subrenderers based on passed objects (renderer R draws object A, now we don't want to draw A anymore, we have to go through subrenderers to find which ones draws it).

Specified by:
getObject in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealWaypoint>
Returns:
Object this renderer draws.

getColor

public static Color getColor()

setColor

public static void setColor(Color c)

getGLName

public int getGLName()
Specified by:
getGLName in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealWaypoint>

destroy

public void destroy()
Description copied from interface: ISubGLRenderer
Call renderer to clean up any resources it used.

Specified by:
destroy in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealWaypoint>


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