org.osm2world.core.world.network
public abstract class VisibleConnectorNodeWorldObject extends OutlineNodeWorldObject
Modifier and Type | Field and Description |
---|---|
protected VectorXZ |
cutVector |
protected VectorXZ |
endPos |
protected float |
endWidth |
protected boolean |
informationProvided |
protected VectorXZ |
startPos |
protected float |
startWidth |
node
Constructor and Description |
---|
VisibleConnectorNodeWorldObject(MapNode node) |
Modifier and Type | Method and Description |
---|---|
abstract float |
getLength()
returns the length required by this node representation.
|
SimplePolygonXZ |
getOutlinePolygonXZ()
returns a counterclockwise polygon defining the object's ground footprint,
projected onto the XZ plane.
|
protected List<VectorXZ> |
getOutlineXZ(int from,
int to)
provides outline for the areas covered by the connector.
|
void |
setInformation(VectorXZ cutVector,
VectorXZ startPos,
VectorXZ endPos,
float startWidth,
float endWidth)
sets the results of
NetworkCalculator 's calculations. |
defineEleConstraints, getAxisAlignedBoundingBoxXZ, getEleConnectors, getOutlinePolygon, getPrimaryMapElement, getTriangulation, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGroundState
protected boolean informationProvided
protected VectorXZ cutVector
protected VectorXZ startPos
protected VectorXZ endPos
protected float startWidth
protected float endWidth
public VisibleConnectorNodeWorldObject(MapNode node)
public abstract float getLength()
NetworkCalculator
starts.public void setInformation(VectorXZ cutVector, VectorXZ startPos, VectorXZ endPos, float startWidth, float endWidth)
NetworkCalculator
's calculations.
Most methods in this class cannot be used until this method
has provided the required information!public SimplePolygonXZ getOutlinePolygonXZ()
WorldObjectWithOutline
getOutlinePolygonXZ
in interface WorldObjectWithOutline
getOutlinePolygonXZ
in class OutlineNodeWorldObject
protected List<VectorXZ> getOutlineXZ(int from, int to)
MapNode
's
MapNode.getConnectedSegments()
method.