forked from avin2/SensorKinect
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathXnVSkeleton.h
More file actions
87 lines (76 loc) · 3.16 KB
/
Copy pathXnVSkeleton.h
File metadata and controls
87 lines (76 loc) · 3.16 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/****************************************************************************
* *
* PrimeSense Sensor 5.x Alpha *
* Copyright (C) 2011 PrimeSense Ltd. *
* *
* This file is part of PrimeSense Sensor. *
* *
* PrimeSense Sensor is free software: you can redistribute it and/or modify*
* it under the terms of the GNU Lesser General Public License as published *
* by the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* PrimeSense Sensor is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with PrimeSense Sensor. If not, see <http://www.gnu.org/licenses/>.*
* *
****************************************************************************/
#ifndef XNV_SKELETON_H
#define XNV_SKELETON_H
//---------------------------------------------------------------------------
// Includes
//---------------------------------------------------------------------------
#include <XnEE/XnVLabeledObject.h>
#include <XnEE/XnVHead.h>
#include <XnEE/XnVTorso.h>
#include <XnEE/XnVHand.h>
//---------------------------------------------------------------------------
// Types
//---------------------------------------------------------------------------
/**
* A skeleton is comprised of a head, a torso and 2 hands.
* It also holds a labeled object that describes it.
*/
class XN_EE_FW_API XnVSkeleton
{
public:
XnVSkeleton()
{}
XnVSkeleton(const XnVSkeleton& other)
{
m_Head = other.m_Head;
m_Torso = other.m_Torso;
m_RightHand = other.m_RightHand;
m_LeftHand = other.m_LeftHand;
}
const XnVHead& Head() const
{return m_Head;}
XnVHead& Head()
{return m_Head;}
const XnVTorso& Torso() const
{return m_Torso;}
XnVTorso& Torso()
{return m_Torso;}
const XnVHand& RightHand() const
{return m_RightHand;}
XnVHand& RightHand()
{return m_RightHand;}
const XnVHand& LeftHand() const
{return m_LeftHand;}
XnVHand& LeftHand()
{return m_LeftHand;}
const XnVLabeledObject& LabeledObject() const
{return m_LabeledObject;}
XnVLabeledObject& LabeledObject()
{return m_LabeledObject;}
private:
XnVHead m_Head;
XnVTorso m_Torso;
XnVHand m_RightHand, m_LeftHand;
XnVLabeledObject m_LabeledObject;
};
#endif // XNV_SKELETON_H