edu.umd.cs.piccolox.util
Class POcclusionDetection

java.lang.Object
  extended by edu.umd.cs.piccolox.util.POcclusionDetection

public class POcclusionDetection
extends Object

Experimental class for detecting occlusions.

Author:
Jesse Grosjean

Constructor Summary
POcclusionDetection()
           
 
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
 

Constructor Detail

POcclusionDetection

public POcclusionDetection()
Method Detail

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 occlusions
parentBounds - 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 occlusions
pickPath - Pick Path to traverse


Copyright © 1995-2010 Piccolo2D. All Rights Reserved.