|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hedgehog.HObject
com.hedgehog.geo.ConvexHullMethod
public class ConvexHullMethod
Title: ConvexHullMethod - Stores the type of method used when generating a convex hull.
Description: Stores the method used when generating a convex hull. Is used by both 2D and 3D point sets and polygons.
Copyright: Copyright (c) Hedgehog Software 2007-2009.
Company: Hedgehog Software
| Field Summary | |
|---|---|
static int |
APPROXIMATE_BFP
Indicates an approximate [Bentley-Faust-Preparata, 1982] BFP O(n) algorithm is used to generate the hull. |
static int |
INCREMENTAL
Indicates an incremental algorithm is used to generate the hull. |
protected int |
mHullMethod
The hull method. |
static int |
UNKNOWN
Indicates an unknown method. |
| Fields inherited from class com.hedgehog.HObject |
|---|
mID, mName |
| Constructor Summary | |
|---|---|
ConvexHullMethod()
Default constructor. |
|
ConvexHullMethod(ConvexHullMethod object)
Copy constructor. |
|
ConvexHullMethod(int hullMethod)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getHullMethod()
Returns the hull method. |
static java.lang.String |
hullMethodString(int hullMethod)
Returns a String representation of the specified hull method. |
boolean |
isApproximateBFPMethod()
Tests whether or not this method is APPROXIMATE_BFP. |
boolean |
isIncrementalMethod()
Tests whether or not this method is INCREMENTAL. |
boolean |
isUnknownMethod()
Tests whether or not this method is UNKNOWN. |
boolean |
isValid()
Tests whether or not this is a valid hull method. |
static boolean |
isValid(int hullMethod)
Tests whether or not the specified hull method is valid. |
void |
setHullMethod(int hullMethod)
Sets the hull method. |
java.lang.String |
toString()
Returns a String representation of a ConvexHullMethod object. |
| Methods inherited from class com.hedgehog.HObject |
|---|
clone, compare, compareTo, copy, equals, getID, getName, hashCode, hasID, hasName, setID, setName |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int mHullMethod
public static final int APPROXIMATE_BFP
public static final int INCREMENTAL
public static final int UNKNOWN
| Constructor Detail |
|---|
public ConvexHullMethod()
public ConvexHullMethod(int hullMethod)
throws java.lang.IllegalArgumentException
hullMethod - Convex hull method.
java.lang.IllegalArgumentException - Thrown if the specified hull method is invalid.public ConvexHullMethod(ConvexHullMethod object)
object - Object to copy.| Method Detail |
|---|
public int getHullMethod()
public void setHullMethod(int hullMethod)
throws java.lang.IllegalArgumentException
hullMethod - The new hull method.
java.lang.IllegalArgumentException - Thrown if the specified hull method is invalid.public boolean isValid()
public boolean isApproximateBFPMethod()
public boolean isIncrementalMethod()
public boolean isUnknownMethod()
public java.lang.String toString()
toString in class java.lang.Objectpublic static boolean isValid(int hullMethod)
hullMethod - Hull method to test.
public static java.lang.String hullMethodString(int hullMethod)
hullMethod - Hull method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||