Package org.jdesktop.wonderland.client.cell

Examples of org.jdesktop.wonderland.client.cell.CellRenderer


     */
    private Entity findParentEntity(Cell cell) {
        if (cell==null)
            return null;

        CellRenderer rend = cell.getCellRenderer(ClientContext.getRendererType());
        if (cell!=null && rend!=null) {
            if (rend instanceof CellRendererJME) {
//                    System.out.println("FOUND PARENT ENTITY on CELL "+cell.getName());
                return ((CellRendererJME)rend).getEntity();
            }
View Full Code Here


    /**
     * {@inheritDoc}
     */
    @Override
    protected CellRenderer createCellRenderer(RendererType rendererType) {
        CellRenderer ret = null;
        switch (rendererType) {
            case RENDERER_2D:
                // No 2D Renderer yet
                break;
            case RENDERER_JME:
View Full Code Here

        logger.info("Primary view Cell Changes from " + oldViewCell +
                " to " + newViewCell + " " + newViewCell.getName());
       
        // Fetch the cell renderer for the new primary view Cell. It should
        // be of type AvatarImiJME. If not, log a warning and return
        CellRenderer rend = newViewCell.getCellRenderer(RendererType.RENDERER_JME);
        if (!(rend instanceof AvatarImiJME)) {
            logger.warning("Cell renderer for view " + newViewCell.getName() +
                    " is not of type AvatarImiJME.");
            return;
        }
View Full Code Here

     * @param trigger
     * @param pressed
     */
    public void triggerAction(int trigger, boolean pressed, String animationName) {
        if (ClientContext.getRendererType()==RendererType.RENDERER_JME) {
            CellRenderer rend = getCellRenderer(RendererType.RENDERER_JME);
            if (rend instanceof AvatarActionTrigger) {
                ((AvatarActionTrigger)rend).trigger(trigger, pressed, animationName);
            }
        }
    }
View Full Code Here

     * @param trigger
     * @param pressed
     */
    public void triggerCollision(float height, boolean collision) {
        if (ClientContext.getRendererType()==RendererType.RENDERER_JME) {
            CellRenderer rend = getCellRenderer(RendererType.RENDERER_JME);
            if (rend instanceof AvatarActionTrigger) {
                ((AvatarActionTrigger)rend).triggerCollision(height, collision);
            }
        }
    }
View Full Code Here

     * TODO this is a temporary interface for handling avatar goto, need
     * to uplevel
     */
    public void triggerGoto(Vector3f worldPosition, Quaternion look) {
        if (ClientContext.getRendererType()==RendererType.RENDERER_JME) {
            CellRenderer rend = getCellRenderer(RendererType.RENDERER_JME);
            if (rend instanceof AvatarActionTrigger) {
                ((AvatarActionTrigger)rend).triggerGoto(worldPosition, look);
            }
        }
    }
View Full Code Here

        super.setClientState(cellClientState);
    }

    @Override
    protected CellRenderer createCellRenderer(RendererType rendererType) {
        CellRenderer ret = null;
        switch(rendererType) {
            case RENDERER_2D :
                // No 2D Renderer yet
                break;
            case RENDERER_JME :
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.cell.CellRenderer

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.