NetTopologySuite
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
NetTopologySuite.GeometriesGraph.Edge Class Reference

More...

Inheritance diagram for NetTopologySuite.GeometriesGraph.Edge:
NetTopologySuite.GeometriesGraph.GraphComponent

Public Member Functions

 Edge (Coordinate[] pts, Label label)
 
 Edge (Coordinate[] pts)
 
Coordinate GetCoordinate (int i)
 
void AddIntersections (LineIntersector li, int segmentIndex, int geomIndex)
 Adds EdgeIntersections for one or both intersections found for a segment of an edge to the edge intersection list. More...
 
void AddIntersection (LineIntersector li, int segmentIndex, int geomIndex, int intIndex)
 Add an EdgeIntersection for intersection intIndex. An intersection that falls exactly on a vertex of the edge is normalized to use the higher of the two possible segmentIndexes. More...
 
override void ComputeIM (IntersectionMatrix im)
 Update the IM with the contribution for this component. A component only contributes if it has a labelling for both parent geometries. More...
 
override bool Equals (object o)
 Equals is defined to be: e1 equals e2 iff the coordinates of e1 are the same or the reverse of the coordinates in e2. More...
 
override int GetHashCode ()
 
bool IsPointwiseEqual (Edge e)
 
override String ToString ()
 
void Write (TextWriter outstream)
 
void WriteReverse (TextWriter outstream)
 
- Public Member Functions inherited from NetTopologySuite.GeometriesGraph.GraphComponent
void UpdateIM (IntersectionMatrix im)
 Update the IM with the contribution for this component. A component only contributes if it has a labelling for both parent geometries. More...
 

Static Public Member Functions

static void UpdateIM (Label label, IntersectionMatrix im)
 Updates an IM from the label for an edge. Handles edges from both L and A geometries. More...
 
static bool operator== (Edge obj1, Edge obj2)
 
static bool operator!= (Edge obj1, Edge obj2)
 

Protected Member Functions

bool Equals (Edge e)
 Equals is defined to be: e1 equals e2 iff the coordinates of e1 are the same or the reverse of the coordinates in e2. More...
 
- Protected Member Functions inherited from NetTopologySuite.GeometriesGraph.GraphComponent
 GraphComponent ()
 
 GraphComponent (Label label)
 

Properties

Coordinate[] Points [get, set]
 
int NumPoints [get]
 
string Name [get, set]
 
Coordinate[] Coordinates [get]
 
override Coordinate Coordinate [get, protected set]
 
Envelope Envelope [get]
 
Depth Depth [get]
 
int DepthDelta [get, set]
 The depthDelta is the change in depth as an edge is crossed from R to L. More...
 
int MaximumSegmentIndex [get]
 
EdgeIntersectionList EdgeIntersectionList [get]
 
MonotoneChainEdge MonotoneChainEdge [get]
 
bool IsClosed [get]
 
bool IsCollapsed [get]
 An Edge is collapsed if it is an Area edge and it consists of two segments which are equal and opposite (eg a zero-width V). More...
 
Edge CollapsedEdge [get]
 
bool Isolated [get, set]
 
override bool IsIsolated [get]
 
- Properties inherited from NetTopologySuite.GeometriesGraph.GraphComponent
Label Label [get, set]
 
bool InResult [get, set]
 
bool IsInResult [get]
 IsInResult indicates if this component has already been included in the result. More...
 
bool Covered [get, set]
 
bool IsCovered [get]
 
bool IsCoveredSet [get]
 
bool Visited [get, set]
 
bool IsVisited [get]
 
abstract Coordinate Coordinate [get, protected set]
 
abstract bool IsIsolated [get]
 An isolated component is one that does not intersect or touch any other component. This is the case if the label has valid locations for only a single Geometry. More...
 

Detailed Description

Constructor & Destructor Documentation

NetTopologySuite.GeometriesGraph.Edge.Edge ( Coordinate[]  pts,
Label  label 
)

Parameters
pts
label
NetTopologySuite.GeometriesGraph.Edge.Edge ( Coordinate[]  pts)

Parameters
pts

Member Function Documentation

void NetTopologySuite.GeometriesGraph.Edge.AddIntersection ( LineIntersector  li,
int  segmentIndex,
int  geomIndex,
int  intIndex 
)

