|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttranslate.MapConverter
public class MapConverter
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 |
---|
private static double WALL_WIDTH
private double DECISION_POINT_WIDTH
Constructor Detail |
---|
public MapConverter()
Method Detail |
---|
public void getRouteGraph(Map inputMap, Map outputMap, MapImporter importer, double threshold)
inputMap
- - the input mapoutputMap
- - the out mapimporter
- - the map importer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |