I've been looking around at the examples of GRIN assemblies in the SVN repository, but I haven't found any that were particularly elucidating. Is there an example or explanation of how/when to use assemblies?
Try the javadocs for com.hdcookbook.grin.feature.Assembly:
* An assembly is a feature composed of other features. It's a bit
* like a switch statement: Only one child of an assembly can be
* active at a time. This can be used to compose a menu that can
* be in one of several visual states. Often the parts of an assembly
* are groups.
The bookmenu disc image makes extensive use of assemblies.
Don't worry if this seems unfamiliar - the idea of switching between
different groups of visual elements is one of the things that can seem
counter-intuitive when switching from a widget mindset to a scene graph
The text file format isn't terribly readable, because it doesn't show the
graph structure of the nodes. A good way to get a feel for the scene graph
structure is to browse around with grinview.
Thanks, Bill! I'll check out the bookmenu image.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.