You can also use the Switch class.  I tried the setVisible() and it was
too slow (I can see each object being turned off and on).  With the Switch
class, it is fast and all objects disappear at once (those that should
disappear, of course) and appear at once.

Cheers,

Mona

> Peter Szinek wrote:
>
> > Suppose i have constructed the scene graph and compiled the root
> > object. Now, i want to find an easy way to hide/unhide some objects in
> > response to user action (e.g. the axis in response to acheckbox
> > set/unset). Is there a clean way to accomplish this? Something like
> > BranchGroup.hide() or Shape3D.hide(). Or you have to do it somehow
> > through geometry/appearance modifying?
>
>
> You will need at least some level of control over your scene graph
> construction in order to insert RenderingAttributes objects. Then you
> can call setVisible() on the attributes to control visibility. You'll
> also need the appropriate capability bits set too.

==================================================================
Mona Wong-Barnum
National Center for Microscopy and Imaging Research
University of California, San Diego
http://ncmir.ucsd.edu/

"The truth shall set you free, but first it will piss you off"
                                Gloria Steinem
==================================================================

===========================================================================
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