Tanoda
|
Public Member Functions | |
abstract void | LoadFrames (List< Frame > frames) |
Loads this recording with data from the provided TEMPORARY list of frames. These frames reflect raw recorded Leap data. The actual frame storage scheme utilized is up to the implementation, but if the implementation wishes to store data from these frames, that data must be copied! More... | |
abstract bool | Sample (float time, Frame toFill, bool clampTimeToValid=true) |
Samples the recording at the given time. Caller must provide a frame object that will be filled with the sampled frame data. Returns true if the frame was filled with recording data, and false if it was not. More... | |
Static Public Attributes | |
const double | NS_TO_S = 1e-6 |
Converts nanoseconds to seconds. Leap frames store timestamps in nanoseconds. More... | |
const double | S_TO_NS = 1e6 |
Converts seconds to nanoseconds. Leap frames store timestamps in nanoseconds. More... | |
Properties | |
abstract float | length [get] |
Returns the length of the recording in seconds. More... | |
Definition at line 14 of file LeapRecording.cs.
|
pure virtual |
Loads this recording with data from the provided TEMPORARY list of frames. These frames reflect raw recorded Leap data. The actual frame storage scheme utilized is up to the implementation, but if the implementation wishes to store data from these frames, that data must be copied!
If this recording already has frame data, a call to this method should overwrite that data.
Implemented in Leap.Unity.Recording.RawLeapRecording, and Leap.Unity.Recording.VectorHandRecording.
|
pure virtual |
Samples the recording at the given time. Caller must provide a frame object that will be filled with the sampled frame data. Returns true if the frame was filled with recording data, and false if it was not.
The user can also optionally configure if the input time is allowed to be clamped to a valid timestamp. When true, even if the requested time does not exist, the recording will still fill the frame with data taken from the closest valid timestamp.
Implemented in Leap.Unity.Recording.RawLeapRecording, and Leap.Unity.Recording.VectorHandRecording.
|
static |
Converts nanoseconds to seconds. Leap frames store timestamps in nanoseconds.
Definition at line 19 of file LeapRecording.cs.
|
static |
Converts seconds to nanoseconds. Leap frames store timestamps in nanoseconds.
Definition at line 24 of file LeapRecording.cs.
|
get |
Returns the length of the recording in seconds.
Definition at line 29 of file LeapRecording.cs.