Initial commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
namespace Sick.SafetyScanners.DataStructures;
|
||||
|
||||
/// <summary>
|
||||
/// Contains all scan points of a single measurement
|
||||
/// </summary>
|
||||
public sealed class MeasurementData
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the number of beams in this measurement
|
||||
/// </summary>
|
||||
public uint NumberOfBeams { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets all scan points
|
||||
/// </summary>
|
||||
public IReadOnlyList<ScanPoint> ScanPoints { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets whether measurement data is empty (not enabled)
|
||||
/// </summary>
|
||||
public bool IsEmpty { get; init; }
|
||||
|
||||
public MeasurementData(uint numberOfBeams, IReadOnlyList<ScanPoint> scanPoints, bool isEmpty = false)
|
||||
{
|
||||
NumberOfBeams = numberOfBeams;
|
||||
ScanPoints = scanPoints ?? Array.Empty<ScanPoint>();
|
||||
IsEmpty = isEmpty;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user