|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjwo.landserf.structure.msn.GraphEdge
public class GraphEdge
Structure to store the link between surface nodes. Contains the locations of the two end points, the vector line linking them as well as 'from' and 'to' pointers.
Constructor Summary | |
---|---|
GraphEdge(GISVector path,
int type1,
int type2,
float z1,
float z2)
Creates an unconnected graph edge represented by the given geometry and feature types. |
|
GraphEdge(GraphNetwork graphNetwork,
GISVector path,
int type1,
int type2,
float z1,
float z2)
Creates a graph edge represented by the given geometry and feature types. |
|
GraphEdge(GraphNetwork graphNetwork,
GraphNode node1,
GraphNode node2)
Creates a graph edge from the given nodes. |
Method Summary | |
---|---|
Vector |
getInternalEdges()
Returns a list of internal edges that make up this edge. |
GraphNode |
getNode1()
Reports the first node. |
GraphNode |
getNode2()
Reports the second node. |
GISVector |
getPath()
Reports the geometry of the path connecting locations. |
int |
getType()
Reports the type of edge connecting nodes. |
int |
getType1()
Reports the type of feature at the first node. |
int |
getType2()
Reports the type of feature at the second node. |
float |
getX1()
Reports the x coordinate of the first node. |
float |
getX2()
Reports the x coordinate of the second node. |
float |
getY1()
Reports the y coordinate of the first node. |
float |
getY2()
Reports the y coordinate of the second node. |
float |
getZ1()
Reports the z coordinate of the first node. |
float |
getZ2()
Reports the z coordinate of the second node. |
Vector |
intersectWith(GraphEdge otherEdge)
Reports a list of new edges that would result if this edge intersects with the given edge. |
Vector |
intersectWith(GraphEdge otherEdge,
boolean thin)
Reports a list of new edges that would result if this edge intersects with the given edge. |
String |
toString()
Provides a text summary of the edge. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GraphEdge(GraphNetwork graphNetwork, GraphNode node1, GraphNode node2)
graphNetwork
- Network graph connecting graph edges.node1
- First node in edge.node2
- Second node in edge.public GraphEdge(GraphNetwork graphNetwork, GISVector path, int type1, int type2, float z1, float z2)
graphNetwork
- Network graph connecting graph edges.path
- Vector path connecting nodes.type1
- Type of node at one end.type2
- Type of node at the other end.z1
- Height at one end.z2
- Height at the other end.public GraphEdge(GISVector path, int type1, int type2, float z1, float z2)
path
- Vector path connecting nodes.type1
- Type of node at one end.type2
- Type of node at the other end.z1
- Height at one end.z2
- Height at the other end.Method Detail |
---|
public Vector intersectWith(GraphEdge otherEdge)
otherEdge
- Edge with which to intersect.
public Vector intersectWith(GraphEdge otherEdge, boolean thin)
otherEdge
- Edge with which to intersect.thin
- Links between the first and last intersections merged if set to true.
public String toString()
toString
in class Object
public GISVector getPath()
public int getType()
public float getX1()
public float getY1()
public float getZ1()
public int getType1()
public GraphNode getNode1()
public float getX2()
public float getY2()
public float getZ2()
public int getType2()
public GraphNode getNode2()
public Vector getInternalEdges()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |