Package org.jdesktop.wonderland.server.spatial.impl

Examples of org.jdesktop.wonderland.server.spatial.impl.SpatialCellImpl


            }
        });
    }

    public CellTransform getWorldTransform(CellMO cell, CellTransform result) {
        SpatialCellImpl spatial = (SpatialCellImpl ) universe.getSpatialCell(cell.getCellID());

        // issue #727: if the cell has not yet been added (because the job to
        // add it is scheduled but hasn't run yet), we should gracefully return
        // null here
        if (spatial == null) {
            return null;
        }

        CellTransform ret;
        spatial.acquireRootReadLock();
        if (spatial.getWorldTransform()==null)
            ret = null;
        else
            ret = spatial.getWorldTransform().clone(result);
        spatial.releaseRootReadLock();

        return ret;
    }
View Full Code Here


        return ret;
    }

    public BoundingVolume getWorldBounds(CellMO cell, BoundingVolume result) {
        SpatialCellImpl spatial = (SpatialCellImpl) universe.getSpatialCell(cell.getCellID());
        BoundingVolume ret;

        // issue #727: if the cell has not yet been added (because the job to
        // add it is scheduled but hasn't run yet), we should gracefully return
        // null here
        if (spatial == null) {
            return null;
        }

        spatial.acquireRootReadLock();
        ret = spatial.getWorldBounds().clone(result);
        spatial.releaseRootReadLock();

        return ret;
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.server.spatial.impl.SpatialCellImpl

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.