|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object BuildingModule.Building
public static class BuildingModule.Building
Constructor Summary | |
---|---|
BuildingModule.Building(MapArea area,
boolean useBuildingColors,
boolean drawBuildingWindows)
|
Method Summary | |
---|---|
MapArea |
getArea()
|
double |
getClearingAbove(VectorXZ pos)
returns the amount of free space above the base elevation required by this feature. |
double |
getClearingBelow(VectorXZ pos)
returns the amount of free space below the base elevation required by this feature. |
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()
|
MapElement |
getPrimaryMapElement()
returns the "primary" MapElement for this WorldObject;
i.e. |
void |
renderTo(Target<?> target)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuildingModule.Building(MapArea area, boolean useBuildingColors, boolean drawBuildingWindows)
Method Detail |
---|
public MapArea getArea()
public List<BuildingModule.BuildingPart> getParts()
public MapElement 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 WorldObject
public GroundState getGroundState()
WorldObject
getGroundState
in interface WorldObject
public double getClearingAbove(VectorXZ pos)
WorldObject
getClearingAbove
in interface WorldObject
public double getClearingBelow(VectorXZ pos)
WorldObject
getClearingBelow
in interface WorldObject
public SimplePolygonXZ getOutlinePolygonXZ()
WorldObjectWithOutline
getOutlinePolygonXZ
in interface WorldObjectWithOutline
public PolygonXYZ getOutlinePolygon()
WorldObjectWithOutline
getOutlinePolygon
in interface WorldObjectWithOutline
public void renderTo(Target<?> target)
renderTo
in interface RenderableToAllTargets
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |