【VR】Leap Motion 官网文档 LeapRecorder (Leap记录器)
来源:互联网 发布:无锡源石数据招聘骗局 编辑:程序博客网 时间:2024/05/21 13:22
LeapRecorder Leap记录器
Defines helper functions for the record/playback mechanism of the HandController.
定义了手部控制器的记录/播放机制的辅助方法。
class LeapRecorder Leap记录器类
Maintains a buffer of recorded frames and tracks the state of playback and recording.
维护一个记录帧的缓存并跟踪播放和记录状态。
Public Functions 公共方法
LeapRecorder() Leap记录器
Creates a new LeapRecorder object. 创建一个新的Leap记录器对象。
This doesn’t make sense outside the context of a HandController object.
如果不在手部控制器对象之内,该方法无效。
void AddFrame(Frame frame) 添加帧(Frame 帧)
Serializes a Leap Frame object and adds it to the end of the recording.
序列化一个Leap帧对象并且把它添加到记录的最后。
Frame GetCurrentFrame() Frame 获取当前帧
Returns the current frame without advancing the playhead.
返回当前帧并且不向下一帧推进。
This frame could be invalid.
该帧可能失效。
List< Frame > GetFrames() List<Frame> 获取帧
Deserializes all the recorded frames and returns them in a new list.
反序列化所有记录的帧并用一个新的List返回它们。
int GetFramesCount() int 获取帧数
The number of recorded frames.
记录的帧数。
int GetIndex() int 获取索引
Returns the playback position.
返回播放位置。
float GetProgress() float 获取进度
Returns the ratio of the current playback position to the total recording length.
返回当前播放位置与总记录长度的比例。
void Load(TextAsset text_asset) 载入(TextAsset 文本_资源)
Loads saved frames from a file.
从一个文件里载入已保存的帧。
Frame NextFrame() Frame 下一帧
Advances the playhead, deserializes the frame, and returns it.
向下推进一帧,反序列化该帧并将其返回。
void Pause() 暂停
Sets the play state to idle.
暂停播放。
void Play() 播放
Sets the play state to playing.
播放。
void Record() 记录
Sets the play state to recording.
开始记录。
void Reset() 重置
Discards any recorded frames.
删除所有已录制的帧。
string SaveToNewFile() string 保存成新的文件
Saves the recorded frames to a file, overwriting an existing file.
将已录制好的帧保存成一个文件,覆盖存在的文件。
void SetDefault() 设置默认
Restores the default behaviors.
复原默认行为。
void SetIndex(int new_index) 设置索引(int 新的索引)
Sets the playback position to the specified frame count (or the last frame if the specified index is after the last frame.
设置播放位置到指定帧数(如果指定索引在最后一帧之后则设置到最后一帧)。
void Stop() 停止
Sets the play state to idle.
停止播放。
Public Members 公共变量
bool loop bool 循环
Whether to lop back to the beginning when the last recorded frame is played.
记录的最后一帧播放完毕时是否循环回开始
float speed float 速度
Playback speed.
播放速度
RecorderState state RecorderState 状态
The current play state.
当前的播放状态。
- 【VR】Leap Motion 官网文档 LeapRecorder (Leap记录器)
- 【VR】Leap Motion 官网文档 LeapRecorder (Leap记录器)
- 【VR】Leap Motion 官网文档 FingerModel (手指模型)
- 【VR】Leap Motion 官网文档 ToolModel (工具模型)
- 【VR】Leap Motion 官网文档 ToolModel (工具模型)
- 【VR】Leap Motion 官网文档 LeapUnityExtensions (LeapUnity扩展)
- 【VR】Leap Motion 官网文档 LeapUnityExtensions (LeapUnity扩展)
- 【VR】Leap Motion 官网文档 Unity资源与插件
- 【VR】Leap Motion 官网文档 Unity插件概述
- 【VR】Leap Motion 官网文档 手型资源
- 【VR】Leap Motion 官网文档 HandController(手部控制器)
- 【VR】Leap Motion 官网文档 HandModel(手部模型)
- 【VR】Leap Motion 官网文档 ConfidenceTransparency (确定性透明处理)
- 【VR】Leap Motion 官网文档 ConfidenceTransparency (确定性透明处理)
- 【VR】Leap Motion 官网文档 DisconnectionNotice (未连接通知)
- 【VR】Leap Motion 官网文档 DisconnectionNotice (未连接通知)
- 【VR】Leap Motion 官网文档 MagneticPinch (磁性捏取)
- 【VR】Leap Motion 官网文档 MagneticPinch (磁性捏取)
- 人民币创出20年来最大单日跌幅,中国股市振荡
- IOS九宫格
- centos rpm不小心被卸载了怎么办?
- 通过线程计数器和Thread.Join方法得到线程已完成状态
- poj 1251 Jungle Roads
- 【VR】Leap Motion 官网文档 LeapRecorder (Leap记录器)
- hdu 1465 不容易系列之一(递推。错排公式)
- Supesite配置错误
- 软件测试、ios中的测试概念以及步骤
- Mysql动态打开日志 show profiles详细信息
- POJ3050Hopscotch【dfs 暴搜水题】
- HDU 1863 畅通工程 (克鲁斯卡尔—最小生成树)
- hdu 3309 Roll The Cube(bfs)
- java学习之数组(二)