Tanoda
Leap.Unity.Recording.LeapRecording Class Referenceabstract
Inheritance diagram for Leap.Unity.Recording.LeapRecording:
Leap.Unity.Recording.RawLeapRecording Leap.Unity.Recording.VectorHandRecording

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...
 

Detailed Description

Definition at line 14 of file LeapRecording.cs.

Member Function Documentation

◆ LoadFrames()

abstract void Leap.Unity.Recording.LeapRecording.LoadFrames ( List< Frame frames)
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.

◆ Sample()

abstract bool Leap.Unity.Recording.LeapRecording.Sample ( float  time,
Frame  toFill,
bool  clampTimeToValid = true 
)
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.

Member Data Documentation

◆ NS_TO_S

const double Leap.Unity.Recording.LeapRecording.NS_TO_S = 1e-6
static

Converts nanoseconds to seconds. Leap frames store timestamps in nanoseconds.

Definition at line 19 of file LeapRecording.cs.

◆ S_TO_NS

const double Leap.Unity.Recording.LeapRecording.S_TO_NS = 1e6
static

Converts seconds to nanoseconds. Leap frames store timestamps in nanoseconds.

Definition at line 24 of file LeapRecording.cs.

Property Documentation

◆ length

abstract float Leap.Unity.Recording.LeapRecording.length
get

Returns the length of the recording in seconds.

Definition at line 29 of file LeapRecording.cs.


The documentation for this class was generated from the following file: