Table of Contents

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 double

The event location

insertEvent SweepLineEvent

The corresponding INSERT event

SweepLineEvent(object, double, object)

Creates an INSERT event.

public SweepLineEvent(object label, double x, object obj)

Parameters

label object

The edge set label for this object.

x double

The event location

obj object

the object being inserted

Properties

DeleteEventIndex

public int DeleteEventIndex { get; set; }

Property Value

int

InsertEvent

public SweepLineEvent InsertEvent { get; }

Property Value

SweepLineEvent

IsDelete

public bool IsDelete { get; }

Property Value

bool

IsInsert

public bool IsInsert { get; }

Property Value

bool

Object

public object Object { get; }

Property Value

object

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

int

IsSameLabel(SweepLineEvent)

public bool IsSameLabel(SweepLineEvent ev)

Parameters

ev SweepLineEvent

Returns

bool