Пример #1
0
        public List <GPLocation> getLocationList()
        {
            List <GPLocation> locList = new List <GPLocation>();

            double start = m_vcStart.getJulianGreenwichTime();
            double end   = m_vcEnd.getJulianGreenwichTime();

            if (m_location.getChangeCount() > 0)
            {
                for (int i = 0; i < m_location.getChangeCount(); i++)
                {
                    GPLocationChange lc = m_location.getChangeAtIndex(i);

                    if ((lc.julianStart >= start && lc.julianStart <= end) &&
                        (lc.julianEnd >= start && lc.julianEnd <= end))
                    {
                        addLocationToList(lc.LocationA, locList);
                        addLocationToList(lc.LocationB, locList);
                    }
                }
            }
            else
            {
                addLocationToList(m_location.getLocationAtIndex(0), locList);
            }

            return(locList);
        }