public void AddToScene() { inScene = true; // tell the app to use our terrain generator app.TerrainGenerator = terrainGenerator; terrainDisplay.AddToScene(); }
public void Add(IWorldObject item) { children.Add(item); if (inTree) { item.AddToTree(node); } if (item is ParticleEffect && app.DisplayParticleEffects && app.WorldRoot != null && !(parent is PasteFromClipboardCommand) && !(parent is ClipboardObject) && (parent as WorldObjectCollection).InScene) { item.AddToScene(); } else { if (inScene) { item.AddToScene(); } } }
public void Add(IWorldObject item) { plantList.Add(item as PlantType); if (inTree) { item.AddToTree(node); } if (inScene) { item.AddToScene(); } }
public void Add(IWorldObject item) { objectList.Add(item); if (inTree && Loaded) { item.AddToTree(node); } if (inScene && Loaded) { item.AddToScene(); } }
public void Add(IWorldObject item) { treeTypes.Add(item); if (inTree) { item.AddToTree(node); } if (inScene) { item.AddToScene(); } }
public void Add(IWorldObject item) { worldCollections.Add(item as WorldObjectCollection); if (inTree) { item.AddToTree(node); } if (inScene) { item.AddToScene(); } }
public void Add(IWorldObject item) { children.Add(item); if (inTree) { item.AddToTree(node); } if (inScene) { item.AddToScene(); } }
public void Add(IWorldObject item) { points.Add((MPPoint)item); OnPointsChanged(); if (inTree) { item.AddToTree(node); } if (inScene) { item.AddToScene(); } }
public void Add(IWorldObject item) { children.Add(item); if (String.Equals(item.ObjectType, "Points") && points == null) { points = (item as PointCollection); } if (inScene) { item.AddToScene(); } if (inTree) { item.AddToTree(node); } }
public void Add(IWorldObject item) { children.Add(item); if (String.Equals(item.ObjectType, "Points") && points == null) { this.points = (item as PointCollection); points.PointsChanged += new PointsChangedEventHandler(PointsChangedHandler); } if (inTree) { item.AddToTree(node); } if (inScene) { item.AddToScene(); } }