org.osm2world.core.world.modules
Class BridgeModule

Object
  extended by ConfigurableWorldModule
      extended by AbstractModule
          extended by BridgeModule
All Implemented Interfaces:
WorldModule

public class BridgeModule
extends AbstractModule

adds bridges to the world. Needs to be applied after all the modules that generate whatever runs over the bridge.


Field Summary
static double BRIDGE_UNDERSIDE_HEIGHT
           
 
Fields inherited from class ConfigurableWorldModule
config
 
Constructor Summary
BridgeModule()
           
 
Method Summary
protected  void applyToWaySegment(MapWaySegment segment)
          create WorldObjects for a MapWaySegment.
static boolean isBridge(MapWaySegment segment)
           
static boolean isBridge(TagGroup tags)
           
 
Methods inherited from class AbstractModule
applyTo, applyToArea, applyToElement, applyToNode
 
Methods inherited from class ConfigurableWorldModule
setConfiguration
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BRIDGE_UNDERSIDE_HEIGHT

public static final double BRIDGE_UNDERSIDE_HEIGHT
See Also:
Constant Field Values
Constructor Detail

BridgeModule

public BridgeModule()
Method Detail

isBridge

public static final boolean isBridge(TagGroup tags)

isBridge

public static final boolean isBridge(MapWaySegment segment)

applyToWaySegment

protected void applyToWaySegment(MapWaySegment segment)
Description copied from class: AbstractModule
create WorldObjects for a MapWaySegment. Can be overwritten by subclasses. The default implementation calls AbstractModule.applyToElement(MapElement).

Overrides:
applyToWaySegment in class AbstractModule