|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.abora.white.xpp.basic.Heaper
|
+--org.abora.white.filter.Joint
Joints are used to prune searches through trees of Regions. Each Joint summarizes the Joints and Regions at its node and its children using their intersection and union. If you maintain this information at each each node in the tree, then you can search for Regions in the tree efficiently using Filter::pass() to adapt the search criteria to the contents of the subtree. See also Filter::pass(Joint *).
| Field Summary | |
protected XnRegion |
myIntersected
|
protected XnRegion |
myUnioned
|
| Constructor Summary | |
Joint(Rcvr receiver)
|
|
Joint(XnRegion unioned,
XnRegion intersected)
|
|
| Method Summary | |
int |
actualHashForEqual()
Defined by subclasses to produce the value returned by hashForEqual. |
XnRegion |
intersected()
The intersection of the regions at all child nodes in the tree. |
boolean |
isEqual(Heaper other)
Return true if the two objects are equal. |
Joint |
join(Joint other)
A Joint that is a parent of this Joint and the given one. |
static Joint |
make(CoordinateSpace space)
An empty Joint in the given coordinate space. |
static Joint |
make(Joint left,
Joint right)
A joint that is a parent of the two given Joints. |
static Joint |
make(ScruSet subs)
A Joint that is a parent of all of the Joints in the set. |
static Joint |
make(XnRegion both)
A Joint containing only the given region. |
static Joint |
make(XnRegion unioned,
XnRegion intersected)
A Joint with the given union and intersection regions. |
void |
printOn(java.io.PrintWriter oo)
This should rarely be overridden. |
void |
sendSelfTo(Xmtr xmtr)
|
XnRegion |
unioned()
The union of the regions at all child nodes in the tree. |
Joint |
with(XnRegion region)
A Joint that is a parent of this one and the given region. |
| Methods inherited from class org.abora.white.xpp.basic.Heaper |
destroy, destruct, equals, hashForEqual, printContentsOn, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected XnRegion myUnioned
protected XnRegion myIntersected
| Constructor Detail |
public Joint(XnRegion unioned,
XnRegion intersected)
public Joint(Rcvr receiver)
| Method Detail |
public void printOn(java.io.PrintWriter oo)
Heaper
printOn in class Heaperpublic XnRegion intersected()
public Joint join(Joint other)
public XnRegion unioned()
public Joint with(XnRegion region)
public int actualHashForEqual()
Heaper
actualHashForEqual in class Heaperpublic boolean isEqual(Heaper other)
Heaper
isEqual in class Heaperpublic void sendSelfTo(Xmtr xmtr)
sendSelfTo in class Heaperpublic static Joint make(CoordinateSpace space)
public static Joint make(Joint left,
Joint right)
public static Joint make(ScruSet subs)
public static Joint make(XnRegion both)
public static Joint make(XnRegion unioned,
XnRegion intersected)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||