|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectJunctionNodeWorldObject
public abstract class JunctionNodeWorldObject
Field Summary | |
---|---|
protected List<VectorXZ> |
cutCenters
|
protected List<VectorXZ> |
cutVectors
|
protected boolean |
informationProvided
|
protected MapNode |
node
|
protected List<Float> |
widths
|
Constructor Summary | |
---|---|
JunctionNodeWorldObject(MapNode node)
|
Method Summary | |
---|---|
AxisAlignedBoundingBoxXZ |
getAxisAlignedBoundingBoxXZ()
|
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. |
protected VectorXZ |
getCutNode(int i,
boolean right)
calculates the left or right node of a cut (Only available if junction information for this representation has been provided using setInformation(List, List, List) ). |
protected PolygonXYZ |
getJunctionArea()
provides subclasses with an outline of the junction area. |
protected PolygonXZ |
getJunctionAreaXZ()
variant of getJunctionArea() in the XZ plane |
List<VectorXYZ> |
getOutline(int from,
int to)
provides outline for the areas covered by the junction. |
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. |
MapElement |
getPrimaryMapElement()
returns the "primary" MapElement for this WorldObject;
i.e. |
Collection<TriangleXYZ> |
getTriangulation()
|
void |
setInformation(List<VectorXZ> cutCenters,
List<VectorXZ> cutVectors,
List<Float> widths)
sets the results of NetworkCalculator 's calculations. |
String |
toString()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface WorldObject |
---|
getGroundState |
Field Detail |
---|
protected final MapNode node
protected boolean informationProvided
protected List<VectorXZ> cutVectors
protected List<VectorXZ> cutCenters
protected List<Float> widths
Constructor Detail |
---|
public JunctionNodeWorldObject(MapNode node)
Method Detail |
---|
public void setInformation(List<VectorXZ> cutCenters, List<VectorXZ> cutVectors, List<Float> widths)
NetworkCalculator
's calculations.
Cut information will not be created for all way/area segments.
The lists can therefore contain null entries.
cutCenters
- centers of the cuts to each;
indices are the same as for the GridNode's
MapNode.getConnectedSegments()
cutVectors
- vectors describing indicating the cut line,
pointing to the right from the node's pov;
for indices see junctionCutCenterswidths
- widths of the junction cut;
for indices see junctionCutCenterspublic 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 List<VectorXYZ> getOutline(int from, int to)
MapNode
's
MapNode.getConnectedSegments()
method.
public PolygonXYZ getOutlinePolygon()
WorldObjectWithOutline
getOutlinePolygon
in interface WorldObjectWithOutline
public SimplePolygonXZ getOutlinePolygonXZ()
WorldObjectWithOutline
getOutlinePolygonXZ
in interface WorldObjectWithOutline
public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ()
getAxisAlignedBoundingBoxXZ
in interface IntersectionTestObject
public double getClearingAbove(VectorXZ pos)
WorldObject
getClearingAbove
in interface WorldObject
public double getClearingBelow(VectorXZ pos)
WorldObject
getClearingBelow
in interface WorldObject
public Collection<TriangleXYZ> getTriangulation()
protected PolygonXYZ getJunctionArea()
setInformation(List, List, List)
.)
protected PolygonXZ getJunctionAreaXZ()
getJunctionArea()
in the XZ plane
protected VectorXZ getCutNode(int i, boolean right)
setInformation(List, List, List)
).
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |