org.osm2world.core.world.data
Interface WorldObjectWithOutline

All Superinterfaces:
WorldObject
All Known Subinterfaces:
TerrainBoundaryWorldObject
All Known Implementing Classes:
AbstractAreaWorldObject, AbstractNetworkWaySegmentWorldObject, BuildingModule.Building, JunctionNodeWorldObject, NetworkAreaWorldObject, RailwayModule.RailJunction, RoadModule.Road, RoadModule.RoadArea, RoadModule.RoadConnector, RoadModule.RoadCrossingAtConnector, RoadModule.RoadJunction, TunnelModule.TunnelEntrance, VisibleConnectorNodeWorldObject, WaterModule.RiverJunction, WaterModule.Water, WaterModule.Waterway

public interface WorldObjectWithOutline
extends WorldObject

world object that has a defined outline that can be used for purposes such as cutting holes into the terrain (if this is instance of TerrainBoundaryWorldObject), cutting tunnels through buildings, preventing bridge pillars from piercing through this WorldObject ...


Method Summary
 PolygonXYZ getOutlinePolygon()
          returns a counterclockwise polygon defining the object's ground footprint.
 SimplePolygonXZ getOutlinePolygonXZ()
          returns a counterclockwise polygon defining the object's ground footprint, projected onto the XZ plane.
 
Methods inherited from interface WorldObject
getClearingAbove, getClearingBelow, getGroundState, getPrimaryMapElement
 

Method Detail

getOutlinePolygon

PolygonXYZ getOutlinePolygon()
returns a counterclockwise polygon defining the object's ground footprint.

Returns:
outline polygon; null if this world object doesn't cover any area

getOutlinePolygonXZ

SimplePolygonXZ getOutlinePolygonXZ()
returns a counterclockwise polygon defining the object's ground footprint, projected onto the XZ plane.

Returns:
outline polygon; null if this world object doesn't cover any area