> How to use OrderedGroup?Actually, I face the verysame problem: switch AND
> ordered group need ..any idea????

OrderedGroup == Group who's children are rendered in the order they appear in
the Group (i.e. index 0 first, index 1 next, etc).  This differs from the usual
handling where there is no order implied and the display order can change from
frame to frame.  Note that depth buffering can still be in effect.  If depth
buffering is on and I draw A and then B, and A covers B, then B won't show up.
Of course, you can always turn off depth buffering.

Switch == Group who's children can be selected/deselected.  You can either
choose a single child to be displayed, use a BitSet to select a set of children
to display, display all the children or none.

If you need both of these concepts I suspect you want an OrderedGroup who's
children are Switches with one child.  Change the switch value the branch off
the OrderedGroup to turn each child on/off.  You could even make a subclass of
OrderedGroup which used the Switch interface if you want to combine the two.

A Switch who's children are OrderedGroups could be used to select between
different orderings for the children of the group.

The Volume Rendering demo at the www.j3d.org uses lots of OrderedGroups, but I
suspect that you'd be better off experimenting with a small test program instead
of wading into all that code.

Doug Gehringer
Sun Microsystems

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to