ofDocsdocumentation addons ofxKinect ofxKinectContext

ofxKinectContext


buildDeviceList( )

void buildDeviceList()

(re)build the list of devices


clear( )

void clear()

clear the freenect context closes all currently connected devices


close( ... )

void close(ofxKinect &kinect)

close a kinect device


closeAll( )

void closeAll()

closes all currently connected kinects


getContext( )

freenect_context * getContext()

get the raw pointer


getDeviceIndex( ... )

int getDeviceIndex(int id)

get the deviceList index from an id returns -1 if not found


getDeviceIndex( ... )

int getDeviceIndex(string serial)

get the deviceList index from an id returns -1 if not found


getKinect( ... )

ofxKinect * getKinect(freenect_device *dev)

get the kinect object from a device pointer returns NULL if not found


init( )

bool init()

init the freenect context


isConnected( ... )

bool isConnected(int id)

is a device with this id already connected?


isConnected( ... )

bool isConnected(string serial)

is a device with this serial already connected?


isInited( )

bool isInited()

is the context inited?


listDevices( ... )

void listDevices(bool verbose=false)

print the device list


nextAvailableId( )

int nextAvailableId()

get the id of the next available device, returns -1 if nothing found


nextAvailableSerial( )

string nextAvailableSerial()

get the serial number of the next available device, returns an empty string "" if nothing found


numAvailable( )

int numAvailable()

get the number of available devices (not connected)


numConnected( )

int numConnected()

get the number of currently connected devices


numTotal( )

int numTotal()

get the total number of devices


ofxKinectContext( )

ofxKinectContext()

open( ... )

bool open(ofxKinect &kinect, int id=-1)

open a kinect device an id of -1 will open the first available


open( ... )

bool open(ofxKinect &kinect, string serial)

open a kinect device by it's unique serial number


~ofxKinectContext( )

~ofxKinectContext()