|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object MapData
public class MapData
OSM2World's abstraction of OSMData
, consists of MapElement
s.
Initially contains only a slightly altered representation of OSM
map data. During later conversion steps, additional information is
added to the MapElement
s.
Constructor Summary | |
---|---|
MapData(List<MapNode> mapNodes,
List<MapWaySegment> mapWaySegments,
List<MapArea> mapAreas,
AxisAlignedBoundingBoxXZ fileBoundary)
|
Method Summary | ||
---|---|---|
AxisAlignedBoundingBoxXZ |
getBoundary()
returns a boundary based on the bounds in the input file if available, otherwise returns the same as getDataBoundary() |
|
VectorXZ |
getCenter()
calculates the center from the MapNode s' positions |
|
AxisAlignedBoundingBoxXZ |
getDataBoundary()
returns a rectangular boundary polygon from the minimum/maximum of coordinates in the map data |
|
Collection<MapArea> |
getMapAreas()
|
|
Iterable<MapElement> |
getMapElements()
|
|
Collection<MapNode> |
getMapNodes()
|
|
Collection<MapWaySegment> |
getMapWaySegments()
|
|
Iterable<WorldObject> |
getWorldObjects()
returns all WorldObject s from elements in this data set. |
|
|
getWorldObjects(Class<T> type)
returns all WorldObject s from elements in this data set
that are instances of a certain type. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapData(List<MapNode> mapNodes, List<MapWaySegment> mapWaySegments, List<MapArea> mapAreas, AxisAlignedBoundingBoxXZ fileBoundary)
Method Detail |
---|
public Iterable<MapElement> getMapElements()
public Collection<MapArea> getMapAreas()
public Collection<MapWaySegment> getMapWaySegments()
public Collection<MapNode> getMapNodes()
public AxisAlignedBoundingBoxXZ getDataBoundary()
public AxisAlignedBoundingBoxXZ getBoundary()
getDataBoundary()
public VectorXZ getCenter()
MapNode
s' positions
public Iterable<WorldObject> getWorldObjects()
WorldObject
s from elements in this data set.
public <T> Iterable<T> getWorldObjects(Class<T> type)
WorldObject
s from elements in this data set
that are instances of a certain type.
Can be used, for example, to access all
TerrainBoundaryWorldObject
s in the grid.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |