Switches & Sequences
pfSwitch
A pfSwitch allows the selection of one, none, or all of its child
nodes for drawing.
switch->setVal(val);
To select a single child, val should be the number of that
child (in the range 0 to numchildren-1).
val=PFSWITCH_ON selects all the children;
val=PFSWITCH_OFF deselects all the children.
Only the selected children will be traversed during subsequent
database traversals.
pfSequence
A pfSequence automatically cycles through a range of children,
displaying each one for a given length of time.
The setTime method sets how long a given
frame (child node) will be displayed.
setInterval and setDuration can be used to alter
various sequencing options, such as speed and cycling method.
setMode starts and stops the sequence.
Simple pfSequence example
Previous page
Table of contents
Next page
Last modified 5 February 1996.
Dave Pape, pape@evl.uic.edu