edu.umd.cs.piccolox.util
Class POcclusionDetection
java.lang.Object
edu.umd.cs.piccolox.util.POcclusionDetection
public class POcclusionDetection
- extends Object
Experimental class for detecting occlusions.
- Author:
- Jesse Grosjean
Method Summary |
void |
detectOcclusions(PNode node,
PPickPath pickPath)
Traverse the pick path determining which parent nodes are occluded by
their children nodes. |
void |
detectOccusions(PNode n,
PBounds parentBounds)
Traverse from the bottom right of the scene graph (top visible node) up
the tree determining which parent nodes are occluded by their children
nodes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POcclusionDetection
public POcclusionDetection()
detectOccusions
public void detectOccusions(PNode n,
PBounds parentBounds)
- Traverse from the bottom right of the scene graph (top visible node) up
the tree determining which parent nodes are occluded by their children
nodes. Note that this is only detecting a subset of occlusions (parent,
child), others such as overlapping siblings or cousins are not detected.
- Parameters:
n
- node from which to detect occlusionsparentBounds
- bounds of parent node
detectOcclusions
public void detectOcclusions(PNode node,
PPickPath pickPath)
- Traverse the pick path determining which parent nodes are occluded by
their children nodes. Note that this is only detecting a subset of
occlusions (parent, child), others such as overlapping siblings or
cousins are not detected.
- Parameters:
node
- node from which to detect occlusionspickPath
- Pick Path to traverse
Copyright © 1995-2010 Piccolo2D. All Rights Reserved.