org.osm2world.core.world.data
Class NoOutlineNodeWorldObject

Object
  extended by NoOutlineNodeWorldObject
All Implemented Interfaces:
IntersectionTestObject, NodeWorldObject, WorldObject

public abstract class NoOutlineNodeWorldObject
extends Object
implements NodeWorldObject, IntersectionTestObject

superclass for NodeWorldObjects that don't have an outline, and are not part of a network. Instead, they are located at a single point on the terrain or other areas and not connected to other features.


Field Summary
protected  MapNode node
           
 
Constructor Summary
NoOutlineNodeWorldObject(MapNode node)
           
 
Method Summary
 AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ()
           
 MapElement getPrimaryMapElement()
          returns the "primary" MapElement for this WorldObject; i.e.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface WorldObject
getClearingAbove, getClearingBelow, getGroundState
 

Field Detail

node

protected final MapNode node
Constructor Detail

NoOutlineNodeWorldObject

public NoOutlineNodeWorldObject(MapNode node)
Method Detail

getPrimaryMapElement

public MapElement getPrimaryMapElement()
Description copied from interface: WorldObject
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.

Specified by:
getPrimaryMapElement in interface WorldObject

getAxisAlignedBoundingBoxXZ

public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ()
Specified by:
getAxisAlignedBoundingBoxXZ in interface IntersectionTestObject