Class SweepLineEvent
- Namespace
- NetTopologySuite.GeometriesGraph.Index
- Assembly
- NetTopologySuite.dll
public class SweepLineEvent : IComparable
- Inheritance
-
SweepLineEvent
- Implements
- Inherited Members
Constructors
SweepLineEvent(double, SweepLineEvent)
Creates a DELETE event.
public SweepLineEvent(double x, SweepLineEvent insertEvent)
Parameters
x
doubleThe event location
insertEvent
SweepLineEventThe corresponding INSERT event
SweepLineEvent(object, double, object)
Creates an INSERT event.
public SweepLineEvent(object label, double x, object obj)
Parameters
label
objectThe edge set label for this object.
x
doubleThe event location
obj
objectthe object being inserted
Properties
DeleteEventIndex
public int DeleteEventIndex { get; set; }
Property Value
InsertEvent
public SweepLineEvent InsertEvent { get; }
Property Value
IsDelete
public bool IsDelete { get; }
Property Value
IsInsert
public bool IsInsert { get; }
Property Value
Object
public object Object { get; }
Property Value
Methods
CompareTo(object)
Events are ordered first by their x-value, and then by their eventType. Insert events are sorted before Delete events, so that items whose Insert and Delete events occur at the same x-value will be correctly handled.
public int CompareTo(object o)
Parameters
o
object
Returns
IsSameLabel(SweepLineEvent)
public bool IsSameLabel(SweepLineEvent ev)