public final class WakeupOnCollisionExit extends WakeupCriterion
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
accuracyMode
Accuracy mode one of USE_GEOMETRY or USE_BOUNDS
|
(package private) Bounds |
armingBounds |
(package private) NodeRetained |
armingNode |
(package private) SceneGraphPath |
armingPath |
(package private) BoundingLeafRetained |
boundingLeaf |
(package private) static int |
COLLIDEEXIT_IN_BS_LIST |
(package private) Bounds |
collidingBounds |
(package private) SceneGraphPath |
collidingPath |
(package private) static int |
COND_IN_GS_LIST |
(package private) UnorderList |
geometryAtoms
Geometry atoms that this wakeup condition refer to.
|
(package private) Bounds |
localBounds |
(package private) int |
nodeType |
(package private) static int |
TOTAL_INDEXED_UNORDER_SET_TYPES |
static int |
USE_BOUNDS
Use geometric bounds as an approximation in computing collisions.
|
static int |
USE_GEOMETRY
Use geometry in computing collisions.
|
(package private) Bounds |
vwcBounds |
triggeredALL_ELEMENTS, allEnum, behav, conditionMet, id, listIdx, parent, trigEnum, TRIGGERED_ELEMENTS| Constructor and Description |
|---|
WakeupOnCollisionExit(Bounds armingBounds)
Constructs a new WakeupOnCollisionExit criterion.
|
WakeupOnCollisionExit(Node armingNode)
Constructs a new WakeupOnCollisionExit criterion.
|
WakeupOnCollisionExit(Node armingNode,
int speedHint)
Constructs a new WakeupOnCollisionExit criterion.
|
WakeupOnCollisionExit(SceneGraphPath armingPath)
Constructs a new WakeupOnCollisionExit criterion.
|
WakeupOnCollisionExit(SceneGraphPath armingPath,
int speedHint)
Constructs a new WakeupOnCollisionExit criterion.
|
WakeupOnCollisionExit(SceneGraphPath armingPath,
int speedHint,
Bounds armingBounds)
Constructs a new WakeupOnCollisionExit criterion.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addBehaviorCondition(BehaviorStructure bs)
This is a callback from BehaviorStructure.
|
Bounds |
getArmingBounds()
Returns the bounds object used in specifying the collision condition.
|
SceneGraphPath |
getArmingPath()
Returns the path used in specifying the collision condition.
|
Bounds |
getTriggeringBounds()
Retrieves the Bounds object that caused the collision
|
SceneGraphPath |
getTriggeringPath()
Retrieves the path describing the object causing the collision.
|
(package private) void |
removeBehaviorCondition(BehaviorStructure bs)
This is a callback from BehaviorStructure.
|
(package private) void |
resetBehaviorCondition(BehaviorStructure bs)
Perform task in addBehaviorCondition() that has to be
set every time the condition met.
|
(package private) void |
setTarget(BHLeafInterface leaf) |
(package private) void |
setTriggered()
Set the Criterion's trigger flag to true.
|
(package private) void |
updateCollisionBounds(boolean reEvaluateGAs) |
buildTree, cleanTree, hasTriggered, resetTreeallElements, reInsertElapseTimeCond, setConditionMet, triggeredElementsstatic final int COND_IN_GS_LIST
static final int COLLIDEEXIT_IN_BS_LIST
static final int TOTAL_INDEXED_UNORDER_SET_TYPES
public static final int USE_GEOMETRY
public static final int USE_BOUNDS
int accuracyMode
NodeRetained armingNode
Bounds vwcBounds
Bounds localBounds
BoundingLeafRetained boundingLeaf
UnorderList geometryAtoms
int nodeType
SceneGraphPath armingPath
Bounds armingBounds
SceneGraphPath collidingPath
Bounds collidingBounds
public WakeupOnCollisionExit(SceneGraphPath armingPath)
armingPath - the path used to arm collision
detectionjava.lang.IllegalArgumentException - if object associated with the
SceneGraphPath is other than a Group, Shape3D, Morph, or BoundingLeaf node.public WakeupOnCollisionExit(SceneGraphPath armingPath, int speedHint)
armingPath - the path used to arm collision
detectionspeedHint - one of USE_GEOMETRY or USE_BOUNDS, specifies how
accurately Java 3D will perform collision detectionjava.lang.IllegalArgumentException - if hint is not one of
USE_GEOMETRY or USE_BOUNDS.java.lang.IllegalArgumentException - if object associated with the
SceneGraphPath is other than a Group, Shape3D, Morph, or BoundingLeaf node.public WakeupOnCollisionExit(Node armingNode)
armingNode - the Group, Shape, or Morph node used to
arm collision detectionjava.lang.IllegalArgumentException - if object is under a
SharedGroup node or object is other than a Group, Shape3D,
Morph or BoundingLeaf node.public WakeupOnCollisionExit(Node armingNode, int speedHint)
armingNode - the Group, Shape, or Morph node used to
arm collision detectionspeedHint - one of USE_GEOMETRY or USE_BOUNDS, specifies how
accurately Java 3D will perform collision detectionjava.lang.IllegalArgumentException - if hint is not one of
USE_GEOMETRY or USE_BOUNDS.java.lang.IllegalArgumentException - if object is under a
SharedGroup node or object is other than a Group, Shape3D,
Morph or BoundingLeaf node.public WakeupOnCollisionExit(Bounds armingBounds)
armingBounds - the bounds object used to arm collision
detectionWakeupOnCollisionExit(SceneGraphPath armingPath, int speedHint, Bounds armingBounds)
armingPath - the path used to arm collision
detectionspeedHint - one of USE_GEOMETRY or USE_BOUNDS, specifies how
accurately Java 3D will perform collision detectionarmingBounds - the bounds object used to arm collision
detectionjava.lang.IllegalArgumentException - if hint is not one of
USE_GEOMETRY or USE_BOUNDS.java.lang.IllegalArgumentException - if object associated with the
SceneGraphPath is other than a Group, Shape3D, Morph, or BoundingLeaf node.public SceneGraphPath getArmingPath()
public Bounds getArmingBounds()
public SceneGraphPath getTriggeringPath()
java.lang.IllegalStateException - if not called from within the
a behavior's processStimulus method which was awoken by a collision.public Bounds getTriggeringBounds()
java.lang.IllegalStateException - if not called from within the
a behavior's processStimulus method which was awoken by a collision.void addBehaviorCondition(BehaviorStructure bs)
addBehaviorCondition in class WakeupCriterionvoid removeBehaviorCondition(BehaviorStructure bs)
removeBehaviorCondition in class WakeupCriterionvoid setTarget(BHLeafInterface leaf)
void updateCollisionBounds(boolean reEvaluateGAs)
void setTriggered()
WakeupCriterionsetTriggered in class WakeupCriterionvoid resetBehaviorCondition(BehaviorStructure bs)
resetBehaviorCondition in class WakeupCriterionCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.