Package org.jdesktop.wonderland.modules.phone.common

Examples of org.jdesktop.wonderland.modules.phone.common.PhoneCellServerState


    @Override
    public void setServerState(CellServerState cellServerState) {
        super.setServerState(cellServerState);

        PhoneCellServerState phoneCellServerState = (PhoneCellServerState) cellServerState;

        phoneInfo = phoneCellServerState.getPhoneInfo();
    }
View Full Code Here


     */
    @Override
    public CellServerState getServerState(CellServerState cellServerState) {
        /* Create a new BasicCellState and populate its members */
        if (cellServerState == null) {
            cellServerState = new PhoneCellServerState();

            ((PhoneCellServerState) cellServerState).setPhoneInfo(phoneInfo);
        }
        return super.getServerState(cellServerState);
    }
View Full Code Here

    }

    public <T extends CellServerState> T getDefaultCellServerState(
            Properties props) {
        // Create a setup with some default values
        PhoneCellServerState cellServerState = new PhoneCellServerState();

  cellServerState.setName(BUNDLE.getString("Virtual_Phone"));

        cellServerState.setPhoneInfo(new PhoneInfo(false, "100", "foo",
                "Unknown location", .2, .1, true, true));

        /*
         * Try rotating 45 degrees to see what that does.
         */
        //Vector3f axis = new Vector3f((float) 1, (float) 0, (float) 0);
        //cellServerState.setRotation(new Rotation(axis, (float) Math.PI / 4));

  BoundingBox box = new BoundingBox(
      new Vector3f(0, 0, 0), 0.27053905F, 0.060000006F, 0.27053908F);

  BoundingVolumeHint hint = new BoundingVolumeHint(true, box);
  cellServerState.setBoundingVolumeHint(hint);
 
        Logger.getLogger(PhoneCellFactory.class.getName()).warning(
                "New Virtual Phone!!!!");
        return (T) cellServerState;
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.phone.common.PhoneCellServerState

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.