|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sim.util.geo.GeometryUtilities
public class GeometryUtilities
Constructor Summary | |
---|---|
GeometryUtilities()
|
Method Summary | |
---|---|
static java.awt.geom.Rectangle2D.Double |
computeBounds(com.vividsolutions.jts.geom.Envelope outer,
sim.display.Display2D display,
GeomGridField gridField)
compute the MBR for the grid field in display coordinates This is used to determine the display bounds for the grid field for Display2D.attach(). |
static com.vividsolutions.jts.geom.util.AffineTransformation |
getPortrayalTransform(java.awt.geom.AffineTransform transform,
GeomField field,
java.awt.geom.Rectangle2D.Double view)
|
static boolean |
isWithinBounds(com.vividsolutions.jts.geom.Envelope outer,
GeomGridField gridField)
|
static java.awt.geom.Point2D |
screenToWorldPointTransform(java.awt.geom.AffineTransform worldToScreen,
double x,
double y)
Uses the worldToScreen transform to transform the point (x,y) in screen coordinates to world coordinates. |
static java.awt.geom.AffineTransform |
worldToScreenTransform(com.vividsolutions.jts.geom.Envelope mapExtent,
sim.portrayal.DrawInfo2D info)
Determines the affine transform which converts world coordinates into screen coordinates. |
static java.awt.geom.AffineTransform |
worldToScreenTransform(com.vividsolutions.jts.geom.Envelope mapExtent,
java.awt.geom.Rectangle2D.Double viewport)
Determines the affine transform which converts world coordinates into screen coordinates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeometryUtilities()
Method Detail |
---|
public static java.awt.geom.AffineTransform worldToScreenTransform(com.vividsolutions.jts.geom.Envelope mapExtent, java.awt.geom.Rectangle2D.Double viewport)
mapExtent
- MBR in world coordinates mapped to viewport defined in 'info'viewport
-
public static com.vividsolutions.jts.geom.util.AffineTransformation getPortrayalTransform(java.awt.geom.AffineTransform transform, GeomField field, java.awt.geom.Rectangle2D.Double view)
public static java.awt.geom.AffineTransform worldToScreenTransform(com.vividsolutions.jts.geom.Envelope mapExtent, sim.portrayal.DrawInfo2D info)
mapExtent
- MBR in world coordinates mapped to viewport defined in 'info'info
- defines the viewport dimensions
public static java.awt.geom.Point2D screenToWorldPointTransform(java.awt.geom.AffineTransform worldToScreen, double x, double y)
public static java.awt.geom.Rectangle2D.Double computeBounds(com.vividsolutions.jts.geom.Envelope outer, sim.display.Display2D display, GeomGridField gridField)
outer
- denotes MBR that maps to display window in world coordinatesdisplay
- is the display into which the grid will be renderedgridField
- for which we wish to find bounds in display coordinates
public static boolean isWithinBounds(com.vividsolutions.jts.geom.Envelope outer, GeomGridField gridField)
outer
- denotes MBR that maps to display window in world coordinatesgridField
- for which we wish to find bounds in display coordinates
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |