|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeRetained
javax.media.j3d.LeafRetained
javax.media.j3d.BehaviorRetained
class BehaviorRetained
Behavior is an abstract class that contains the framework for all behavioral components in Java 3D.
Field Summary | |
---|---|
(package private) boolean |
active
The current activation status for this behavior; this value is false until it comes into range of a view platform. |
(package private) static int |
BEHAIVORS_IN_BS_LIST
|
(package private) BoundingLeafRetained |
boundingLeaf
The bounding leaf reference |
(package private) boolean |
conditionSet
This is a flag that tells the behavior scheduler whether the user-programmed process stimulus called wakeupOn, if it did not, then the wakeupCondition will be set to null. |
(package private) boolean |
enable
Flag indicating whether the behavior is enabled. |
(package private) boolean |
inCallback
This is a flag that indicates whether we are in an initialize or processStimulus callback. |
(package private) boolean |
inInitCallback
This is a flag that indicates whether we are in initialize callback. |
(package private) int |
isDirty
|
(package private) WakeupCondition |
newWakeupCondition
This is the new WakeupCondition to be set in initialize wakeupOn() |
(package private) static int |
NUM_SCHEDULING_INTERVALS
The number of scheduling intervals supported by this implementation. |
(package private) static int |
NUM_WAKEUPS
|
(package private) static int |
SCHEDULE_IN_BS_LIST
|
(package private) int |
schedulingInterval
Current scheduling interval. |
(package private) Bounds |
schedulingRegion
The Boundary object defining the behavior's scheduling region. |
(package private) java.lang.Object[] |
targets
|
(package private) static int |
TOTAL_INDEXED_UNORDER_SET_TYPES
|
(package private) Bounds |
transformedRegion
The transformed schedulingRegion |
(package private) ViewPlatformRetained |
vp
The current view platform for this behavior; this value is false until it comes into range of a view platform. |
(package private) static int |
WAKEUP_ACTIVATE
|
(package private) static int |
WAKEUP_ACTIVATE_INDEX
|
(package private) static int |
WAKEUP_DEACTIVATE
|
(package private) static int |
WAKEUP_DEACTIVATE_INDEX
|
(package private) static int |
WAKEUP_TIME
|
(package private) static int |
WAKEUP_TIME_INDEX
|
(package private) static int |
WAKEUP_VP_ENTRY
|
(package private) static int |
WAKEUP_VP_ENTRY_INDEX
|
(package private) static int |
WAKEUP_VP_EXIT
|
(package private) static int |
WAKEUP_VP_EXIT_INDEX
|
(package private) int[] |
wakeupArray
An array of ints that count how many of each wakup is present |
(package private) WakeupCondition |
wakeupCondition
The current wakeup condition. |
(package private) int |
wakeupMask
A bitmask that represents all conditions that this behavior is waiting on. |
Fields inherited from class javax.media.j3d.LeafRetained |
---|
boundsDirty, switchState |
Fields inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
DONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, source |
Fields inherited from class javax.media.j3d.IndexedObject |
---|
listIdx |
Constructor Summary | |
---|---|
BehaviorRetained()
|
Method Summary | |
---|---|
(package private) void |
addWakeupCondition()
|
(package private) void |
clearLive(SetLiveState s)
This clearLive routine first calls the superclass's method, then it deactivates all canvases that are associated with the attached view. |
(package private) void |
executeInitialize()
This routine execute the user's initialize method |
(package private) boolean |
getEnable()
Retrieves the state of the Behavior enable flag. |
(package private) BoundingLeaf |
getSchedulingBoundingLeaf()
Get the Behavior's scheduling region |
(package private) Bounds |
getSchedulingBounds()
Get the Behavior's scheduling region. |
(package private) int |
getSchedulingInterval()
Retrieves the current scheduling interval of this Behavior node. |
protected View |
getView()
|
(package private) WakeupCondition |
getWakeupCondition()
Returns this behavior's wakeup criteria. |
(package private) void |
handleLastWakeupOn(WakeupCondition prevWakeupCond,
BehaviorStructure bs)
|
(package private) void |
mergeTransform(TransformGroupRetained xform)
|
(package private) void |
postId(int postId)
Post the specified Id. |
(package private) void |
sendMessage(int mtype)
|
(package private) void |
sendMessage(int mtype,
java.lang.Object arg)
|
(package private) void |
setEnable(boolean state)
Enables or disables this Behavior. |
(package private) void |
setLive(SetLiveState s)
This setLive routine first calls the superclass's method, then it activates all canvases that are associated with the attached view. |
(package private) void |
setSchedulingBoundingLeaf(BoundingLeaf region)
Set the Sound's scheduling region to the specified Leaf node. |
(package private) void |
setSchedulingBounds(Bounds region)
Set the Behavior's scheduling region. |
(package private) void |
setSchedulingInterval(int schedulingInterval)
Sets the scheduling interval of this Behavior node to the specified value. |
(package private) void |
updateBoundingLeaf(long refTime)
|
(package private) void |
updateTransformRegion()
|
(package private) void |
updateTransformRegion(Bounds bound)
|
(package private) void |
wakeupOn(WakeupCondition criteria)
Defines this behavior's wakeup criteria. |
Methods inherited from class javax.media.j3d.LeafRetained |
---|
clone, getMirrorObjects, updateBoundingLeaf, updateBounds, updateMirrorObject, updateTransformChange |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
clearLive, clearLive, clone, compile, doSetLive, getSource, handleFrequencyChange, isInSetLive, markAsLive, setCompiled, setLive, setSource, traverse |
Methods inherited from class javax.media.j3d.IndexedObject |
---|
getIdxUsed, incIdxUsed |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int WAKEUP_ACTIVATE_INDEX
static final int WAKEUP_DEACTIVATE_INDEX
static final int WAKEUP_VP_ENTRY_INDEX
static final int WAKEUP_VP_EXIT_INDEX
static final int WAKEUP_TIME_INDEX
static final int NUM_WAKEUPS
static final int WAKEUP_ACTIVATE
static final int WAKEUP_DEACTIVATE
static final int WAKEUP_VP_ENTRY
static final int WAKEUP_VP_EXIT
static final int WAKEUP_TIME
static final int NUM_SCHEDULING_INTERVALS
static final int BEHAIVORS_IN_BS_LIST
static final int SCHEDULE_IN_BS_LIST
static final int TOTAL_INDEXED_UNORDER_SET_TYPES
Bounds schedulingRegion
BoundingLeafRetained boundingLeaf
WakeupCondition wakeupCondition
WakeupCondition newWakeupCondition
ViewPlatformRetained vp
boolean active
boolean enable
int schedulingInterval
boolean conditionSet
boolean inCallback
boolean inInitCallback
Bounds transformedRegion
int isDirty
int wakeupMask
int[] wakeupArray
java.lang.Object[] targets
Constructor Detail |
---|
BehaviorRetained()
Method Detail |
---|
Bounds getSchedulingBounds()
void setSchedulingBounds(Bounds region)
region
- a region that contains the Behavior's new scheduling
boundsvoid setSchedulingBoundingLeaf(BoundingLeaf region)
void setEnable(boolean state)
state
- true or false to enable or disable this Behaviorboolean getEnable()
void setSchedulingInterval(int schedulingInterval)
schedulingInterval
- the new scheduling intervalint getSchedulingInterval()
BoundingLeaf getSchedulingBoundingLeaf()
void setLive(SetLiveState s)
setLive
in class NodeRetained
void clearLive(SetLiveState s)
clearLive
in class NodeRetained
void executeInitialize()
void wakeupOn(WakeupCondition criteria)
criteria
- The wakeup criterion for this objectvoid handleLastWakeupOn(WakeupCondition prevWakeupCond, BehaviorStructure bs)
WakeupCondition getWakeupCondition()
void postId(int postId)
postId
- The Id being postedprotected View getView()
void updateTransformRegion(Bounds bound)
void updateTransformRegion()
void updateBoundingLeaf(long refTime)
void addWakeupCondition()
final void sendMessage(int mtype, java.lang.Object arg)
final void sendMessage(int mtype)
void mergeTransform(TransformGroupRetained xform)
mergeTransform
in class NodeRetained
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |