Exemple #1
0
 /// <summary>
 /// Adds a 3D element to this 3DScene.
 /// </summary>
 /// <param name="item">The _3DComponent instance to add.</param>
 public override void Add(_3DComponent item)
 {
     m_Elements.Add(item);
     item.Scene = this;
     if (this.Parent != null)
     {
         item.Initialize();
     }
 }
Exemple #2
0
 /// <summary>
 /// Adds a 3D element to this 3DScene.
 /// </summary>
 /// <param name="item">The _3DComponent instance to add.</param>
 public override void Add(_3DComponent item)
 {
     m_Elements.Add(item);
     item.Scene = this;
     if (this.Parent != null)
     {
         item.Initialize();
     }
 }
Exemple #3
0
 public override void Add(_3DComponent item)
 {
     //needs this to be a ThreeDScene, however the city renderer cannot have elements added to it!
 }
Exemple #4
0
 public abstract void Add(_3DComponent item);
Exemple #5
0
 /// <summary>
 /// Removes a 3D element from this 3DScene.
 /// </summary>
 /// <param name="item">The _3DComponent instance to remove.</param>
 public void Remove(_3DComponent item)
 {
     m_Elements.Remove(item);
 }
Exemple #6
0
 /// <summary>
 /// Removes a 3D element from this 3DScene.
 /// </summary>
 /// <param name="item">The _3DComponent instance to remove.</param>
 public void Remove(_3DComponent item)
 {
     m_Elements.Remove(item);
 }
Exemple #7
0
 private void SetPreview(_3DComponent component)
 {
     if (this.Preview != null){
         Scene.Remove(Preview);
     }
     this.Preview = component;
     Scene.Add(component);
 }
Exemple #8
0
 public abstract void Add(_3DComponent item);