org.osm2world.core.world.modules
public static class BuildingModule.Building extends Object implements AreaWorldObject, WorldObjectWithOutline, RenderableToAllTargets
Constructor and Description |
---|
BuildingModule.Building(MapArea area,
boolean useBuildingColors,
boolean drawBuildingWindows) |
Modifier and Type | Method and Description |
---|---|
void |
defineEleConstraints(EleConstraintEnforcer enforcer)
lets this object add constraints for the relative elevations of its
EleConnector s. |
MapArea |
getArea() |
EleConnectorGroup |
getEleConnectors()
returns all
EleConnector s used by this WorldObject |
double |
getGroundLevelEle() |
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.
|
List<BuildingModule.BuildingPart> |
getParts() |
MapArea |
getPrimaryMapElement()
returns the "primary"
MapElement for this WorldObject;
i.e. |
void |
renderTo(Target<?> target) |
public BuildingModule.Building(MapArea area, boolean useBuildingColors, boolean drawBuildingWindows)
public MapArea getArea()
public List<BuildingModule.BuildingPart> getParts()
public MapArea getPrimaryMapElement()
WorldObject
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.getPrimaryMapElement
in interface AreaWorldObject
getPrimaryMapElement
in interface WorldObject
public GroundState getGroundState()
WorldObject
getGroundState
in interface WorldObject
public EleConnectorGroup getEleConnectors()
WorldObject
EleConnector
s used by this WorldObjectgetEleConnectors
in interface WorldObject
public void defineEleConstraints(EleConstraintEnforcer enforcer)
WorldObject
EleConnector
s. Called after WorldObject.getEleConnectors()
.defineEleConstraints
in interface WorldObject
public SimplePolygonXZ getOutlinePolygonXZ()
WorldObjectWithOutline
getOutlinePolygonXZ
in interface WorldObjectWithOutline
public double getGroundLevelEle()
public PolygonXYZ getOutlinePolygon()
WorldObjectWithOutline
getOutlinePolygon
in interface WorldObjectWithOutline
public void renderTo(Target<?> target)
renderTo
in interface RenderableToAllTargets