Skip to main content

Assemblies

2 replies [Last post]
mmckenna
Offline
Joined: 2008-07-31

Hello,

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?

Thanks!

Matt

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
billf
Offline
Joined: 2004-02-13

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
mindset.

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.

Cheers,

Bill

mmckenna
Offline
Joined: 2008-07-31

Thanks, Bill! I'll check out the bookmenu image.