translate
Class MapConverter

java.lang.Object
  extended by translate.MapConverter

public class MapConverter
extends java.lang.Object

Generates a route graph for a map using a voronoi diagram.


Nested Class Summary
private  class MapConverter.Edge
          Stores information about an edge connecting two points.
private  class MapConverter.Path
          Stores the points needed to traverse from one decision point to another.
private  class MapConverter.Point
          Stores information about a possible decision point.
 
Field Summary
private  double DECISION_POINT_WIDTH
          the size of decision points
private static double WALL_WIDTH
          the amount of padding to add to walls
 
Constructor Summary
MapConverter()
           
 
Method Summary
 void getRouteGraph(Map inputMap, Map outputMap, MapImporter importer, double threshold)
          Generates a route graph and adds the graph to the output map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WALL_WIDTH

private static double WALL_WIDTH
the amount of padding to add to walls


DECISION_POINT_WIDTH

private double DECISION_POINT_WIDTH
the size of decision points

Constructor Detail

MapConverter

public MapConverter()
Method Detail

getRouteGraph

public void getRouteGraph(Map inputMap,
                          Map outputMap,
                          MapImporter importer,
                          double threshold)
Generates a route graph and adds the graph to the output map. If the same map is specified for both inputs, the graph is appended to the input map.

Parameters:
inputMap - - the input map
outputMap - - the out map
importer - - the map importer