Esempio n. 1
0
  public void removeObject(String name) {
    // Can't Delete The Root
    if (name.equals(ROOT_NODE_NAME)) return;
    objects.remove(name);
    for (SceneObject o : objects) {
      if (o.parent != null && o.parent.equals(name)) o.parent = ROOT_NODE_NAME;
    }

    sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Object, name, false));
  }
Esempio n. 2
0
  public void removeMaterial(String name) {
    materials.remove(name);

    sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Material, name, false));
  }
Esempio n. 3
0
 public void addObject(NameBindSceneObject o) {
   objects.add(o.data);
   objects.setName(o.data, o.name);
   if (o.data.parent == null && !o.name.equals(ROOT_NODE_NAME)) o.data.parent = ROOT_NODE_NAME;
   sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Object, o.name, true));
 }
Esempio n. 4
0
  public void removeCubemap(String name) {
    cubemaps.remove(name);

    sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Cubemap, name, false));
  }
Esempio n. 5
0
  public void addMaterial(NameBindMaterial o) {
    materials.add(o.data);
    materials.setName(o.data, o.name);

    sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Material, o.name, true));
  }
Esempio n. 6
0
  public void removeTexture(String name) {
    textures.remove(name);

    sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Texture, name, false));
  }
Esempio n. 7
0
  public void addCubemap(NameBindCubemap o) {
    cubemaps.add(o.data);
    cubemaps.setName(o.data, o.name);

    sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Cubemap, o.name, true));
  }
Esempio n. 8
0
  public void addTexture(NameBindTexture o) {
    textures.add(o.data);
    textures.setName(o.data, o.name);

    sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Texture, o.name, true));
  }
Esempio n. 9
0
  public void removeMesh(String name) {
    meshes.remove(name);

    sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Mesh, name, false));
  }
Esempio n. 10
0
  public void addMesh(NameBindMesh o) {
    meshes.add(o.data);
    meshes.setName(o.data, o.name);

    sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Mesh, o.name, true));
  }