// 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);
}
}