org.osm2world.core.world.modules
Class BuildingModule.BuildingPart.HeightfieldRoof

Object
  extended by BuildingModule.BuildingPart.HeightfieldRoof
All Implemented Interfaces:
Renderable, RenderableToAllTargets, BuildingModule.BuildingPart.Roof
Enclosing class:
BuildingModule.BuildingPart

public abstract class BuildingModule.BuildingPart.HeightfieldRoof
extends Object

superclass for roofs that have exactly one height value for each point within their XZ polygon


Constructor Summary
BuildingModule.BuildingPart.HeightfieldRoof()
           
 
Method Summary
abstract  Collection<VectorXZ> getInnerPoints()
          returns segments within the roof polygon that define apex nodes of the roof
abstract  Collection<LineSegmentXZ> getInnerSegments()
          returns segments within the roof polygon that define ridges or edges of the roof
protected abstract  Double getRoofEleAt_noInterpolation(VectorXZ pos)
          returns roof elevation at a position.
 double getRoofEleAt(VectorXZ v)
          returns roof elevation at a position.
 void renderTo(Target<?> target)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface BuildingModule.BuildingPart.Roof
getPolygon
 

Constructor Detail

BuildingModule.BuildingPart.HeightfieldRoof

public BuildingModule.BuildingPart.HeightfieldRoof()
Method Detail

getInnerSegments

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


getInnerPoints

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


getRoofEleAt_noInterpolation

protected abstract Double getRoofEleAt_noInterpolation(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

getRoofEleAt

public double getRoofEleAt(VectorXZ v)
Description copied from interface: BuildingModule.BuildingPart.Roof
returns roof elevation at a position.


renderTo

public void renderTo(Target<?> target)