org.osm2world.core.world.modules
public static class SurfaceAreaModule.SurfaceArea extends AbstractAreaWorldObject implements RenderableToAllTargets, TerrainBoundaryWorldObject
area
Constructor and Description |
---|
SurfaceAreaModule.SurfaceArea(MapArea area,
String surface) |
Modifier and Type | Method and Description |
---|---|
void |
defineEleConstraints(EleConstraintEnforcer enforcer)
lets this object add constraints for the relative elevations of its
EleConnector s. |
GroundState |
getGroundState()
returns whether this feature is on, above or below the ground.
|
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.
|
protected Collection<TriangleXZ> |
getTriangulationXZ()
calculates the true ground footprint of this area by removing
area covered by other overlapping features, then triangulates it
into counterclockwise triangles.
|
void |
renderTo(Target<?> target) |
getAxisAlignedBoundingBoxXZ, getEleConnectors, getPrimaryMapElement, getTriangulation, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAxisAlignedBoundingBoxXZ
getEleConnectors, getPrimaryMapElement
public SurfaceAreaModule.SurfaceArea(MapArea area, String surface)
public void renderTo(Target<?> target)
renderTo
in interface RenderableToAllTargets
protected Collection<TriangleXZ> getTriangulationXZ()
getTriangulationXZ
in class AbstractAreaWorldObject
public void defineEleConstraints(EleConstraintEnforcer enforcer)
WorldObject
EleConnector
s. Called after WorldObject.getEleConnectors()
.defineEleConstraints
in interface WorldObject
defineEleConstraints
in class AbstractAreaWorldObject
public PolygonXYZ getOutlinePolygon()
WorldObjectWithOutline
getOutlinePolygon
in interface WorldObjectWithOutline
getOutlinePolygon
in class AbstractAreaWorldObject
public SimplePolygonXZ getOutlinePolygonXZ()
WorldObjectWithOutline
getOutlinePolygonXZ
in interface WorldObjectWithOutline
getOutlinePolygonXZ
in class AbstractAreaWorldObject
public GroundState getGroundState()
WorldObject
getGroundState
in interface WorldObject