class methods
Documentation from code comments
wrapper for the freenect context
do not use this directly
buildDeviceList()
void ofxKinectContext::buildDeviceList()
Documentation from code comments
(re)build the list of devices
clear()
void ofxKinectContext::clear()
Documentation from code comments
clear the freenect context closes all currently connected devices
close(...)
void ofxKinectContext::close(ofxKinect &kinect)
Documentation from code comments
close a kinect device
closeAll()
void ofxKinectContext::closeAll()
Documentation from code comments
closes all currently connected kinects
getContext()
freenect_context * ofxKinectContext::getContext()
Documentation from code comments
get the raw pointer
getDeviceIndex(...)
int ofxKinectContext::getDeviceIndex(int id)
Documentation from code comments
get the deviceList index from an id returns -1 if not found
getDeviceIndex(...)
int ofxKinectContext::getDeviceIndex(string serial)
Documentation from code comments
get the deviceList index from an id returns -1 if not found
getKinect(...)
ofxKinect * ofxKinectContext::getKinect(freenect_device *dev)
Documentation from code comments
get the kinect object from a device pointer returns NULL if not found
isConnected(...)
bool ofxKinectContext::isConnected(int id)
Documentation from code comments
is a device with this id already connected?
isConnected(...)
bool ofxKinectContext::isConnected(string serial)
Documentation from code comments
is a device with this serial already connected?
isInited()
bool ofxKinectContext::isInited()
Documentation from code comments
is the context inited?
listDevices(...)
void ofxKinectContext::listDevices(bool verbose=false)
Documentation from code comments
print the device list
nextAvailableId()
int ofxKinectContext::nextAvailableId()
Documentation from code comments
get the id of the next available device, returns -1 if nothing found
nextAvailableSerial()
string ofxKinectContext::nextAvailableSerial()
Documentation from code comments
get the serial number of the next available device, returns an empty string "" if nothing found
numAvailable()
int ofxKinectContext::numAvailable()
Documentation from code comments
get the number of available devices (not connected)
numConnected()
int ofxKinectContext::numConnected()
Documentation from code comments
get the number of currently connected devices
numTotal()
int ofxKinectContext::numTotal()
Documentation from code comments
get the total number of devices
open(...)
bool ofxKinectContext::open(ofxKinect &kinect, int id=-1)
Documentation from code comments
open a kinect device an id of -1 will open the first available
open(...)
bool ofxKinectContext::open(ofxKinect &kinect, string serial)
Documentation from code comments
open a kinect device by it's unique serial number
Last updated Tuesday, 19 November 2024 17:23:54 UTC - 2537ee49f6d46d5fe98e408849448314fd1f180e
If you have any doubt about the usage of this module you can ask in the forum.
If you want to contribute better documentation or start documenting this section you can do so here
If you find anything wrong with this docs you can report any error by opening an issue