Beispiel #1
0
 public void Add(aShape child)
 {
     shapes.Add(child);
     dimensions = calculateDimensions();
     width      = (int)dimensions.Y - (int)dimensions.X;
     height     = (int)dimensions.W - (int)dimensions.Z;
 }
Beispiel #2
0
 public virtual bool Intersects(aShape iShape)
 {
     if ((TopLeft.X > iShape.BottomRight.X) || (BottomRight.X < iShape.TopLeft.X) ||
         (TopLeft.Y > iShape.BottomRight.Y) || (BottomRight.Y < iShape.TopLeft.Y))
     {
         return(false);
     }
     return(true);
 }
Beispiel #3
0
 public void RemoveShape(aShape shape)
 {
     layers[0].Shapes.Remove(shape);
 }
Beispiel #4
0
 public void AddShape(aShape shape)
 {
     layers[0].Shapes.Add(shape);//TODO: Add to selected layer
 }
Beispiel #5
0
 public void Remove(aShape child)
 {
     shapes.Remove(child);
 }