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

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

public static class BuildingModule.BuildingPart
extends Object
implements RenderableToAllTargets


Nested Class Summary
 class BuildingModule.BuildingPart.HeightfieldRoof
          superclass for roofs that have exactly one height value for each point within their XZ polygon
static interface BuildingModule.BuildingPart.Roof
           
 
Constructor Summary
BuildingModule.BuildingPart(BuildingModule.Building building, MapArea area, PolygonWithHolesXZ polygon, boolean useBuildingColors, boolean drawBuildingWindows)
           
 
Method Summary
 double getClearingAbove(VectorXZ pos)
           
 PolygonWithHolesXZ getPolygon()
           
 BuildingModule.BuildingPart.Roof getRoof()
           
static boolean hasComplexRoof(MapArea area)
           
 void renderTo(Target<?> target)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildingModule.BuildingPart

public BuildingModule.BuildingPart(BuildingModule.Building building,
                                   MapArea area,
                                   PolygonWithHolesXZ polygon,
                                   boolean useBuildingColors,
                                   boolean drawBuildingWindows)
Method Detail

getPolygon

public PolygonWithHolesXZ getPolygon()

getRoof

public BuildingModule.BuildingPart.Roof getRoof()

getClearingAbove

public double getClearingAbove(VectorXZ pos)

renderTo

public void renderTo(Target<?> target)
Specified by:
renderTo in interface RenderableToAllTargets

hasComplexRoof

public static boolean hasComplexRoof(MapArea area)