public override bool Equals(GeometricShutter other)
        {
            if (other is PolygonalShutter)
            {
                return(Equals((PolygonalShutter)other));
            }

            return(false);
        }
        public override bool Equals(GeometricShutter other)
        {
            if (other is RectangularShutter)
            {
                return(Equals((RectangularShutter)other));
            }

            return(false);
        }
示例#3
0
 internal void AddDicomShutter(GeometricShutter dicomShutter)
 {
     _dicomShutters.Add(dicomShutter);
     Invalidate();
 }
示例#4
0
 /// <summary>
 /// Constructs a new <see cref="RemoveGeometricShutterUndoableCommand"/>.
 /// </summary>
 /// <param name="parent">The parent <see cref="GeometricShuttersGraphic"/>.</param>
 /// <param name="shutter">The <see cref="GeometricShutter"/> to add to <paramref name="parent"/>.</param>
 public RemoveGeometricShutterUndoableCommand(GeometricShuttersGraphic parent, GeometricShutter shutter)
 {
     _parent  = parent;
     _shutter = shutter;
 }