| | | 1 | | using System.Collections.Generic; |
| | | 2 | | |
| | | 3 | | namespace ReFlex.Core.Common.Components |
| | | 4 | | { |
| | | 5 | | /// <summary> |
| | | 6 | | /// Data class containing all touches that have been registered on a specific depth frame (or in a specific time fra |
| | | 7 | | /// </summary> |
| | | 8 | | public class InteractionFrame |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// the Identifier for the Frame, typically a sequentially counting number |
| | | 12 | | /// </summary> |
| | 64930 | 13 | | public int FrameId { get; private set; } |
| | | 14 | | |
| | | 15 | | /// <summary>Monotonic seconds in the producer's clock domain; not a UTC date.</summary> |
| | 43044 | 16 | | public double TimestampSeconds { get; private set; } |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// Interactions register4ed in the given frame |
| | | 20 | | /// </summary> |
| | 63236 | 21 | | public List<Interaction> Interactions { get; } = new List<Interaction>(); |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// Initializes the data class with an empty List of <see cref="Interaction"/> |
| | | 25 | | /// </summary> |
| | | 26 | | /// <param name="id">Id of the frame</param> |
| | 23556 | 27 | | public InteractionFrame(int id, double timestampSeconds = 0) |
| | 23556 | 28 | | { |
| | 23556 | 29 | | FrameId = id; |
| | 23556 | 30 | | TimestampSeconds = timestampSeconds; |
| | 23556 | 31 | | } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Initializes the data class with an the provided List of <see cref="Interaction"/> |
| | | 35 | | /// </summary> |
| | | 36 | | /// <param name="id">Id of the frame</param> |
| | | 37 | | /// <param name="interactions">The Interactions that have been registered in this frame</param> |
| | 21026 | 38 | | public InteractionFrame(int id, List<Interaction> interactions, double timestampSeconds = 0) : this(id, timestam |
| | 21026 | 39 | | { |
| | 21026 | 40 | | Interactions = interactions; |
| | 21026 | 41 | | } |
| | | 42 | | } |
| | | 43 | | } |