|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.dsol.animation.D2.GisRenderable2D
This renderable draws CAD/GIS objects.
(c) copyright 2003 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
| Nested Class Summary |
| Nested classes inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface |
Renderable2DInterface.Util |
| Field Summary | |
protected javax.media.j3d.Bounds |
bounds
the bounds of the image |
protected java.awt.geom.Rectangle2D |
extent
the cached extent |
protected java.awt.image.BufferedImage |
image
the image cached image |
protected nl.tudelft.simulation.language.d3.DirectedPoint |
location
the location of the image |
protected nl.javel.gisbeans.map.MapInterface |
map
the map to display |
protected java.awt.Dimension |
screenSize
the cached screenSize |
| Constructor Summary | |
GisRenderable2D(SimulatorInterface simulator,
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)
does the shape contain the point |
void |
destroy()
destroys an RenderableObject by unsubscribing it from the context. |
javax.media.j3d.Bounds |
getBounds()
returns the bounds of the locatable object. |
nl.tudelft.simulation.language.d3.DirectedPoint |
getLocation()
returns the location of an object |
LocatableInterface |
getSource()
gets the source of this renderable |
void |
paint(java.awt.Graphics2D graphics,
java.awt.geom.Rectangle2D extent,
java.awt.Dimension screen,
java.awt.image.ImageObserver observer)
paints the object on a 2D graphics object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected nl.javel.gisbeans.map.MapInterface map
protected java.awt.image.BufferedImage image
protected java.awt.geom.Rectangle2D extent
protected java.awt.Dimension screenSize
protected nl.tudelft.simulation.language.d3.DirectedPoint location
protected javax.media.j3d.Bounds bounds
| Constructor Detail |
public GisRenderable2D(SimulatorInterface simulator,
java.net.URL mapFile)
simulator - the simulator.mapFile - the mapfile to use.| Method Detail |
public void paint(java.awt.Graphics2D graphics,
java.awt.geom.Rectangle2D extent,
java.awt.Dimension screen,
java.awt.image.ImageObserver observer)
Renderable2DInterface
paint in interface Renderable2DInterfacegraphics - the graphics objectextent - the extent of the panelscreen - the screen of the panelobserver - the observer of the renderableInterface#paint(java.awt.Graphics2D, java.awt.geom.Rectangle2D,
java.awt.Dimension, java.awt.image.ImageObserver)public LocatableInterface getSource()
Renderable2DInterface
getSource in interface Renderable2DInterfaceRenderable2DInterface.getSource()public javax.media.j3d.Bounds getBounds()
LocatableInterface
getBounds in interface LocatableInterfaceLocatableInterface.getBounds()public nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
LocatableInterface
getLocation in interface LocatableInterfaceLocatableInterface.getLocation()public void destroy()
destroy in interface Renderable2DInterface
public boolean contains(java.awt.geom.Point2D pointWorldCoordinates,
java.awt.geom.Rectangle2D extent,
java.awt.Dimension screen)
Renderable2DInterface
contains in interface Renderable2DInterfacepointWorldCoordinates - the point in world coordinates. Default
implementation is to intersect the 3D bounds on location.z and to
return the bounds2D of this intersect.extent - the extent of the panel.screen - the screen of the panel.
Renderable2DInterface.contains(java.awt.geom.Point2D,
java.awt.geom.Rectangle2D, java.awt.Dimension)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||