Package com.sun.j3d.utils.scenegraph.io

Examples of com.sun.j3d.utils.scenegraph.io.SceneGraphFileWriter


        }
    }

    void write(File f) throws IOException {
        try {
            SceneGraphFileWriter w = new SceneGraphFileWriter(f, null, false,
                    "TBDuinverseName", null);
            Enumeration<?> e = _rootLocale.getAllBranchGraphs();
            while (e.hasMoreElements()) {
                BranchGroup bg = (BranchGroup) e.nextElement();
                if (!(bg instanceof ViewingPlatform)) {
                    // TODO serialize a name ???
                    w.writeBranchGraph(bg, null);
                }
            }
            w.close();
        } catch (UnsupportedUniverseException e) {
            // will not be thrown but in case
            throw new IOException(e.getMessage());
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.j3d.utils.scenegraph.io.SceneGraphFileWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.