[X3D-Public] iterator that blocks
Don Brutzman
brutzman at nps.edu
Sun Aug 8 11:10:39 PDT 2010
On 8/7/2010 8:03 PM, John Carlson wrote:
> Has anyone done an iterator that blocks waiting on the next event?
IntegerSequencer and BooleanSequencer have inputOnly fields 'next'
and 'previous' that can be used for event-driven animation. This
is a good alternative to driving their operation with set_fraction
from a TimeSensor.
http://www.web3d.org/x3d/specifications/ISO-IEC-19775-1.2-X3D-AbstractSpecification/Part01/components/utils.html#BooleanSequencer
http://www.web3d.org/x3d/specifications/ISO-IEC-19775-1.2-X3D-AbstractSpecification/Part01/components/utils.html#IntegerSequencer
Depending on what you need by "block" you might also trigger the
enabled field of whatever TimeSensor you want to pause/restart.
There are a number of event utilities to help facilitate that
triggering with either boolean or SFTime events.
_X3D for Web Authors_
Event Utilities and Scripting (103 slides)
http://x3dgraphics.com/slidesets/X3dForWebAuthors/Chapter09-EventUtilitiesScripting.pdf
all the best, Don
--
Don Brutzman Naval Postgraduate School, Code USW/Br brutzman at nps.edu
Watkins 270 MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149
X3D, virtual worlds, underwater robots http://faculty.nps.edu/brutzman
More information about the X3D-Public
mailing list