Class: SweepLineEvent

jsts.geomgraph.index.SweepLineEvent

new SweepLineEvent(x, obj, label)

Parameters:
Name Type Description
x double
obj Object
label Object
Source:

Members

(static) DELETE :int

Type:
  • int
Source:

(static) INSERT :int

Type:
  • int
Source:

deleteEventIndex :int

Type:
  • int
Source:

eventType :int

Type:
  • int
Source:

insertEvent :SweepLineEvent

null if this is an INSERT event
Type:
  • SweepLineEvent
Source:

label :Object

used for red-blue intersection detection
Type:
  • Object
Source:

obj :Object

Type:
  • Object
Source:

xValue :double

Type:
  • double
Source:

Methods

compareTo(o) → {SweepLineEvent}

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.
Parameters:
Name Type Description
o Object
Source:
Returns:
Type
SweepLineEvent

getDeleteEventIndex() → {int}

Source:
Returns:
Type
int

getInsertEvent() → {SweepLineEvent}

Source:
Returns:
Type
SweepLineEvent

getObject() → {Object}

Source:
Returns:
Type
Object

isDelete() → {boolean}

Source:
Returns:
Type
boolean

isInsert() → {boolean}

Source:
Returns:
Type
boolean

isSameLabel(ev) → {boolean}

Parameters:
Name Type Description
ev SweepLineEvent
Source:
Returns:
Type
boolean

setDeleteEventIndex(deleteEventIndex)

Parameters:
Name Type Description
deleteEventIndex int
Source: