Пример #1
0
        /// <summary>
		/// Plugin entry point 
		/// </summary>
		public override void Load() 
		{
			layer = new MeasureToolLayer(
				this,
				ParentApplication.WorldWindow.DrawArgs );

			layer.TexturePath = Path.Combine(PluginDirectory,"Plugins\\Measure");
			ParentApplication.WorldWindow.CurrentWorld.RenderableObjects.Add(layer);

			menuItem = new MenuItem("Measure\tM");
			menuItem.Click += new EventHandler(menuItemClicked);
			ParentApplication.ToolsMenu.MenuItems.Add( menuItem );

			// Subscribe events
			ParentApplication.WorldWindow.MouseMove += new MouseEventHandler(layer.MouseMove);
			ParentApplication.WorldWindow.MouseDown += new MouseEventHandler(layer.MouseDown);
			ParentApplication.WorldWindow.MouseUp += new MouseEventHandler(layer.MouseUp);
			ParentApplication.WorldWindow.KeyUp +=new KeyEventHandler(layer.KeyUp);
		}
Пример #2
0
        /// <summary>
		/// Plugin entry point 
		/// </summary>
		public override void Load() 
		{
			layer = new MeasureToolLayer(
				this,
				ParentApplication.WorldWindow.DrawArgs );

			layer.TexturePath = Path.Combine(PluginDirectory,"Plugins\\Measure");
			ParentApplication.WorldWindow.CurrentWorld.RenderableObjects.Add(layer);

			menuItem = new MenuItem("Measure\tM");
			menuItem.Click += new EventHandler(menuItemClicked);
			ParentApplication.ToolsMenu.MenuItems.Add( menuItem );

			// Subscribe events
			ParentApplication.WorldWindow.MouseMove += new MouseEventHandler(layer.MouseMove);
			ParentApplication.WorldWindow.MouseDown += new MouseEventHandler(layer.MouseDown);
			ParentApplication.WorldWindow.MouseUp += new MouseEventHandler(layer.MouseUp);
			ParentApplication.WorldWindow.KeyUp +=new KeyEventHandler(layer.KeyUp);
		}
Пример #3
0
			public SaveMultiLine(MeasureToolLayer layer)
			{
				InitializeComponent();
				m_layer = layer;
				m_multiline = layer.multiline;
			}
Пример #4
0
			public SaveMultiLine(MeasureToolLayer layer)
			{
				InitializeComponent();
				m_layer = layer;
				m_multiline = layer.multiline;
			}