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)); }
public void removeMaterial(String name) { materials.remove(name); sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Material, name, false)); }
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)); }
public void removeCubemap(String name) { cubemaps.remove(name); sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Cubemap, name, false)); }
public void addMaterial(NameBindMaterial o) { materials.add(o.data); materials.setName(o.data, o.name); sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Material, o.name, true)); }
public void removeTexture(String name) { textures.remove(name); sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Texture, name, false)); }
public void addCubemap(NameBindCubemap o) { cubemaps.add(o.data); cubemaps.setName(o.data, o.name); sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Cubemap, o.name, true)); }
public void addTexture(NameBindTexture o) { textures.add(o.data); textures.setName(o.data, o.name); sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Texture, o.name, true)); }
public void removeMesh(String name) { meshes.remove(name); sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Mesh, name, false)); }
public void addMesh(NameBindMesh o) { meshes.add(o.data); meshes.setName(o.data, o.name); sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Mesh, o.name, true)); }