public GeoFenceSetup(GPSGeoFence gpsGeoFence, GpsTrackerPlugin Plugin)
        {
            m_GpsGeoFence = gpsGeoFence;
            m_Plugin = Plugin;
            InitializeComponent();

            textBoxSoundFile.Text = GpsTrackerPlugin.m_sPluginDirectory + "\\GeoFence.wav";
            textBoxSoundFileOut.Text = GpsTrackerPlugin.m_sPluginDirectory + "\\GeoFenceOut.wav";

            comboBoxGeoFenceSource.Items.Add("All Gps Sources");
            for (int i = 0; i < m_Plugin.gpsTracker.m_gpsSourceList.Count; i++)
            {
                GPSSource gpsSource = (GPSSource)m_Plugin.gpsTracker.m_gpsSourceList[i];
                if (gpsSource.sType != "POI" &&
                    gpsSource.sType != "GeoFence" &&
                    gpsSource.bWaypoints == false &&
                    gpsSource.bSetup)
                    comboBoxGeoFenceSource.Items.Add(gpsSource.sDescription);
            }
            comboBoxGeoFenceSource.Text = "All Gps Sources";
        }
		public GPSTrackerOverlay(GpsTrackerPlugin plugin) : base("GPSTracker")
		{
			this.Plugin = plugin;
            ParentApplication = plugin.ParentApplication;

            //
            //Set an original size for the arrays
            m_uIconResize=1;
            m_uPOIResize=1;
            m_uTrackResize=1;
            m_uGeoFenceResize = 1;
            m_gpsIcons = new GPSIcon[m_uIconResize];
            m_gpsPOI = new GPSIcon[m_uPOIResize];
            m_gpsTrack = new GPSTrackLine[m_uTrackResize];
            m_gpsGeoFence = new GPSGeoFence[m_uGeoFenceResize];

			gpsTrackerInfo=null;
			m_iGpsPOIIndex=0;
			m_iGpsIconIndex=0;
            m_iGpsGeoFenceIndex = 0;

			// true to make this layer active on startup, this is equal to the checked state in layer manager
			IsOn = false;
		}
        public GPSGeoFence(World parentWorld, string sDescription, GpsTrackerPlugin Plugin)
            : base(sDescription, parentWorld.Position, Quaternion.RotationYawPitchRoll(0, 0, 0))
        {
            m_parentWorld = parentWorld;
            m_Plugin = Plugin;
            m_sDescription = sDescription;

            m_bDone = false;
            m_bCancel = false;
        }
Exemplo n.º 4
0
		//
		//Constructor for the GpsTracker class
		//
		//public GpsTracker(WorldWindow.WorldWindow worldWindow)
		public GpsTracker(GpsTrackerPlugin gpsPlugin)
		{
			m_gpsTrackerPlugin = gpsPlugin;

			// Required for Windows Form Designer support
			InitializeComponent();
			
			m_iSourceNameCount=0;
			SetupTree();

			Bitmap image = new Bitmap(GpsTrackerPlugin.m_sPluginDirectory + "\\satellite.png");
			pictureBoxLogo.Image = image;
			pictureBoxHelpLogo.Image= image;

            m_gpsSourceList.Clear();
			m_NMEA = new GpsTrackerNMEA(this);
			m_UDPTCP = new GpsTrackerUDPTCP(this);
			m_File = new GpsTrackerFile(this);
			m_APRS = new GpsTrackerAPRS(this);

			m_fVerticalExaggeration=World.Settings.VerticalExaggeration;

            GetGpsBabelFormats();

			m_timerLocked=null;
			m_hPOIThread=null;
		
			m_iLocked=0;
			m_iPrevLocked=0;

			progressBarAutoDetect.Value=0;
			progressBarAutoDetect.Width=0; //using visible to hide the progress bar does not seem to work very well

			//StartStop.Enabled=false;
            StartStop.Enabled = true;
			LoadSettings(null,true); //load user settings

			m_swRecorder=null;
			m_srReader=null;
			m_fPlayback=false;

			textBoxVersionInfo.Text="Your Version: " + m_gpsTrackerPlugin.m_sVersion;

			m_MessageMonitor = null;

			SetDefaultSettings(true);
		}