Examples of ModelLoader


Examples of org.jdesktop.wonderland.client.jme.artimport.ModelLoader

    public Node loadModel(Entity rootEntity) {
        Node ret = new Node();

        DeployedModel dm = getDeployedModel();

        ModelLoader loader = dm.getModelLoader();
        Node model = loader.loadDeployedModel(dm, rootEntity);
        if (model != null) {
            model.setName(dm.getModelURL());
            ret.attachChild(model);
        }
        return ret;
View Full Code Here

Examples of org.jdesktop.wonderland.client.jme.artimport.ModelLoader

            lastModelDir = new File(url.getFile()).getParentFile();
        }

        Node modelBG = null;

        ModelLoader modelLoader =
                LoaderManager.getLoaderManager().getLoader(url);

        LOGGER.fine("Using model loader " + modelLoader);

        if (modelLoader == null) {
            String urlString = url.toExternalForm();
            String fileExtension = FileUtils.getFileExtension(urlString);
            String message = BUNDLE.getString("No_Loader_For");
            message = MessageFormat.format(message, fileExtension);
            JOptionPane.showMessageDialog(null, message);
            return null;
        }

        ImportedModel loadedModel = modelLoader.importModel(settings);
        modelBG = loadedModel.getModelBG();

        rootBG.attachChild(modelBG);

        WorldManager wm = ClientContextJME.getWorldManager();
View Full Code Here

Examples of org.jdesktop.wonderland.client.jme.artimport.ModelLoader

        if (dm.getModelBounds()==null) {
            // Legacy support, the DeployedModels object for new builds contains
            // the model bounds.
            // Go ahead and load the model. We need to load the model in order to
            // find out its bounds to set the hint.
            ModelLoader loader = dm.getModelLoader();
            Node node = loader.loadDeployedModel(dm, null);
            BoundingVolume bounds = node.getWorldBound();
            hint = getBoundingVolumeHint(bounds);
            posComp.setBounds(bounds);
        } else {
            hint = getBoundingVolumeHint(dm.getModelBounds());
View Full Code Here

Examples of org.jmol.modelset.ModelLoader

    this.viewer = viewer;
  }

  ModelSet zap() {
    fullPathName = fileName = null;
    modelLoader = new ModelLoader(viewer, viewer.getZapName());
    return (ModelSet) modelLoader;
  }
View Full Code Here

Examples of org.jmol.modelset.ModelLoader

            modelSetName = null;
        }
        if (modelSetName == null)
          modelSetName = reduceFilename(fileName);
      }
      modelLoader = new ModelLoader(viewer, loadScript, atomSetCollection,
          (isAppend ? modelLoader : null), modelSetName, bsNew);
    }
    if (modelLoader.getAtomCount() == 0)
      zap();
    return modelLoader;
View Full Code Here

Examples of org.wymiwyg.rwcf.loader.ModelLoader

    try {
      modelLoaderClass = Class.forName(modelLoaderClassName);
    } catch (ClassNotFoundException e) {
      throw new RuntimeException(e);
    }
    ModelLoader modelLoader;
    try {
      modelLoader = (ModelLoader) modelLoaderClass.newInstance();
    } catch (InstantiationException e) {
      throw new RuntimeException(e);
    } catch (IllegalAccessException e) {
      throw new RuntimeException(e);
    }
    Model result = modelLoader.loadModel(baseModelRes, new File(
        getBaseDir().getFile()));

    result = getModelWithModelSections(result);

    if (baseModelRes.hasProperty(RDF.type, RWCF.OWLBaseModel)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.