|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.WakeupCondition
javax.media.j3d.WakeupCriterion
javax.media.j3d.WakeupOnCollisionExit
public final class WakeupOnCollisionExit
Class specifying a wakeup when the specified object no longer collides with any other object in the scene graph.
Field Summary | |
---|---|
(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
|
Fields inherited from class javax.media.j3d.WakeupCriterion |
---|
triggered |
Fields inherited from class javax.media.j3d.WakeupCondition |
---|
ALL_ELEMENTS, allEnum, behav, conditionMet, id, listIdx, parent, trigEnum, TRIGGERED_ELEMENTS |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
(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)
|
Methods inherited from class javax.media.j3d.WakeupCriterion |
---|
buildTree, cleanTree, hasTriggered, resetTree |
Methods inherited from class javax.media.j3d.WakeupCondition |
---|
allElements, reInsertElapseTimeCond, setConditionMet, triggeredElements |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static 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
Constructor Detail |
---|
public WakeupOnCollisionExit(SceneGraphPath armingPath)
armingPath
- the path used to arm collision
detection
java.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 detection
java.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 detection
java.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 detection
java.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
detection
java.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.Method Detail |
---|
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 WakeupCriterion
void removeBehaviorCondition(BehaviorStructure bs)
removeBehaviorCondition
in class WakeupCriterion
void setTarget(BHLeafInterface leaf)
void updateCollisionBounds(boolean reEvaluateGAs)
void setTriggered()
WakeupCriterion
setTriggered
in class WakeupCriterion
void resetBehaviorCondition(BehaviorStructure bs)
resetBehaviorCondition
in class WakeupCriterion
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |