You don't have to write a state class, you just have to create a subclass of your black box Shape3D class and implement SceneGraphIO and in the read/write method you save the state of the Appearance.
Rgds Paul On Fri, 2002-09-20 at 12:52, Andreas Jerke wrote: > He Paul, > > >Hi Andreas, > > > >This should be possible. The saveChildren=False flag just > >stops the IO system from automatically saving the children. > >You should be able to save whatever you like to the IO stream > >when your implementation of the SceneGraphIO interface methods > >are called. > > This is of cause possible... > But I have to write my own State class for Appearance, and this is > painfull ! > This class allready exsist in com.sun.j3d.utils.scenegraph.io > (AppearanceState), > can I use it DIRECTLY ? > It's very boring to write all this out.writeInt(int), > out.writeFloat(float) .... stuff > > > > > > >Rgds > > > >Paul > > > >On Sat, 2002-09-14 at 10:56, Andreas Jerke wrote: > >> Hi, > >> > >> I have a scenegraph in which I want > >> some children not to be saved (black box) > >> but SOME descendants of this black box objects: > >> > >> (Example) > >> > >> --BG (saveChildren=true) > >> : > >> myTG (saveChildren=false, is Black Box) > >> : > >> SHAPE3D > >> : > >> APPEARANCE --> want to save this ! > >> > >> > >> Is it possible to read/write the single APPEARANCE object > >from/to the > >> stream in myTG ? > >> > >> > >====================================================================== > >> ===== > >> 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". > > > >=============================================================== > >============ > >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". > > > > =========================================================================== > 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". -- ---------------------------------------------------------- Paul Byrne Email : [EMAIL PROTECTED] Sun Microsystems Phone : (650) 786 9926 Visualization Software Group Fax : (650) 786 5852 ---------------------------------------------------------- =========================================================================== 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".
