コード例 #1
0
        public void Visit(MapObjectGroup mapObjectGroup)
        {
            foreach (MapObject brush in mapObjectGroup.MapObjectList)
            {
                brush.PerformOperation(this);
            }

            mapObjectGroup.RegenerateBounds();
        }
コード例 #2
0
        public void Visit(MapObjectGroup mapObjectGroup)
        {
            // we only set the bounds for the top groupbrush
            // this way a child groupbrush wont change the rootBounds again
            if (rootBounds == null)
            {
                rootBounds = mapObjectGroup.Bounds;
            }

            foreach (MapObject brush in mapObjectGroup.MapObjectList)
            {
                brush.PerformOperation(this);
            }

            mapObjectGroup.RegenerateBounds();
        }