Add an EdgeIntersection for intersection intIndex. An intersection that falls exactly on a vertex of the edge is normalized to use the higher of the two possible segmentIndexes.

Parameters
li
segmentIndex
geomIndex
intIndex
void NetTopologySuite.GeometriesGraph.Edge.AddIntersections ( LineIntersector  li,
int  segmentIndex,
int  geomIndex 
)

Adds EdgeIntersections for one or both intersections found for a segment of an edge to the edge intersection list.

Parameters
li
segmentIndex
geomIndex
override void NetTopologySuite.GeometriesGraph.Edge.ComputeIM ( IntersectionMatrix  im)
virtual

Update the IM with the contribution for this component. A component only contributes if it has a labelling for both parent geometries.

Parameters
im

Implements NetTopologySuite.GeometriesGraph.GraphComponent.

override bool NetTopologySuite.GeometriesGraph.Edge.Equals ( object  o)

Equals is defined to be: e1 equals e2 iff the coordinates of e1 are the same or the reverse of the coordinates in e2.

Parameters
o
bool NetTopologySuite.GeometriesGraph.Edge.Equals ( Edge  e)
protected

Equals is defined to be: e1 equals e2 iff the coordinates of e1 are the same or the reverse of the coordinates in e2.

Parameters
e
Coordinate NetTopologySuite.GeometriesGraph.Edge.GetCoordinate ( int  i)

Parameters
i
Returns
override int NetTopologySuite.GeometriesGraph.Edge.GetHashCode ( )

Returns
bool NetTopologySuite.GeometriesGraph.Edge.IsPointwiseEqual ( Edge  e)
Returns
true if the coordinate sequences of the Edges are identical.
Parameters
e
static bool NetTopologySuite.GeometriesGraph.Edge.operator!= ( Edge  obj1,
Edge  obj2 
)
static

Parameters
obj1
obj2
Returns
static bool NetTopologySuite.GeometriesGraph.Edge.operator== ( Edge  obj1,
Edge  obj2 
)
static

Parameters
obj1
obj2
Returns
static void NetTopologySuite.GeometriesGraph.Edge.UpdateIM ( Label  label,
IntersectionMatrix  im 
)
static

Updates an IM from the label for an edge. Handles edges from both L and A geometries.

Parameters
im
label
void NetTopologySuite.GeometriesGraph.Edge.Write ( TextWriter  outstream)

Parameters
outstream
void NetTopologySuite.GeometriesGraph.Edge.WriteReverse ( TextWriter  outstream)

Parameters
outstream

Property Documentation

Edge NetTopologySuite.GeometriesGraph.Edge.CollapsedEdge
get

override Coordinate NetTopologySuite.GeometriesGraph.Edge.Coordinate
getprotected set

Coordinate [] NetTopologySuite.GeometriesGraph.Edge.Coordinates
get

Depth NetTopologySuite.GeometriesGraph.Edge.Depth
get

int NetTopologySuite.GeometriesGraph.Edge.DepthDelta
getset

The depthDelta is the change in depth as an edge is crossed from R to L.

Returns
The change in depth as the edge is crossed from R to L.
EdgeIntersectionList NetTopologySuite.GeometriesGraph.Edge.EdgeIntersectionList
get

Envelope NetTopologySuite.GeometriesGraph.Edge.Envelope
get

bool NetTopologySuite.GeometriesGraph.Edge.IsClosed
get

bool NetTopologySuite.GeometriesGraph.Edge.IsCollapsed
get

An Edge is collapsed if it is an Area edge and it consists of two segments which are equal and opposite (eg a zero-width V).

override bool NetTopologySuite.GeometriesGraph.Edge.IsIsolated
get

bool NetTopologySuite.GeometriesGraph.Edge.Isolated
getset

int NetTopologySuite.GeometriesGraph.Edge.MaximumSegmentIndex
get

MonotoneChainEdge NetTopologySuite.GeometriesGraph.Edge.MonotoneChainEdge
get

string NetTopologySuite.GeometriesGraph.Edge.Name
getset

int NetTopologySuite.GeometriesGraph.Edge.NumPoints
get

Coordinate [] NetTopologySuite.GeometriesGraph.Edge.Points
getset


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