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

Public Member Functions

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

Public Attributes

List< FrameframeList = new List<Frame>()
 

Properties

long EarliestTimestamp [get]
 
long LatestTimestamp [get]
 
override float length [get]
 
- Properties inherited from Leap.Unity.Recording.LeapRecording
abstract float length [get]
 Returns the length of the recording in seconds. More...
 

Additional Inherited Members

- Static Public Attributes inherited from Leap.Unity.Recording.LeapRecording
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...
 

Detailed Description

Definition at line 14 of file RawLeapRecording.cs.

Member Function Documentation

◆ LoadFrames()

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

Implements Leap.Unity.Recording.LeapRecording.

Definition at line 38 of file RawLeapRecording.cs.

◆ Sample()

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

Implements Leap.Unity.Recording.LeapRecording.

Definition at line 58 of file RawLeapRecording.cs.

Member Data Documentation

◆ frameList

List<Frame> Leap.Unity.Recording.RawLeapRecording.frameList = new List<Frame>()

Definition at line 16 of file RawLeapRecording.cs.

Property Documentation

◆ EarliestTimestamp

long Leap.Unity.Recording.RawLeapRecording.EarliestTimestamp
get

Definition at line 18 of file RawLeapRecording.cs.

◆ LatestTimestamp

long Leap.Unity.Recording.RawLeapRecording.LatestTimestamp
get

Definition at line 28 of file RawLeapRecording.cs.

◆ length

override float Leap.Unity.Recording.RawLeapRecording.length
get

Definition at line 48 of file RawLeapRecording.cs.


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