-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgkinect.h
67 lines (45 loc) · 1.34 KB
/
gkinect.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef GKINECT_H
#define GKINECT_H
#include "core/reference.h"
#include "core/math/vector3.h"
#include "core/dictionary.h"
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "scene/2d/canvas_item.h"
#include "scene/gui/box_container.h"
class GKinect : public Reference {
GDCLASS(GKinect, Reference);
protected:
static void _bind_methods();
static GKinect* singleton;
public:
void initialize();
void update_joints();
Dictionary get_skeleton();
Vector3 get_joint(int p_body_id, int p_joint_id);
static GKinect* get_singleton();
GKinect();
};
class GKinectEditor : public TextureRect {
GDCLASS(GKinectEditor, TextureRect);
private:
EditorNode *editor;
static GKinectEditor *singleton;
public:
static GKinectEditor *get_singleton() { return singleton; }
void _process(float delta);
GKinectEditor(EditorNode *p_editor);
};
class GKinectEditorPlugin : public EditorPlugin {
GDCLASS(GKinectEditorPlugin, EditorPlugin);
GKinectEditor* g_kinect_editor;
EditorNode *editor;
public:
virtual String get_name() const { return "Gesture Editor"; }
bool has_main_screen() const { return true; }
virtual void make_visible(bool p_visible);
GKinectEditor *get_g_kinect_editor() { return g_kinect_editor; }
GKinectEditorPlugin(EditorNode *p_node);
~GKinectEditorPlugin();
};
#endif