| java.lang.Object javax.media.j3d.WakeupCondition javax.media.j3d.WakeupCriterion javax.media.j3d.WakeupOnElapsedFrames
WakeupOnElapsedFrames | final public class WakeupOnElapsedFrames extends WakeupCriterion (Code) | | Class specifying a wakeup when a specific number of frames have
elapsed. The wakeup criterion can either be passive or
non-passive. If any behavior uses a non-passive
WakeupOnElapsedFrames, the rendering system will run continuously.
In general, applications cannot count on behavior execution being
synchronized with rendering. Behaviors that use
WakeupOnElapsedFrames with a frame count of 0 are an exception to
this general rule. Such behaviors will be executed every frame.
Further, all modifications to scene graph objects (not including
geometry by-reference or texture by-reference) made from the
processStimulus methods of such behaviors are
guaranteed to take effect in the same rendering frame.
|
Constructor Summary | |
public | WakeupOnElapsedFrames(int frameCount) Constructs a non-passive WakeupOnElapsedFrames criterion. | public | WakeupOnElapsedFrames(int frameCount, boolean passive) Constructs a WakeupOnElapsedFrames criterion. |
COND_IN_BS_LIST | final static int COND_IN_BS_LIST(Code) | | |
TOTAL_INDEXED_UNORDER_SET_TYPES | final static int TOTAL_INDEXED_UNORDER_SET_TYPES(Code) | | |
frameCount | int frameCount(Code) | | |
WakeupOnElapsedFrames | public WakeupOnElapsedFrames(int frameCount)(Code) | | Constructs a non-passive WakeupOnElapsedFrames criterion.
Parameters: frameCount - the number of frames that Java 3D should drawbefore awakening this behavior object; a value of N meanswakeup at the end of frame N, where the current frame is zero,a value of zero means wakeup at the end of the current frame. exception: IllegalArgumentException - if frameCount is less than zero |
WakeupOnElapsedFrames | public WakeupOnElapsedFrames(int frameCount, boolean passive)(Code) | | Constructs a WakeupOnElapsedFrames criterion.
Parameters: frameCount - the number of frames that Java 3D should drawbefore awakening this behavior object; a value of N meanswakeup at the end of frame N, where the current frame is zero,a value of zero means wakeup at the end of the current frame. Parameters: passive - flag indicating whether this behavior ispassive; a non-passive behavior will cause the rendering systemto run continuously, while a passive behavior will only runwhen some other event causes a frame to be run. exception: IllegalArgumentException - if frameCount is less than zero since: Java 3D 1.2 |
addBehaviorCondition | void addBehaviorCondition(BehaviorStructure bs)(Code) | | This is a callback from BehaviorStructure. It is
used to add wakeupCondition to behavior structure.
|
getElapsedFrameCount | public int getElapsedFrameCount()(Code) | | Retrieves the elapsed frame count that was used when
constructing this object.
the elapsed frame count specified when constructingthis object |
isPassive | public boolean isPassive()(Code) | | Retrieves the state of the passive flag that was used when
constructing this object.
true if this wakeup criterion is passive, false otherwise since: Java 3D 1.2 |
newFrame | void newFrame()(Code) | | decrement the frame count, and set trigger if 0
|
removeBehaviorCondition | void removeBehaviorCondition(BehaviorStructure bs)(Code) | | This is a callback from BehaviorStructure. It is
used to remove wakeupCondition from behavior structure.
|
resetBehaviorCondition | void resetBehaviorCondition(BehaviorStructure bs)(Code) | | Perform task in addBehaviorCondition() that has to be
set every time the condition met.
|
Fields inherited from javax.media.j3d.WakeupCriterion | boolean triggered(Code)(Java Doc)
|
|
|