예제 #1
0
 /// <summary>
 /// Plugin entry point - All plugins must implement this function
 /// </summary>
 public override void Load()
 {
     if (Global.worldWindow.CurrentWorld != null && Global.worldWindow.CurrentWorld.Name.IndexOf("Earth") >= 0)
     {
         AtmosphereLayer layer = new AtmosphereLayer(LayerName, PluginDirectory, Global.worldWindow);
         Global.worldWindow.CurrentWorld.RenderableObjects.Add(layer);
     }
 }
예제 #2
0
 /// <summary>
 /// Plugin entry point - All plugins must implement this function
 /// </summary>
 public override void Load()
 {
     if (ParentApplication.WorldWindow.CurrentWorld != null && ParentApplication.WorldWindow.CurrentWorld.Name.IndexOf("Earth") >= 0)
     {
         AtmosphereLayer layer = new AtmosphereLayer(LayerName, PluginDirectory, ParentApplication.WorldWindow);
         ParentApplication.WorldWindow.CurrentWorld.RenderableObjects.Add(layer);
     }
 }
예제 #3
0
            public propertiesDialog(AtmosphereLayer layer)
            {
                InitializeComponent();
                //this.Icon = WorldWind.PluginEngine.Plugin.Icon;
                this.layer = layer;
                // Init texture list with *.png
                DirectoryInfo di = new DirectoryInfo(layer.pluginPath);

                FileInfo[] imgFiles = di.GetFiles("*.png");
                cboTexture.Items.AddRange(imgFiles);
                // select current bitmap
                int i = cboTexture.FindString(layer.textureFileName);

                if (i != -1)
                {
                    cboTexture.SelectedIndex = i;
                }
            }