Package org.jdesktop.wonderland.common.cell.state

Examples of org.jdesktop.wonderland.common.cell.state.ModelCellComponentServerState


            // Must deploy textures before models so we have the deployment url mapping
            deployTextures(targetDir, textureDeploymentMapping, importedModel);

            ModelCellServerState cellSetup = new ModelCellServerState();
            ModelCellComponentServerState setup = new ModelCellComponentServerState();
            cellSetup.addComponentServerState(setup);
            cellSetup.setName(importedModel.getWonderlandName());
           
           
            BoundingVolume modelBounds = importedModel.getModelBG().getWorldBound();
View Full Code Here


                                1.44526004f,
                                1.44525876f,
                                0.13593452f)));
       
        // add the model
        ModelCellComponentServerState mccss = new ModelCellComponentServerState();
        mccss.setDeployedModelURL("wla://portal/portal.kmz/portal.kmz.dep");
        mccss.setLightingEnabled(false);
        cellState.addComponentServerState(mccss);
       
        // add the portal state (by default this will send the user to the
        // origin)
        cellState.addComponentServerState(new PortalComponentServerState());
View Full Code Here

        }

        // Create a new server state for a Model Cell that knows how to display
        // the URL.
        ModelCellServerState state = new ModelCellServerState();
        ModelCellComponentServerState compState = new ModelCellComponentServerState();
        compState.setDeployedModelURL(url.toExternalForm());
        state.addComponentServerState(compState);
        state.setBoundingVolumeHint(hint);
        state.addComponentServerState(posComp);

        // Set the name of the Cell based upon the URL of the model
View Full Code Here

    public void open() {
        CellServerState state = editor.getCellServerState();
        CellComponentServerState compState = state.getComponentServerState(
                ModelCellComponentServerState.class);
        if (state != null) {
            ModelCellComponentServerState mState =
                    (ModelCellComponentServerState) compState;
            origState = (ModelCellComponentServerState) mState.clone(null);
            deployedModelURLTF.setText(mState.getDeployedModelURL());
            pickingEnabledCB.setSelected(mState.isPickingEnabled());
            lightingEnabledCB.setSelected(mState.isLightingEnabled());
            backfaceCullingEnabledCB.setSelected(mState.isBackfactCullingEnabled());
            graphOptimizationEnabledCB.setSelected(mState.isGraphOptimizationEnabled());
            transparencyCB.setSelectedItem(mState.getTransparencyMode());

            checkDirty();
        }
    }
View Full Code Here

     * @inheritDoc()
     */
    public void apply() {
        // Fetch the latest from the info text field and set it.
        CellServerState state = editor.getCellServerState();
        ModelCellComponentServerState compState =
                (ModelCellComponentServerState) state.getComponentServerState(
                ModelCellComponentServerState.class);
        compState.setPickingEnable(pickingEnabledCB.isSelected());
        compState.setLightingEnabled(lightingEnabledCB.isSelected());
        compState.setBackfaceCullingEnabled(backfaceCullingEnabledCB.isSelected());
        compState.setGraphOptimizationEnabled(graphOptimizationEnabledCB.isSelected());
        compState.setTransparencyMode((TransparencyMode) transparencyCB.getSelectedItem());

        editor.addToUpdateList(compState);
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.common.cell.state.ModelCellComponentServerState

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.