|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectVisibleConnectorNodeWorldObject
public abstract class VisibleConnectorNodeWorldObject
| Field Summary | |
|---|---|
protected VectorXZ |
cutVector
|
protected VectorXZ |
endPos
|
protected float |
endWidth
|
protected boolean |
informationProvided
|
protected MapNode |
node
|
protected VectorXZ |
startPos
|
protected float |
startWidth
|
| Constructor Summary | |
|---|---|
VisibleConnectorNodeWorldObject(MapNode node)
|
|
| Method Summary | |
|---|---|
AxisAlignedBoundingBoxXZ |
getAxisAlignedBoundingBoxXZ()
|
abstract float |
getLength()
returns the length required by this node representation. |
List<VectorXYZ> |
getOutline(int from,
int to)
provides outline for the areas covered by the connector. |
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<VectorXZ> |
getOutlineXZ(int from,
int to)
variant of getOutline(int, int) for the XZ plane |
MapElement |
getPrimaryMapElement()
returns the "primary" MapElement for this WorldObject;
i.e. |
void |
setInformation(VectorXZ cutVector,
VectorXZ startPos,
VectorXZ endPos,
float startWidth,
float endWidth)
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 |
|---|
getClearingAbove, getClearingBelow, getGroundState |
| Field Detail |
|---|
protected final MapNode node
protected boolean informationProvided
protected VectorXZ cutVector
protected VectorXZ startPos
protected VectorXZ endPos
protected float startWidth
protected float endWidth
| Constructor Detail |
|---|
public VisibleConnectorNodeWorldObject(MapNode node)
| Method Detail |
|---|
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 MapElement getPrimaryMapElement()
WorldObjectMapElement 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<VectorXZ> getOutlineXZ(int from,
int to)
getOutline(int, int) for the XZ plane
public List<VectorXYZ> getOutline(int from,
int to)
MapNode's
MapNode.getConnectedSegments() method.
TODO: method necessary after Terrain change?
public SimplePolygonXZ getOutlinePolygonXZ()
WorldObjectWithOutline
getOutlinePolygonXZ in interface WorldObjectWithOutlinepublic PolygonXYZ getOutlinePolygon()
WorldObjectWithOutline
getOutlinePolygon in interface WorldObjectWithOutlinepublic AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ()
getAxisAlignedBoundingBoxXZ in interface IntersectionTestObjectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||