Example #1
0
        public CalibrationTarget GetTarget(int targetNumber)
        {
            CalibrationTarget ctFound = null;

            foreach (CalibrationTarget ct in CalibrationTargets)
            {
                if (ct.targetNumber == targetNumber)
                {
                    ctFound = ct;
                }
            }

            return(ctFound);
        }
Example #2
0
        public void AddTarget(int targetNumber, Point targetCoordinates)
        {
            CalibrationTarget ctFound = GetTarget(targetNumber);

            if (ctFound == null)
            {
                calibTargets.Add(new CalibrationTarget(targetNumber, targetCoordinates));
            }
            else
            {
                //We're resampling this point, clear out
                IsCalibrated = false;
                ctFound.Clear();
            }
        }