Ejemplo n.º 1
0
        public void ExtractRect()
        {
            Boolean _first = true;

            foreach (Picture _pic in Pictures)
            {
                if (_pic.PositionPresent)
                {
                    PositionPresent = true;
                    if (_first)
                    {
                        _rect  = new GpsRect(_pic.Position);
                        _first = false;
                    }
                    _rect.UpdateRangeFromLocation(_pic.Position);
                }
            }

            if (_rect == null)
            {
                _rect = new GpsRect();
            }

            // distance with edges of original rect
            double _degreesOffset = 0.2;

            _rect.UpdateDisp(_degreesOffset);
            GpsLocationCommon = _rect.TopLeft.Equals(_rect.BottomRight);
        }
Ejemplo n.º 2
0
        public void UpdateRect()
        {
            foreach (Album _album in Albums)
            {
                _album.ExtractRect();
            }

            Boolean _first = true;

            PositionPresent = false;

            foreach (Album _album in Albums)
            {
                if (_album.PositionPresent)
                {
                    PositionPresent = true;
                    if (_first)
                    {
                        Rect   = new GpsRect(_album.Rect);
                        _first = false;
                    }
                    Rect.UpdateRangeFromRect(_album.Rect);
                }
            }

            double _degreesOffset = 1.5;

            if (Rect == null)
            {
                Rect = new GpsRect();
            }

            Rect.UpdateDisp(_degreesOffset);
        }