org.osm2world.core.world.data
Interface WorldObject

All Known Subinterfaces:
AreaWorldObject, NetworkWaySegmentWorldObject, NodeWorldObject, TerrainBoundaryWorldObject, WaySegmentWorldObject, WorldObjectWithOutline
All Known Implementing Classes:
AbstractAreaWorldObject, AbstractNetworkWaySegmentWorldObject, BuildingModule.Building, JunctionNodeWorldObject, NetworkAreaWorldObject, NoOutlineNodeWorldObject, NoOutlineWaySegmentWorldObject, RailwayModule.RailJunction, RoadModule.Road, RoadModule.RoadArea, RoadModule.RoadConnector, RoadModule.RoadCrossingAtConnector, RoadModule.RoadJunction, TunnelModule.Tunnel, TunnelModule.TunnelEntrance, TunnelModule.TunnelJunction, VisibleConnectorNodeWorldObject, WaterModule.RiverJunction, WaterModule.Water, WaterModule.Waterway

public interface WorldObject


Method Summary
 double getClearingAbove(VectorXZ pos)
          returns the amount of free space above the base elevation required by this feature.
 double getClearingBelow(VectorXZ pos)
          returns the amount of free space below the base elevation required by this feature.
 GroundState getGroundState()
          returns whether this feature is on, above or below the ground.
 MapElement getPrimaryMapElement()
          returns the "primary" MapElement for this WorldObject; i.e.
 

Method Detail

getGroundState

GroundState getGroundState()
returns whether this feature is on, above or below the ground. This is relevant for elevation calculations, because the elevation of features o.t.g. is directly determined by terrain elevation data. Elevation of features above/below t.g. depends on elevation of features o.t.g. as well as other features above/below t.g.


getClearingAbove

double getClearingAbove(VectorXZ pos)
returns the amount of free space above the base elevation required by this feature. If pos isn't on this representation, the clearing for a somewhat nearby point on the feature should be returned.


getClearingBelow

double getClearingBelow(VectorXZ pos)
returns the amount of free space below the base elevation required by this feature. If pos isn't on this representation, the clearing for a somewhat nearby point on the feature should be returned.


getPrimaryMapElement

MapElement getPrimaryMapElement()
returns the "primary" MapElement for this WorldObject; i.e. the one it is most strongly associated with. Can be null if there is no (clear) primary element for this feature.