org.geotools.geometry.iso.topograph2D.index
Class SweepLineEvent

Object
  extended by SweepLineEvent
All Implemented Interfaces:
Comparable

public class SweepLineEvent
extends Object
implements Comparable

Models an Event point within the Sweep Line Intersection Algorithm


Field Summary
static int DELETE
           
static int INSERT
           
 
Constructor Summary
SweepLineEvent(Object edgeSet, double x, SweepLineEvent insertEvent, Object obj)
           
 
Method Summary
 int compareTo(Object o)
          ProjectionEvents are ordered first by their x-value, and then by their eventType.
 int getDeleteEventIndex()
           
 SweepLineEvent getInsertEvent()
           
 Object getObject()
           
 boolean isDelete()
           
 boolean isInsert()
           
 void setDeleteEventIndex(int deleteEventIndex)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSERT

public static final int INSERT
See Also:
Constant Field Values

DELETE

public static final int DELETE
See Also:
Constant Field Values
Constructor Detail

SweepLineEvent

public SweepLineEvent(Object edgeSet,
                      double x,
                      SweepLineEvent insertEvent,
                      Object obj)
Parameters:
edgeSet -
x -
insertEvent -
obj -
Method Detail

isInsert

public boolean isInsert()

isDelete

public boolean isDelete()

getInsertEvent

public SweepLineEvent getInsertEvent()

getDeleteEventIndex

public int getDeleteEventIndex()

setDeleteEventIndex

public void setDeleteEventIndex(int deleteEventIndex)

getObject

public Object getObject()

compareTo

public int compareTo(Object o)
ProjectionEvents are ordered first by their x-value, and then by their eventType. It is important that 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.

Specified by:
compareTo in interface Comparable


Copyright © 1996-2009 Geotools. All Rights Reserved.