Geometry-Based Edge Clustering
 All Classes Functions
Edge Class Reference

This class represents an Edge of the graph or the control mesh. More...

Public Member Functions

 Edge (Node startNode, Node endNode)
 Creates an Edge with a start and end Node. More...
 
 Edge (Node startNode, double angleXAxis)
 Creates an Edge of length 1 with the specified start node and angle to the x-axis. More...
 
 Edge (DEdge dEdge)
 Creates an Edge from a DEdge object used in the JDelaunay-library. More...
 
Node getEndNode ()
 Returns the end Node of the Edge. More...
 
void setEndNode (Node endNode)
 Sets the end Node of the Edge. More...
 
Node getStartNode ()
 Returns the start Node of the Edge. More...
 
void setStartNode (Node startNode)
 Sets the start Node of the Edge. More...
 
ArrayList< NodegetSubNodes ()
 Returns the sub-Nodes of the Edge. More...
 
void addSubNode (Node node)
 Adds a sub-Node to the Edge. More...
 
boolean isIncident (Node node)
 Returns whether the specified Node is incident to the Edge. More...
 
double angleXAxis ()
 Returns the angle of the Edge to the x-axis. More...
 
double dx ()
 Returns the length of the Edge in x-direction. More...
 
double dy ()
 Returns the length of the Edge in y-direction. More...
 
double magnitude ()
 Returns the Euclidian length of the Edge. More...
 
int[] subNodesXInt ()
 Returns an array with the Integer x-coordinates of the sub-Nodes of the Edge. More...
 
int[] subNodesYInt ()
 Returns an array with the Integer y-coordinates of the sub-Nodes of the Edge. More...
 
DEdge toDEdge ()
 Converts the Edge to a DEdge object used in the JDelaunay-library. More...
 
LineSegment toLineSegment ()
 Converts the Edge to a LineSegment object used in the JTS-library. More...
 
Node intersection (Edge other)
 Returns the intersection of the Edge with the specified other Edge. More...
 
void deleteSubNodes ()
 Deletes the sub-Nodes of the Edge.
 

Detailed Description

This class represents an Edge of the graph or the control mesh.

Author
Kurt Leimer

Definition at line 14 of file Edge.java.

Constructor & Destructor Documentation

Edge.Edge ( Node  startNode,
Node  endNode 
)

Creates an Edge with a start and end Node.

Parameters
startNodeThe start Node of the Edge.
endNodeThe end Node of the Edge.

Definition at line 25 of file Edge.java.

Edge.Edge ( Node  startNode,
double  angleXAxis 
)

Creates an Edge of length 1 with the specified start node and angle to the x-axis.

Parameters
startNodeThe start Node of the Edge.
angleXAxisThe angle to the x-axis.

Definition at line 41 of file Edge.java.

Edge.Edge ( DEdge  dEdge)

Creates an Edge from a DEdge object used in the JDelaunay-library.

Parameters
dEdgeThe DEdge object used for the creation of the Edge.

Definition at line 53 of file Edge.java.

Member Function Documentation

void Edge.addSubNode ( Node  node)

Adds a sub-Node to the Edge.

Parameters
nodeThe sub-Node that is added to the Edge.

Definition at line 102 of file Edge.java.

double Edge.angleXAxis ( )

Returns the angle of the Edge to the x-axis.

Returns
the angle of the Edge to the x-axis.

Definition at line 119 of file Edge.java.

double Edge.dx ( )

Returns the length of the Edge in x-direction.

Returns
the length of the Edge in x-direction.

Definition at line 130 of file Edge.java.

double Edge.dy ( )

Returns the length of the Edge in y-direction.

Returns
the length of the Edge in y-direction.

Definition at line 138 of file Edge.java.

Node Edge.getEndNode ( )

Returns the end Node of the Edge.

Returns
the end Node of the Edge.

Definition at line 62 of file Edge.java.

Node Edge.getStartNode ( )

Returns the start Node of the Edge.

Returns
the start Node of the Edge.

Definition at line 78 of file Edge.java.

ArrayList<Node> Edge.getSubNodes ( )

Returns the sub-Nodes of the Edge.

Returns
the sub-Nodes of the Edge.

Definition at line 94 of file Edge.java.

Node Edge.intersection ( Edge  other)

Returns the intersection of the Edge with the specified other Edge.

Parameters
otherThe other Edge which is intersected.
Returns
the intersection of the two Edges.

Definition at line 195 of file Edge.java.

boolean Edge.isIncident ( Node  node)

Returns whether the specified Node is incident to the Edge.

Parameters
nodeThe node which is checked.
Returns
true if the specified node is incident, false otherwise.

Definition at line 111 of file Edge.java.

double Edge.magnitude ( )

Returns the Euclidian length of the Edge.

Returns
the Euclidian length of the Edge.

Definition at line 146 of file Edge.java.

void Edge.setEndNode ( Node  endNode)

Sets the end Node of the Edge.

Parameters
endNodeThe new end Node of the Edge.

Definition at line 70 of file Edge.java.

void Edge.setStartNode ( Node  startNode)

Sets the start Node of the Edge.

Parameters
startNodeThe new start Node of the Edge.

Definition at line 86 of file Edge.java.

int [] Edge.subNodesXInt ( )

Returns an array with the Integer x-coordinates of the sub-Nodes of the Edge.

Returns
an array with the Integer x-coordinates of the sub-Nodes of the Edge.

Definition at line 154 of file Edge.java.

int [] Edge.subNodesYInt ( )

Returns an array with the Integer y-coordinates of the sub-Nodes of the Edge.

Returns
an array with the Integer y-coordinates of the sub-Nodes of the Edge.

Definition at line 166 of file Edge.java.

DEdge Edge.toDEdge ( )

Converts the Edge to a DEdge object used in the JDelaunay-library.

Returns
the converted DEdge.

Definition at line 178 of file Edge.java.

LineSegment Edge.toLineSegment ( )

Converts the Edge to a LineSegment object used in the JTS-library.

Returns
the converted LineSegment.

Definition at line 186 of file Edge.java.


The documentation for this class was generated from the following file: