All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.WakeupOnCollisionExit

java.lang.Object
   |
   +----java.media.j3d.WakeupCondition
           |
           +----java.media.j3d.WakeupCriterion
                   |
                   +----java.media.j3d.WakeupOnCollisionExit

public final class WakeupOnCollisionExit
extends WakeupCriterion
Class specifying a wakeup when the specified object no longer collides with any other object in the scene graph.


Variable Index

 o USE_BOUNDS
Use geometric bounds as an approximation in computing collisions.
 o USE_GEOMETRY
Use geometry in computing collisions.

Constructor Index

 o WakeupOnCollisionExit(Bounds)
Constructs a new WakeupOnCollisionExit criterion.
 o WakeupOnCollisionExit(Node)
Constructs a new WakeupOnCollisionExit criterion.
 o WakeupOnCollisionExit(Node, int)
Constructs a new WakeupOnCollisionExit criterion.
 o WakeupOnCollisionExit(SceneGraphPath)
Constructs a new WakeupOnCollisionExit criterion.
 o WakeupOnCollisionExit(SceneGraphPath, int)
Constructs a new WakeupOnCollisionExit criterion.

Method Index

 o getArmingBounds()
Returns the bounds object used in specifying the collision condition.
 o getArmingPath()
Returns the path used in specifying the collision condition.
 o getTriggeringBounds()
Retrieves the Bounds object that caused the collision
 o getTriggeringPath()
Retrieves the path describing the object causing the collision.

Variables

 o USE_GEOMETRY
 public static final int USE_GEOMETRY
Use geometry in computing collisions.

 o USE_BOUNDS
 public static final int USE_BOUNDS
Use geometric bounds as an approximation in computing collisions.

Constructors

 o WakeupOnCollisionExit
 public WakeupOnCollisionExit(SceneGraphPath armingPath)
Constructs a new WakeupOnCollisionExit criterion.

Parameters:
armingPath - the path used to arm collision detection
 o WakeupOnCollisionExit
 public WakeupOnCollisionExit(SceneGraphPath armingPath,
                              int speedHint)
Constructs a new WakeupOnCollisionExit criterion.

Parameters:
armingPath - the path used to arm collision detection
speedHint - one of USE_GEOMETRY or USE_BOUNDS, specifies how accurately Java 3D will perform collision detection
Throws: IllegalArgumentException
if hint is not one of USE_GEOMETRY or USE_BOUNDS.
 o WakeupOnCollisionExit
 public WakeupOnCollisionExit(Node armingNode)
Constructs a new WakeupOnCollisionExit criterion.

Parameters:
armingNode - the Group, Shape, or Morph node used to arm collision detection
Throws: IllegalArgumentException
if object is other than a Group, Shape3D, or Morph node.
 o WakeupOnCollisionExit
 public WakeupOnCollisionExit(Node armingNode,
                              int speedHint)
Constructs a new WakeupOnCollisionExit criterion.

Parameters:
armingNode - the Group, Shape, or Morph node used to arm collision detection
speedHint - one of USE_GEOMETRY or USE_BOUNDS, specifies how accurately Java 3D will perform collision detection
Throws: IllegalArgumentException
if hint is not one of USE_GEOMETRY or USE_BOUNDS.
Throws: IllegalArgumentException
if object is other than a Group, Shape3D, or Morph node.
 o WakeupOnCollisionExit
 public WakeupOnCollisionExit(Bounds armingBounds)
Constructs a new WakeupOnCollisionExit criterion.

Parameters:
armingBounds - the bounds object used to arm collision detection

Methods

 o getArmingPath
 public SceneGraphPath getArmingPath()
Returns the path used in specifying the collision condition.

Returns:
the SceneGraphPath object generated when arming this criterion---null implies that a bounds object armed this criteria
 o getArmingBounds
 public Bounds getArmingBounds()
Returns the bounds object used in specifying the collision condition.

Returns:
the Bounds object generated when arming this criterion---null implies that a SceneGraphPath armed this criteria
 o getTriggeringPath
 public SceneGraphPath getTriggeringPath()
Retrieves the path describing the object causing the collision.

Returns:
the SceneGraphPath that describes the triggering object.
 o getTriggeringBounds
 public Bounds getTriggeringBounds()
Retrieves the Bounds object that caused the collision

Returns:
the colliding Bounds object.

All Packages  Class Hierarchy  This Package  Previous  Next  Index