Package org.jdesktop.wonderland.client.jme.cellrenderer

Examples of org.jdesktop.wonderland.client.jme.cellrenderer.CellRendererJME


     * @param cell
     * @param highlight
     * @param color
     */
    public void highlightCell(final Cell cell, final boolean highlight, final ColorRGBA color) {
        CellRendererJME r = (CellRendererJME) cell.getCellRenderer(Cell.RendererType.RENDERER_JME);
        Entity entity = r.getEntity();
        RenderComponent rc = entity.getComponent(RenderComponent.class);

        //check if object has Navigate-To capability
        final NewInteractionComponent hc = cell.getComponent(NewInteractionComponent.class);
        if (hc != null && hc.isHighlightEnable()) {
View Full Code Here


            avatarControls.attach((ViewCell) cell);
        }

        Entity entity = ((CellRendererJME) cell.getCellRenderer(RendererType.RENDERER_JME)).getEntity();

        CellRendererJME renderer = (CellRendererJME) cell.getCellRenderer(Cell.RendererType.RENDERER_JME);
        avatarControls.setEnabled(true);

        // TODO move this into the SimpleAvatarControls
        if (renderer != null) {
            if (renderer instanceof BasicRenderer) {
                BasicRenderer.MoveProcessor moveProc = (MoveProcessor) renderer.getEntity().getComponent(BasicRenderer.MoveProcessor.class);
                if (moveProc != null) {
                    moveProc.addToChain(cameraProcessor);
                    avatarControls.addToChain(moveProc);
                }
            }
View Full Code Here

        }

        Entity entity = ((CellRendererJME) attachCell.getCellRenderer(RendererType.RENDERER_JME)).getEntity();
        entity.removeComponent(ViewControls.class);

        CellRendererJME renderer = (CellRendererJME) attachCell.getCellRenderer(Cell.RendererType.RENDERER_JME);
        if (renderer != null) {
//            if (renderer instanceof ViewControls.AvatarInputSelector) {
//                ((ViewControls.AvatarInputSelector)renderer).selectForInput(false);
//            }

            if (renderer instanceof BasicRenderer) {
                BasicRenderer.MoveProcessor moveProc = (MoveProcessor) renderer.getEntity().getComponent(BasicRenderer.MoveProcessor.class);
                if (moveProc != null) {
                    moveProc.removeFromChain(cameraProcessor);
                    avatarControls.removeFromChain(moveProc);
                }
            }
View Full Code Here

    /**
     * Returns the scene root for the Cell's scene graph
     */
    protected Node getSceneGraphRoot() {
        CellRendererJME renderer = (CellRendererJME)
                cell.getCellRenderer(RendererType.RENDERER_JME);
        RenderComponent cellRC = (RenderComponent)
                renderer.getEntity().getComponent(RenderComponent.class);
        return cellRC.getSceneRoot();
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.jme.cellrenderer.CellRendererJME

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.