Class GraphComponent
- Namespace
- NetTopologySuite.GeometriesGraph
- Assembly
- NetTopologySuite.dll
A GraphComponent is the parent class for the objects' that form a graph. Each GraphComponent can carry a Label.
public abstract class GraphComponent
- Inheritance
-
GraphComponent
- Derived
- Inherited Members
Constructors
GraphComponent()
protected GraphComponent()
GraphComponent(Label)
protected GraphComponent(Label label)
Parameters
label
Label
Properties
Coordinate
public abstract Coordinate Coordinate { get; protected set; }
Property Value
- Coordinate
A coordinate in this component (or null, if there are none).
Covered
public bool Covered { get; set; }
Property Value
InResult
public bool InResult { get; set; }
Property Value
IsCovered
public bool IsCovered { get; }
Property Value
IsCoveredSet
public bool IsCoveredSet { get; }
Property Value
IsInResult
IsInResult indicates if this component has already been included in the result.
public bool IsInResult { get; }
Property Value
IsIsolated
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.
public abstract bool IsIsolated { get; }
Property Value
- bool
true
if this component is isolated.
IsVisited
public bool IsVisited { get; }
Property Value
Label
public Label Label { get; protected set; }
Property Value
Visited
public bool Visited { get; set; }
Property Value
Methods
ComputeIM(IntersectionMatrix)
Compute the contribution to an IM for this component.
public abstract void ComputeIM(IntersectionMatrix im)
Parameters
im
IntersectionMatrixAn
IntersectionMatrix
UpdateIM(IntersectionMatrix)
Update the IM with the contribution for this component. A component only contributes if it has a labelling for both parent geometries.
public void UpdateIM(IntersectionMatrix im)
Parameters
im
IntersectionMatrixAn
IntersectionMatrix