Bowls
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Macros
Pages
Kinect.h
Go to the documentation of this file.
1
#pragma once
2
#include <Windows.h>
3
#include <NuiApi.h>
4
#include "cgg/cgg.h"
5
7
enum
TrackingPoint
8
{
9
LeftHand
,
10
RightHand
11
};
12
18
class
KinectInput
19
{
20
private
:
21
23
INuiSensor*
kinectSensor
;
25
HANDLE
nextSkeletonUpdate
;
27
bool
sitMode
;
29
NUI_SKELETON_POSITION_INDEX
selectedJoint
;
31
cgg::Vec3
handPos
;
32
37
bool
initSensor
();
38
44
void
processSkeletonData
();
45
51
void
calculateHandPos
(NUI_SKELETON_DATA);
52
56
void
kinectPosConversion
();
57
58
public
:
65
KinectInput
(
bool
,
TrackingPoint
);
66
67
~KinectInput
();
68
74
void
switchHand
(
TrackingPoint
);
75
82
bool
startTracking
();
83
90
void
update
();
91
99
cgg::Vec3
getHandPos
();
100
};
KinectInput::sitMode
bool sitMode
Whether the Kinect should look for standing or sitting skeletons.
Definition:
Kinect.h:27
KinectInput::handPos
cgg::Vec3 handPos
Current position of the selected joint.
Definition:
Kinect.h:31
KinectInput::KinectInput
KinectInput(bool, TrackingPoint)
Creates the Kinect Input Manager.
RightHand
Right Hand.
Definition:
Kinect.h:10
KinectInput::processSkeletonData
void processSkeletonData()
Processes a Skeleton.
KinectInput::calculateHandPos
void calculateHandPos(NUI_SKELETON_DATA)
Calculates the selected hands position.
KinectInput::switchHand
void switchHand(TrackingPoint)
Switch which hand the Kinect tracks.
KinectInput::kinectSensor
INuiSensor * kinectSensor
Pointer to a Kinect Sensor.
Definition:
Kinect.h:23
LeftHand
Left Hand.
Definition:
Kinect.h:9
KinectInput::nextSkeletonUpdate
HANDLE nextSkeletonUpdate
Handle that indicates when a skeleton is ready to process.
Definition:
Kinect.h:25
KinectInput::selectedJoint
NUI_SKELETON_POSITION_INDEX selectedJoint
Which joint we want the Kinect to track.
Definition:
Kinect.h:29
KinectInput::update
void update()
Update the Kinect Input Managers Internals.
KinectInput::startTracking
bool startTracking()
Start tracking skeletons.
TrackingPoint
TrackingPoint
Kinect Tracking Points.
Definition:
Kinect.h:7
KinectInput::~KinectInput
~KinectInput()
KinectInput::initSensor
bool initSensor()
Initializes the Kinect Sensor.
KinectInput::getHandPos
cgg::Vec3 getHandPos()
Get the current tracked hand position.
KinectInput::kinectPosConversion
void kinectPosConversion()
Converts the hand position to usable numbers.
KinectInput
Kinect Input Manager.
Definition:
Kinect.h:18
Kinect.h
Generated on Thu Jan 8 2015 00:55:37 for Bowls by
1.8.8