Vuo 2.4.4
Loading...
Searching...
No Matches
VuoLeapFrame.c
Go to the documentation of this file.
1
10#include "VuoLeapFrame.h"
11#include "VuoText.h"
12
14#ifdef VUO_COMPILER
16 "title" : "Leap Frame",
17 "description" : "Frame of Leap Motion data.",
18 "keywords" : ["gesture", "controller", "motion", "hand", "finger"],
19 "version" : "1.0.0",
20 "dependencies" : [
21 "VuoInteger",
22 "VuoLeapHand",
23 "VuoLeapPointable",
24 "VuoText",
25 "VuoList_VuoLeapHand",
26 "VuoList_VuoLeapPointable"
27 ]
28 });
29#endif
31
43{
44 return (VuoLeapFrame){
48 };
49}
50
55json_object * VuoLeapFrame_getJson(const VuoLeapFrame value)
56{
57 json_object *js = json_object_new_object();
58 json_object_object_add(js, "id", VuoInteger_getJson(value.id));
59 json_object_object_add(js, "hands", VuoList_VuoLeapHand_getJson(value.hands));
60 json_object_object_add(js, "pointables", VuoList_VuoLeapPointable_getJson(value.pointables));
61 return js;
62}
63
69{
70 return VuoText_format("%lld", value.id);
71}
72
78{
79 VuoLeapFrame frame;
80 frame.id = id;
81 frame.pointables = pointables;
82 frame.hands = hands;
83 return frame;
84}