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();
         }
     }
 }
Пример #3
0
 public void Add(IWorldObject item)
 {
     plantList.Add(item as PlantType);
     if (inTree)
     {
         item.AddToTree(node);
     }
     if (inScene)
     {
         item.AddToScene();
     }
 }
Пример #4
0
 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();
     }
 }
Пример #6
0
 public void Add(IWorldObject item)
 {
     worldCollections.Add(item as WorldObjectCollection);
     if (inTree)
     {
         item.AddToTree(node);
     }
     if (inScene)
     {
         item.AddToScene();
     }
 }
Пример #7
0
 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();
            }
        }
Пример #9
0
 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);
     }
 }
Пример #10
0
 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();
     }
 }
Пример #11
0
 public void Add(IWorldObject item)
 {
     treeTypes.Add(item);
     if (inTree)
     {
         item.AddToTree(node);
     }
     if (inScene)
     {
         item.AddToScene();
     }
 }
Пример #12
0
 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);
     }
 }
Пример #13
0
 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();
     }
 }
 public void Add(IWorldObject item)
 {
     children.Add(item);
     if (inTree)
     {
         item.AddToTree(node);
     }
     if (inScene)
     {
         item.AddToScene();
     }
 }
Пример #15
0
 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();
     }
 }
Пример #17
0
 public void Add(IWorldObject item)
 {
     worldCollections.Add(item as WorldObjectCollection);
     if (inTree)
     {
         item.AddToTree(node);
     }
     if (inScene)
     {
         item.AddToScene();
     }
 }
Пример #18
0
 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();
         }
     }
 }