IBM TJ Watson Research

IBMOrderedGroup

IBMOrderedGroup.mp4

Description

Four images are added into an OrderedGroup. Images are positioned in a stack from top left to bottom right. Each image is added to BEGIN of children field of OrderedGroup and at the same time the order field is replaced to ensure the newly added image appears on top in rendering order.

After all four images have been added text is added to the bottom left corner and routes are added which link TouchSensors on each of the images to Conditional nodes. Each Conditional node contains a replaceField command to replace the order field of the OrderedGroup so that the image selected is on top in rendering order (the other three images are always put into a fixed sequence)

Screenshot

Snapshot taken after all images added.



Snapshot taken after second image selected.



Back to main index