| | 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> |
| 18873 | 13 | | public int FrameId { get; private set; } |
| | 14 | |
|
| | 15 | | /// <summary> |
| | 16 | | /// Interactions register4ed in the given frame |
| | 17 | | /// </summary> |
| 20927 | 18 | | public List<Interaction> Interactions { get; } = new List<Interaction>(); |
| | 19 | |
|
| | 20 | | /// <summary> |
| | 21 | | /// Initializes the data class with an empty List of <see cref="Interaction"/> |
| | 22 | | /// </summary> |
| | 23 | | /// <param name="id">Id of the frame</param> |
| 526 | 24 | | public InteractionFrame(int id) |
| 526 | 25 | | { |
| 526 | 26 | | FrameId = id; |
| 526 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes the data class with an the provided List of <see cref="Interaction"/> |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="id">Id of the frame</param> |
| | 33 | | /// <param name="interactions">The Interactions that have been registered in this frame</param> |
| 276 | 34 | | public InteractionFrame(int id, List<Interaction> interactions) : this(id) |
| 276 | 35 | | { |
| 276 | 36 | | Interactions = interactions; |
| 276 | 37 | | } |
| | 38 | | } |
| | 39 | | } |