ScanMaster.DataStore.AddScanPoint C# (CSharp) Method

AddScanPoint() public method

public AddScanPoint ( ScanPoint sp ) : void
sp Data.Scans.ScanPoint
return void
        public void AddScanPoint(ScanPoint sp)
        {
            currentScan.Points.Add(sp);
        }

Usage Example

Example #1
0
        // This function is registered to handle data events from the acquisitor.
        // Whenever the acquisitor has new data it will call this function.
        // Note well that this will be called on the acquisitor thread (meaning
        // no direct GUI manipulation in this function).
        private void DataHandler(object sender, DataEventArgs e)
        {
            lock (this)
            {
                // grab the settings
                GUIConfiguration guiConfig = profileManager.CurrentProfile.GUIConfig;
                // store the datapoint
                dataStore.AddScanPoint(e.point);

                // tell the viewers to handle the data point
                viewerManager.HandleDataPoint(e);
            }
        }