org.osm2world.core.world.modules
Interface BuildingModule.Building.RoofData

Enclosing class:
BuildingModule.Building

public static interface BuildingModule.Building.RoofData


Method Summary
 Collection<VectorXZ> getInnerPoints()
          returns segments within the roof polygon that define apex nodes of the roof
 Collection<LineSegmentXZ> getInnerSegments()
          returns segments within the roof polygon that define ridges or edges of the roof
 double getMaxRoofEle()
          returns maximum roof elevation
 PolygonWithHolesXZ getPolygon()
          returns the outline (with holes) of the roof.
 Double getRoofEleAt(VectorXZ pos)
          returns roof elevation at a position.
 double getRoofHeight()
          returns maximum roof height
 

Method Detail

getPolygon

PolygonWithHolesXZ getPolygon()
returns the outline (with holes) of the roof. The shape will be generally identical to that of the building itself, but additional vertices might have been inserted into segments.


getInnerSegments

Collection<LineSegmentXZ> getInnerSegments()
returns segments within the roof polygon that define ridges or edges of the roof


getInnerPoints

Collection<VectorXZ> getInnerPoints()
returns segments within the roof polygon that define apex nodes of the roof


getRoofHeight

double getRoofHeight()
returns maximum roof height


getRoofEleAt

Double getRoofEleAt(VectorXZ pos)
returns roof elevation at a position. Only required to work for positions that are part of the polygon, segments or points for the roof.

Returns:
elevation, null if unknown

getMaxRoofEle

double getMaxRoofEle()
returns maximum roof elevation