>
>Doug,
>I realize that my derived class would probably not have access to
>protected members of the Group class since I am not in the same package.
>Otherwise, could I get some guidance concerning the best way to perform
>the reordering?
>

We also do a lot more than change a table under the covers, so getting
access to this would not help.

>For example, should I place the whole OrderedGroup in a BranchGroup,
>detach it, reorder my nodes, then reattach?

If you detach the branch graph which contains the OrderedGroup, rearrange
the OrderedGroup, then reattach again, you will get better performance
that attaching and reattaching the children of the OrderedGroup individually.

>Also, I noticed in the API that only BranchGroups can be added/set in a
>Group when it is live/compiled.  Well, if I detach the OrderedGroup, is
>it then considered to not be live?  I think my problem is that at the
>top of the scene graph I perform a compile, so the OrderedGroup gets
>compiled.  Is there any way to tell the OrderedGroup to not be compiled?

It is true that only BranchGroup nodes may be added or detached from a
live or compiled scene graph.  In your case simply make the parent of
your OrderedGroup be a BranchGroup and use it as the detach point.  If
you have set all the appropriate capability bits, it doesn't matter if
anything is live or compiled.

Doug Twilleager
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