Package org.jdesktop.wonderland.client.jme

Examples of org.jdesktop.wonderland.client.jme.CellRefComponent


                    if (thisEntity==null) {
                        logger.severe("Got null entity for "+this.getClass().getName());
                        return;
                    }

                    thisEntity.addComponent(CellRefComponent.class, new CellRefComponent(cell));

                    if (parentEntity!=null) {
                        parentEntity.addEntity(thisEntity);
                    } else {
                        ClientContextJME.getWorldManager().addEntity(thisEntity);
View Full Code Here


        super.setStatus(status, increasing);
        if (increasing && status == CellStatus.ACTIVE) {
            // Add a cell ref component to the entity. This will let us associated
            // the entity with the cell and make it easy to detect when we click
            // off of the cell
            CellRefComponent refComponent = new CellRefComponent(cell);
            affordance.addComponent(CellRefComponent.class, refComponent);

            // First try to add the movable component. The presence of the
            // movable component will determine when we actually add the
            // affordance to the scene graph. We do this in a separate thread
View Full Code Here

    protected AvatarImiJME getRenderer() {
        return renderer;
    }

    private void attach(PickBox[] boxes) {
        CellRefComponent crc = new CellRefComponent(getCell());
        getEntity().addComponent(CellRefComponent.class, crc);

        getRenderer().getEntity().addEntity(getEntity());

        for (PickBox box : boxes) {
View Full Code Here

     * @return The Cell associated with the currently selected Entity
     */
    public static Cell getCellForEntity(Entity entity) {
       Cell ret = null;
        while(ret==null && entity!=null) {
            CellRefComponent ref = (CellRefComponent) entity.getComponent(CellRefComponent.class);
            if (ref!=null)
                ret = ((CellRefComponent)ref).getCell();
            else
                entity = entity.getParent();
        }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.jme.CellRefComponent

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.