|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.jhu.htm.core.Sign | +--edu.jhu.htm.core.Convex
The Convex class encapsulates all the code for intersection and lookup. It represents a convex on the unit sphere (see Domain).
Current Version =============== ID: $Id: Convex.java,v 1.3 2003/02/19 15:46:11 womullan Exp $ Revision: $Revision: 1.3 $ Date/time: $Date: 2003/02/19 15:46:11 $
Field Summary | |
protected int |
olevel
|
Fields inherited from class edu.jhu.htm.core.Sign |
mIXED, nEG, pOS, sign_, zERO |
Constructor Summary | |
Convex()
Default Constructor |
|
Convex(Vector3d v1,
Vector3d v2,
Vector3d v3)
Constructor from a triangle Initialize domain from a triangle. |
|
Convex(Vector3d v1,
Vector3d v2,
Vector3d v3,
Vector3d v4)
Constructor from a rectangle Initialize convex from a rectangle. |
Method Summary | |
void |
add(Constraint c)
Add a constraint. |
boolean |
contains(Vector3d p)
|
Constraint |
getConstraint(int c)
|
Vector3d |
getCorner(int c)
|
int |
getNumberOfConstraints()
|
int |
getOlevel()
|
void |
intersect(HTMindexImp idx,
HTMrange htmrange,
boolean varlen)
Intersect with index. |
static java.lang.String |
printMark(short mark)
|
protected void |
saveTrixel(long htmid,
HTMrange hr,
boolean varlen)
adds the given trixel tot he HTMrange |
void |
setOlevel(int lev)
|
void |
simplify()
simplify: We have the following decision tree for the simplification of convexes: Always test two constraints against each other. |
java.lang.String |
toString()
|
Methods inherited from class edu.jhu.htm.core.Sign |
printSign |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int olevel
Constructor Detail |
public Convex()
public Convex(Vector3d v1, Vector3d v2, Vector3d v3)
public Convex(Vector3d v1, Vector3d v2, Vector3d v3, Vector3d v4)
Method Detail |
public void add(Constraint c)
public void simplify()
public void intersect(HTMindexImp idx, HTMrange htmrange, boolean varlen)
protected void saveTrixel(long htmid, HTMrange hr, boolean varlen)
public Constraint getConstraint(int c)
public int getNumberOfConstraints()
public Vector3d getCorner(int c)
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String printMark(short mark)
public void setOlevel(int lev)
public int getOlevel()
public boolean contains(Vector3d p)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |