Geometry-Based Edge Clustering
 All Classes Functions
Node Class Reference

This class represents a Node of the graph or control mesh. More...

Public Member Functions

 Node (double x, double y)
 Creates a Node with the specified coordinates. More...
 
 Node (Coordinate coordinate)
 Creates a Node from a Coordinate object used in the JTS-library. More...
 
 Node (DPoint dPoint)
 Creates a Node from a DPoint object used in the JDelaunay-library. More...
 
double getX ()
 Returns the x-coordinate of the Node. More...
 
int getXInt ()
 Returns the x-coordinate of the Node as an int. More...
 
double getY ()
 Returns the y-coordinate of the Node. More...
 
int getYInt ()
 Returns the y-coordinate of the Node as an int. More...
 
void setCoords (double x, double y)
 Sets the coordinates of the Node. More...
 
double distance (Node other)
 Returns the distance of the Node to the specified other Node. More...
 
Coordinate toCoordinate ()
 Converts the Node to a Coordinate object used in the JTS-library. More...
 
DPoint toDPoint ()
 Converts the Node to a DPoint object used in the JDelaunay-library. More...
 

Detailed Description

This class represents a Node of the graph or control mesh.

Author
Kurt Leimer

Definition at line 12 of file Node.java.

Constructor & Destructor Documentation

Node.Node ( double  x,
double  y 
)

Creates a Node with the specified coordinates.

Parameters
xThe x-coordinate of the Node.
yThe y-coordinate of the Node.

Definition at line 21 of file Node.java.

Node.Node ( Coordinate  coordinate)

Creates a Node from a Coordinate object used in the JTS-library.

Parameters
coordinateThe Coordinate object used for the creation of the Node.

Definition at line 30 of file Node.java.

Node.Node ( DPoint  dPoint)

Creates a Node from a DPoint object used in the JDelaunay-library.

Parameters
dPointThe DPoint object used for the creation of the Node.

Definition at line 39 of file Node.java.

Member Function Documentation

double Node.distance ( Node  other)

Returns the distance of the Node to the specified other Node.

Parameters
otherThe other Node whose distance is calculated.
Returns
the distance of the Node to the specified other Node.

Definition at line 91 of file Node.java.

double Node.getX ( )

Returns the x-coordinate of the Node.

Returns
the x-coordinate of the Node.

Definition at line 48 of file Node.java.

int Node.getXInt ( )

Returns the x-coordinate of the Node as an int.

Returns
the x-coordinate of the Node as an int.

Definition at line 56 of file Node.java.

double Node.getY ( )

Returns the y-coordinate of the Node.

Returns
the y-coordinate of the Node.

Definition at line 64 of file Node.java.

int Node.getYInt ( )

Returns the y-coordinate of the Node as an int.

Returns
the y-coordinate of the Node as an int.

Definition at line 72 of file Node.java.

void Node.setCoords ( double  x,
double  y 
)

Sets the coordinates of the Node.

Parameters
xThe new x-coordinate of the Node.
yThe new y-coordinate of the Node.

Definition at line 81 of file Node.java.

Coordinate Node.toCoordinate ( )

Converts the Node to a Coordinate object used in the JTS-library.

Returns
the converted Coordinate object.

Definition at line 100 of file Node.java.

DPoint Node.toDPoint ( )

Converts the Node to a DPoint object used in the JDelaunay-library.

Returns
the converted DPoint object.

Definition at line 108 of file Node.java.


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