|
|||||||||
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.WakeupOnSensorExit
public final class WakeupOnSensorExit
Class specifying a wakeup on first detection of sensors no longer intersecting the specified boundary.
Field Summary | |
---|---|
(package private) Sensor |
armingSensor
|
(package private) static int |
COND_IN_BS_LIST
|
(package private) Bounds |
region
|
(package private) static int |
SENSOREXIT_IN_BS_LIST
|
(package private) static int |
TOTAL_INDEXED_UNORDER_SET_TYPES
|
(package private) Bounds |
transformedRegion
|
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 | |
---|---|
WakeupOnSensorExit(Bounds region)
Constructs a new WakeupOnExit criterion. |
Method Summary | |
---|---|
(package private) void |
addBehaviorCondition(BehaviorStructure bs)
This is a callback from BehaviorStructure. |
Bounds |
getBounds()
Returns this object's bounds specification |
Sensor |
getTriggeringSensor()
Retrieves the Sensor object that caused the wakeup. |
(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(Sensor sensor)
Set the sensor that trigger this behavior |
(package private) void |
updateTransformRegion()
Update the cached Transfrom Region, call from BehaviorStructure |
Methods inherited from class javax.media.j3d.WakeupCriterion |
---|
buildTree, cleanTree, hasTriggered, resetTree, setTriggered |
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_BS_LIST
static final int SENSOREXIT_IN_BS_LIST
static final int TOTAL_INDEXED_UNORDER_SET_TYPES
Bounds region
Bounds transformedRegion
Sensor armingSensor
Constructor Detail |
---|
public WakeupOnSensorExit(Bounds region)
region
- the region that will trigger a wakeup if a Sensor
intersects.Method Detail |
---|
public Bounds getBounds()
void updateTransformRegion()
void addBehaviorCondition(BehaviorStructure bs)
addBehaviorCondition
in class WakeupCriterion
void removeBehaviorCondition(BehaviorStructure bs)
removeBehaviorCondition
in class WakeupCriterion
void setTarget(Sensor sensor)
public Sensor getTriggeringSensor()
java.lang.IllegalStateException
- if not called from within
a behavior's processStimulus method which was awoken by a sensor
exit.void resetBehaviorCondition(BehaviorStructure bs)
resetBehaviorCondition
in class WakeupCriterion
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |