Package org.jdesktop.wonderland.client.content.spi

Examples of org.jdesktop.wonderland.client.content.spi.ContentExporterSPI


        boolean isEnvironment = cell.getCellID().equals(CellID.getEnvironmentCellID());
        removeCellButton.setEnabled(!isEnvironment);
        goToButton.setEnabled(!isEnvironment);
       
        // see if we have a valid exporter
        ContentExporterSPI exporter =
                ContentExportManager.INSTANCE.getContentExporter(selectedCell.getClass());
        exportButton.setEnabled(!isEnvironment && exporter != null);
        if (exporter == null) {
            exportButton.setToolTipText(BUNDLE.getString("No_Exporter"));
        } else {
View Full Code Here


        }
    }

    private void exportButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exportButtonActionPerformed
        // find an exporter for the selected cell
        ContentExporterSPI exporter =
                ContentExportManager.INSTANCE.getContentExporter(selectedCell.getClass());
       
        // find the origin, which is the same as the location we would use to
        // go to the given cell
        CellTransform origin = getGotoLocation(selectedCell);
       
        // adjust the height so the export is relative to the avatar's current
        // height
        Vector3f translation = origin.getTranslation(null);
        CellTransform avatarTransform = ViewManager.getViewManager().getPrimaryViewCell().getWorldTransform();
        translation.y = avatarTransform.getTranslation(null).getY();
        origin.setTranslation(translation);
       
        exporter.exportCells(new Cell[] { selectedCell }, origin);      
    }//GEN-LAST:event_exportButtonActionPerformed
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.content.spi.ContentExporterSPI

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.