org.kaboum.geom
Class KaboumEdge

java.lang.Object
  extended by org.kaboum.geom.KaboumEdge

public class KaboumEdge
extends java.lang.Object

This class define an edge i.e. an oriented segment defined by a start point and an end point. This edge can be labeled as refered to Klamer Schutte algorithm (cf. "An edge labeling approach to concave polygon cliping", Klamer Schutte, PREPRINT submitted 7 july 1995 to ACM Transcations on Graphics).


Field Summary
static int INSIDE
           
 int label
          The label
static int OUTSIDE
           
 KaboumCoordinate p1
          The start point
 KaboumCoordinate p2
          The end point
static int SHARED
           
static int UNLABELED
           
 
Constructor Summary
KaboumEdge(KaboumCoordinate p1, KaboumCoordinate p2)
          Constructs an unlabeled edge .
KaboumEdge(KaboumCoordinate p1, KaboumCoordinate p2, int edge)
          Constructs an edge .
 
Method Summary
 KaboumExtent getExtent()
          Return the extent of this edge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNLABELED

public static final int UNLABELED
See Also:
Constant Field Values

INSIDE

public static final int INSIDE
See Also:
Constant Field Values

OUTSIDE

public static final int OUTSIDE
See Also:
Constant Field Values

SHARED

public static final int SHARED
See Also:
Constant Field Values

p1

public KaboumCoordinate p1
The start point


p2

public KaboumCoordinate p2
The end point


label

public int label
The label

Constructor Detail

KaboumEdge

public KaboumEdge(KaboumCoordinate p1,
                  KaboumCoordinate p2,
                  int edge)
Constructs an edge .

Parameters:
p1 - Start point
p2 - End point
label - Label

KaboumEdge

public KaboumEdge(KaboumCoordinate p1,
                  KaboumCoordinate p2)
Constructs an unlabeled edge .

Parameters:
p1 - Start point
p2 - End point
Method Detail

getExtent

public KaboumExtent getExtent()
Return the extent of this edge



Copyright © 2005 Kaboum team. All Rights Reserved.