摘要: 简要说明(由于本人英语水平真的很烂,文里漏洞百出,欢迎批评指正)点击查看原文DeviceList类代表了设备对象列表。继承:Leap::Interface公有类型typedef ConstListIterator const_iteratorDeviceList对象的一个C++迭代器类型。公有成员函数 DeviceList& append(constDeviceList&other) 添加一个特定的DeviceList的成员到这个DeviceListconst_iterator begin() const 这个C++迭代器开始迭代DeviceList int count() c 阅读全文
posted @ 2013-10-23 15:13 Sachin 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 简要说明(由于本人英语水平真的很烂,文里漏洞百出,欢迎批评指正)点击查看原文设备类表示了一个连接的物理设备。继承 Leap::Interface公有成员函数 Device() 构造一个设备Device对象。 float distanceToBoundary(constVector&position) const 距离controller可视空间的边缘最近的距离。 float horizontalViewAngle() const 沿着设备的x轴的视角。 bool isValid() const 报告这个设备是否是有效的。 bool operator!=(constDevice& 阅读全文
posted @ 2013-10-23 11:09 Sachin 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 简要说明(由于本人英语水平真的很烂,文里漏洞百出,欢迎批评指正)点击查看原文Listener类定义了一系列回调函数,你可以在子类中复写它们,来对Leap Motion 控制器对象引发的事件做出回应。公有成员函数 Listener() 创建一个监听器Listener对象virtual void onConnect(constController&) 当controller对象连接到Leap Motion 软件并且Leap Motion 硬件插上的时候被调用,或者当这个Listener对象被添加到一个已经连接的controller对象的时候被调用。virtual void onDiscon 阅读全文
posted @ 2013-10-23 10:03 Sachin 阅读(486) 评论(0) 推荐(0) 编辑