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
xdoubleThe event location
insertEventSweepLineEventThe corresponding INSERT event
SweepLineEvent(object, double, object)
Creates an INSERT event.
public SweepLineEvent(object label, double x, object obj)
Parameters
labelobjectThe edge set label for this object.
xdoubleThe event location
objobjectthe 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
oobject
Returns
IsSameLabel(SweepLineEvent)
public bool IsSameLabel(SweepLineEvent ev)