|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractAreaWorldObject
public abstract class AbstractAreaWorldObject
implementation of AreaWorldObject
that offers some basic features:
< ul>
MapArea
Field Summary | |
---|---|
protected MapArea |
area
|
Constructor Summary | |
---|---|
protected |
AbstractAreaWorldObject(MapArea area)
|
Method Summary | |
---|---|
AxisAlignedBoundingBoxXZ |
getAxisAlignedBoundingBoxXZ()
|
PolygonXYZ |
getOutlinePolygon()
returns a counterclockwise polygon defining the object's ground footprint. |
MapElement |
getPrimaryMapElement()
returns the "primary" MapElement for this WorldObject;
i.e. the one it is most strongly associated with. |
protected Collection<TriangleXYZ> |
getTriangulation()
decompose this area into counterclockwise triangles |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface WorldObject |
---|
getClearingAbove, getClearingBelow, getGroundState |
Field Detail |
---|
protected final MapArea area
Constructor Detail |
---|
protected AbstractAreaWorldObject(MapArea area)
Method Detail |
---|
public PolygonXYZ getOutlinePolygon()
WorldObjectWithOutline
getOutlinePolygon
in interface WorldObjectWithOutline
public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ()
getAxisAlignedBoundingBoxXZ
in interface IntersectionTestObject
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
protected Collection<TriangleXYZ> getTriangulation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |