/// <summary> /// Constructs an <c>ImageData</c> object with given parameters. /// </summary> /// <param name="origFilename">The filename of the image.</param> /// <param name="reportFilename">The filename where the Excel report is stored.</param> /// <param name="dateTimeFired">The date and time the target was fired upon.</param> /// <param name="shooterLName">The shooter's last name.</param> /// <param name="shooterFName">The shooter's first name.</param> /// <param name="rangeLocation">The location of the range.</param> /// <param name="distanceUnits">The units that the distance to target is measured in.</param> /// <param name="distance">The distance to the target.</param> /// <param name="temperature">The temperature on the range.</param> /// <param name="weaponName">The name of the weapon.</param> /// <param name="serialNumber">The serial number of the weapon.</param> /// <param name="weaponNotes">Notes on the weapon.</param> /// <param name="caliber">The units of caliber of the ammunition used.</param> /// <param name="caliberValue">The caliber of the ammunition used.</param> /// <param name="lotNumber">The lot number of the ammunition.</param> /// <param name="projectileMassGrains">The projectile mass in units of grains.</param> /// <param name="ammunitionNotes">Notes on the ammunition.</param> /// <param name="scale">The scale information for the target.</param> /// <param name="shotsFired">The number of shots fired.</param> /// <param name="points">A list of points where bullet holes are located.</param> /// <param name="roi">The region of interest for the target.</param> public ImageData(String origFilename, String reportFilename, DateTime dateTimeFired, String shooterLName, String shooterFName, String rangeLocation, UnitsOfMeasure distanceUnits, int distance, Temperature temperature, String weaponName, String serialNumber, String weaponNotes, CaliberUnit caliber, double caliberValue, String lotNumber, int projectileMassGrains, String ammunitionNotes, Scale scale, int shotsFired, IList<Point> points, ROI roi) { this.targetID = -1; this.origFilename = origFilename; this.reportFilename = reportFilename; this.dateTimeFired = dateTimeFired; this.shooterLName = shooterLName; this.shooterFName = shooterFName; this.rangeLocation = rangeLocation; this.distanceUnits = distanceUnits; this.distance = distance; this.temperature = temperature; this.weaponName = weaponName; this.serialNumber = serialNumber; this.weaponNotes = weaponNotes; this.caliber = caliber; this.caliberValue = caliberValue; this.lotNumber = lotNumber; this.projectileMassGrains = projectileMassGrains; this.ammunitionNotes = ammunitionNotes; this.scale = scale; this.shotsFired = shotsFired; this.points = points; this.regionOfInterest = roi; }
/// <summary> /// Constructs a blank <c>ImageData</c> object. /// </summary> public ImageData() { this.targetID = -1; this.caliber = new CaliberUnit(); this.points = new List<Point>(); }