public OverlapRemovalFixedSegmentsBitmap(Rectangle[] moveableRectangles, Rectangle[] fixedRectangles,
            SymmetricSegment[] fixedSegments) {
            _moveableRectangles = moveableRectangles;
            _fixedRectangles = fixedRectangles;
            _fixedSegments = fixedSegments;

            _bbox = GetInitialBoundingBox();
            _bbox.ScaleAroundCenter(1.25);

            InitBitmap();
            InitTransform();
            
            movedRectangles = new Rectangle[moveableRectangles.Length];
        }
Beispiel #2
0
        public OverlapRemovalFixedSegmentsBitmap(Rectangle[] moveableRectangles, Rectangle[] fixedRectangles,
                                                 SymmetricSegment[] fixedSegments)
        {
            _moveableRectangles = moveableRectangles;
            _fixedRectangles    = fixedRectangles;
            _fixedSegments      = fixedSegments;

            _bbox = GetInitialBoundingBox();
            _bbox.ScaleAroundCenter(1.25);

            InitBitmap();
            InitTransform();

            movedRectangles = new Rectangle[moveableRectangles.Length];
        }
Beispiel #3
0
 public void ScaleBbox(double scale)
 {
     _bbox.ScaleAroundCenter(1.25);
     InitBitmap();
     InitTransform();
 }