예제 #1
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("SDSS") == -1)
			{
				Stars3DLayer layer = new Stars3DLayer(LayerName, PluginDirectory, ParentApplication.WorldWindow);
				ParentApplication.WorldWindow.CurrentWorld.RenderableObjects.ChildObjects.Insert(0,layer);
			}
		}
예제 #2
0
 public override void Load()
 {
     if (Global.worldWindow.CurrentWorld != null && Global.worldWindow.CurrentWorld.Name.IndexOf("SDSS") == -1)
     {
         Stars3DLayer layer = new Stars3DLayer(LayerName, PluginDirectory, Global.worldWindow);
         Global.worldWindow.CurrentWorld.RenderableObjects.ChildObjects.Insert(0, layer);
     }
 }
예제 #3
0
            public propertiesDialog(Stars3DLayer layer)
            {
                InitializeComponent();
                //this.Icon = WorldWind.PluginEngine.Plugin.Icon;
                this.layer = layer;
                // Init star catalog list with *.tsv
                DirectoryInfo di = new DirectoryInfo(layer.pluginPath);

                FileInfo[] imgFiles = di.GetFiles("*.tsv");
                cboTexture.Items.AddRange(imgFiles);
                // select current catalog
                int i = cboTexture.FindString(layer.catalogFileName);

                if (i != -1)
                {
                    cboTexture.SelectedIndex = i;
                }
                // Flares
                chkFlares.Checked = layer.showFlares;
            }
예제 #4
0
			public propertiesDialog( Stars3DLayer layer )
			{
				InitializeComponent();
				//this.Icon = WorldWind.PluginEngine.Plugin.Icon;
				this.layer = layer;
				// Init star catalog list with *.tsv
				DirectoryInfo di = new DirectoryInfo(layer.pluginPath);
				FileInfo[] imgFiles = di.GetFiles("*.tsv");
				cboTexture.Items.AddRange(imgFiles);
				// select current catalog
				int i = cboTexture.FindString(layer.catalogFileName);
				if(i != -1) cboTexture.SelectedIndex = i;
				// Flares
				chkFlares.Checked = layer.showFlares;
			}