Esempio n. 1
0
 private void LoadFromCache(ProgressManager progressManager)
 {
     if (PROPERTY_REUSE_TILING.Value)
     {
         if (m_tiledHandler.Exists)
         {
             progressManager.Log("Loading from Cache: {0}", Path.GetFileNameWithoutExtension(m_tiledHandler.FilePath));
             try
             {
                 m_tileSource = PointCloudTileSource.Open(m_tiledHandler);
             }
             catch
             {
                 progressManager.Log("Cache Invalid; Regenerating.");
                 File.Delete(m_tiledHandler.FilePath);
             }
         }
     }
 }
Esempio n. 2
0
 private static void AddTileSource(PointCloudTileSource tileSource, FileHandlerBase inputHandler)
 {
     tileSource.Open();
     c_sources.Add(tileSource, inputHandler);
 }