Package org.jdesktop.wonderland.modules.appbase.client.view

Examples of org.jdesktop.wonderland.modules.appbase.client.view.GeometryNode


        }
    }

    public void setTransparency(HUDView2D view, final float transparency) {
        if (view != null) {
            GeometryNode node = view.getGeometryNode();

            if ((node == null) || !(node.getChild(0) instanceof TexturedQuad)) {
                logger.warning("can't find quad for view, unable to set transparency");
                return;
            }
            final TexturedQuad quad = (TexturedQuad) node.getChild(0);

            RenderUpdater updater = new RenderUpdater() {

                public void update(Object arg0) {
                    WorldManager wm = (WorldManager) arg0;
View Full Code Here


    }

    public void setVisible (final boolean visible) {
        if (visible == this.visible) return;

        final GeometryNode geomNode = view.getGeometryNode();
       
        ClientContextJME.getWorldManager().addRenderUpdater(new RenderUpdater() {
            public void update(Object arg0) {
                if (visible) {
                    geomNode.attachChild(nodeZTrans);
                } else {
                    geomNode.detachChild(nodeZTrans);
                }
                ClientContextJME.getWorldManager().addToUpdateList(geomNode);
            }
        }, null, false);
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.appbase.client.view.GeometryNode

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.