示例#1
0
 private KMLLayerBuilder(KMLLayerBuilder oCopySource)
     : base(oCopySource.Title, MainForm.WorldWindowSingleton, oCopySource.Parent)
 {
     m_oSourceFile = oCopySource.m_oSourceFile;
     m_oRenderable = KMLCreation.CreateKMLLayer(m_oSourceFile, MainForm.WorldWindowSingleton.CurrentWorld, out m_oBounds);
     m_oRenderable.RenderPriority = RenderPriority.TerrainMappedImages;
 }
示例#2
0
        internal static RenderableObject CreateKMLLayer(KMLFile oSource, World oWorld, out GeographicBoundingBox oBounds)
        {
            oBounds = GeographicBoundingBox.NullBox();
            RenderableObject result = Construct(Path.GetDirectoryName(oSource.Filename), oSource.Document, oWorld, oBounds, null, null);

            if (!oBounds.IsValid)
            {
                oBounds = new GeographicBoundingBox(90.0, -90.0, -180.0, 180.0);
            }
            return(result);
        }
示例#3
0
 internal KMLLayerBuilder(String strFilename, String strLayerName, WorldWindow oWorldWindow, IBuilder oParent, GeographicBoundingBox oBounds)
     : base(strLayerName, oWorldWindow, oParent)
 {
     m_strInitFilename = strFilename;
     if (File.Exists(m_strInitFilename))
     {
         m_oSourceFile = new KMLFile(strFilename);
         m_oRenderable = KMLCreation.CreateKMLLayer(m_oSourceFile, oWorldWindow.CurrentWorld, out m_oBounds);
         if (oBounds != null)
         {
             m_oBounds = oBounds;
         }
         m_oRenderable.RenderPriority = RenderPriority.TerrainMappedImages;
     }
 }