Superclass of display types that can draw themselves. These types do not use any instancing techniques.
Esempio n. 1
0
 /// <summary>
 /// Adds the display object to the drawer.
 /// </summary>
 /// <param name="displayObject">Display object to add.</param>
 /// <returns>Whether or not the display object was added.</returns>
 public bool Add(SelfDrawingModelDisplayObject displayObject)
 {
     if (!selfDrawingDisplayObjects.Contains(displayObject))
     {
         selfDrawingDisplayObjects.Add(displayObject);
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
 /// <summary>
 /// Removes an object from the drawer.
 /// </summary>
 /// <param name="displayObject">Display object to remove.</param>
 public void Remove(SelfDrawingModelDisplayObject displayObject)
 {
     selfDrawingDisplayObjects.Remove(displayObject);
 }
Esempio n. 3
0
 /// <summary>
 /// Removes an object from the drawer.
 /// </summary>
 /// <param name="displayObject">Display object to remove.</param>
 /// <returns>Whether or not the object was present.</returns>
 public bool Remove(SelfDrawingModelDisplayObject displayObject)
 {
     return selfDrawingDisplayObjects.Remove(displayObject);
 }
Esempio n. 4
0
 /// <summary>
 /// Adds the display object to the drawer.
 /// </summary>
 /// <param name="displayObject">Display object to add.</param>
 /// <returns>Whether or not the display object was added.</returns>
 public bool Add(SelfDrawingModelDisplayObject displayObject)
 {
     if (!selfDrawingDisplayObjects.Contains(displayObject))
     {
         selfDrawingDisplayObjects.Add(displayObject);
         return true;
     }
     return false;
 }
 /// <summary>
 /// Removes an object from the drawer.
 /// </summary>
 /// <param name="displayObject">Display object to remove.</param>
 /// <returns>Whether or not the object was present.</returns>
 public bool Remove(SelfDrawingModelDisplayObject displayObject)
 {
     return(selfDrawingDisplayObjects.Remove(displayObject));
 }
Esempio n. 6
0
 /// <summary>
 /// Removes an object from the drawer.
 /// </summary>
 /// <param name="displayObject">Display object to remove.</param>
 public void Remove(SelfDrawingModelDisplayObject displayObject)
 {
     selfDrawingDisplayObjects.Remove(displayObject);
 }