Ejemplo n.º 1
0
        public ImageOverlayList(ImageOverlayPlugin plugin) : base(plugin.Name)
        {
            //*************
            this.Plugin       = plugin;
            ParentApplication = plugin.ParentApplication;
            Radius            = (float)ParentApplication.WorldWindow.CurrentWorld.EquatorialRadius;

            ImageOverlay.Parent = this;

            Load();

            // true to make this layer active on startup, this is equal to the checked state in layer manager
            IsOn = true;

            ParentApplication.WorldWindow.MouseUp   += new MouseEventHandler(WorldWindow_MouseUp);
            ParentApplication.WorldWindow.MouseDown += new MouseEventHandler(WorldWindow_MouseDown);
            ParentApplication.WorldWindow.MouseMove += new MouseEventHandler(WorldWindow_MouseMove);

            defaultImage = Path.Combine(plugin.PluginDirectory, "default.png");
        }
Ejemplo n.º 2
0
		public ImageOverlayList(ImageOverlayPlugin plugin) : base(plugin.Name)
		{

			//*************
			this.Plugin = plugin;
			ParentApplication = plugin.ParentApplication;
			Radius = (float)ParentApplication.WorldWindow.CurrentWorld.EquatorialRadius;
		
			ImageOverlay.Parent = this;

			Load();

			// true to make this layer active on startup, this is equal to the checked state in layer manager
			IsOn = true;

			ParentApplication.WorldWindow.MouseUp += new MouseEventHandler(WorldWindow_MouseUp);
			ParentApplication.WorldWindow.MouseDown += new MouseEventHandler(WorldWindow_MouseDown);
			ParentApplication.WorldWindow.MouseMove += new MouseEventHandler(WorldWindow_MouseMove);

			defaultImage = Path.Combine( plugin.PluginDirectory, "default.png" );
		}