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

Package class diagram package EnvironmentRenderer
java.lang.Object
  extended by nl.tudelft.goal.ut2004.visualizer.timeline.map.EnvironmentRenderer
All Implemented Interfaces:
EventListener, javax.media.opengl.GLEventListener

public class EnvironmentRenderer
extends Object
implements javax.media.opengl.GLEventListener

Renderer renders the environment of the unreal map according to passed arguments in the constructor. It renders the map, agents inside from specified viewpoint.

Author:
Honza

Constructor Summary
EnvironmentRenderer(MapViewpoint viewpoint, CollectionRenderer<cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayer> agentRenderes, CollectionRenderer<Object> objectRenderes, MapRenderer mapRenderer)
           
 
Method Summary
 void display(javax.media.opengl.GLAutoDrawable glDrawable)
           
 void dispose(javax.media.opengl.GLAutoDrawable arg0)
           
 int[] getSelectedObjects()
           
 void init(javax.media.opengl.GLAutoDrawable glDrawable)
           
 void reshape(javax.media.opengl.GLAutoDrawable drawable, int x, int y, int width, int height)
           
 void setSelectPoint(Point point)
          Set select point you want rendered objects list from.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvironmentRenderer

public EnvironmentRenderer(MapViewpoint viewpoint,
                           CollectionRenderer<cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayer> agentRenderes,
                           CollectionRenderer<Object> objectRenderes,
                           MapRenderer mapRenderer)
Method Detail

init

public void init(javax.media.opengl.GLAutoDrawable glDrawable)
Specified by:
init in interface javax.media.opengl.GLEventListener

reshape

public void reshape(javax.media.opengl.GLAutoDrawable drawable,
                    int x,
                    int y,
                    int width,
                    int height)
Specified by:
reshape in interface javax.media.opengl.GLEventListener

display

public void display(javax.media.opengl.GLAutoDrawable glDrawable)
Specified by:
display in interface javax.media.opengl.GLEventListener

getSelectedObjects

public int[] getSelectedObjects()
                         throws IllegalStateException
Throws:
IllegalStateException

setSelectPoint

public void setSelectPoint(Point point)
Set select point you want rendered objects list from.

Parameters:
point - point we want objects from. In Window mode = left top is [0,0]

dispose

public void dispose(javax.media.opengl.GLAutoDrawable arg0)
Specified by:
dispose in interface javax.media.opengl.GLEventListener


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