org.gscg.gameleader.animation2D
Class DistributedGisRenderable2D

java.lang.Object
  extended byorg.gscg.gameleader.animation2D.DistributedGisRenderable2D
All Implemented Interfaces:
DistributedRenderable2DInterface, nl.tudelft.simulation.dsol.animation.LocatableInterface, nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface, java.io.Serializable

public class DistributedGisRenderable2D
extends java.lang.Object
implements DistributedRenderable2DInterface, nl.tudelft.simulation.dsol.animation.LocatableInterface

This renderable draws CAD/GIS objects. This distributed version is made to show these kind of objects on a remote animation panel.

Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl . The source code and binary code of this software is proprietary information of Delft University of Technology.

Since:
1.0.8
Version:
$Revision: 1.1 $ $Date: 2005/06/16 12:34:02 $
Author:
Peter Jacobs
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface.Util
 
Constructor Summary
DistributedGisRenderable2D(java.net.URL mapFile)
          constructs a new GisRenderable2D
 
Method Summary
 boolean contains(java.awt.geom.Point2D pointWorldCoordinates, java.awt.geom.Rectangle2D extent, java.awt.Dimension screen)
           
 void destroy()
          destroys an RenderableObject by unsubscribing it from the context.
 javax.media.j3d.Bounds getBounds()
           
 nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
           
 nl.tudelft.simulation.dsol.animation.LocatableInterface getSource()
           
 void paint(java.awt.Graphics2D graphics, java.awt.geom.Rectangle2D extent, java.awt.Dimension screen, java.awt.image.ImageObserver observer)
           
 void setLocation(nl.tudelft.simulation.language.d3.DirectedPoint location)
          sets the location of an object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributedGisRenderable2D

public DistributedGisRenderable2D(java.net.URL mapFile)
constructs a new GisRenderable2D

Parameters:
mapFile - the mapfile to use.
Method Detail

paint

public void paint(java.awt.Graphics2D graphics,
                  java.awt.geom.Rectangle2D extent,
                  java.awt.Dimension screen,
                  java.awt.image.ImageObserver observer)
Specified by:
paint in interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
See Also:
#paint(java.awt.Graphics2D, java.awt.geom.Rectangle2D, java.awt.Dimension, java.awt.image.ImageObserver)

getSource

public nl.tudelft.simulation.dsol.animation.LocatableInterface getSource()
Specified by:
getSource in interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
See Also:
Renderable2DInterface.getSource()

getBounds

public javax.media.j3d.Bounds getBounds()
Specified by:
getBounds in interface nl.tudelft.simulation.dsol.animation.LocatableInterface
See Also:
LocatableInterface.getBounds()

getLocation

public nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
Specified by:
getLocation in interface nl.tudelft.simulation.dsol.animation.LocatableInterface
See Also:
LocatableInterface.getLocation()

destroy

public void destroy()
destroys an RenderableObject by unsubscribing it from the context.

Specified by:
destroy in interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface

contains

public boolean contains(java.awt.geom.Point2D pointWorldCoordinates,
                        java.awt.geom.Rectangle2D extent,
                        java.awt.Dimension screen)
Specified by:
contains in interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
See Also:
Renderable2DInterface.contains(java.awt.geom.Point2D, java.awt.geom.Rectangle2D, java.awt.Dimension)

setLocation

public void setLocation(nl.tudelft.simulation.language.d3.DirectedPoint location)
                 throws java.rmi.RemoteException
Description copied from interface: DistributedRenderable2DInterface
sets the location of an object

Specified by:
setLocation in interface DistributedRenderable2DInterface
Parameters:
location - the location
Throws:
java.rmi.RemoteException - on network failure
See Also:
DistributedRenderable2DInterface.setLocation(nl.tudelft.simulation.language.d3.DirectedPoint)


Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.