|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSimpleOpenNI.ContextWrapper
SimpleOpenNI.SimpleOpenNI
public class SimpleOpenNI
Field Summary |
---|
Constructor Summary | |
---|---|
SimpleOpenNI(PApplet parent)
Creates the OpenNI context ands inits the modules |
|
SimpleOpenNI(PApplet parent,
int runMode)
Creates the OpenNI context ands inits the modules |
|
SimpleOpenNI(PApplet parent,
java.lang.String initXMLFile)
Creates the OpenNI context ands inits the modules |
|
SimpleOpenNI(PApplet parent,
java.lang.String initXMLFile,
int runMode)
Creates the OpenNI context ands inits the modules |
Method Summary | |
---|---|
void |
convertProjectiveToRealWorld(PVector proj,
PVector world)
|
void |
convertRealWorldToProjective(PVector world,
PVector proj)
|
PImage |
depthImage()
|
int[] |
depthMap()
|
PVector[] |
depthMapRealWorld()
|
void |
dispose()
|
void |
drawCamFrustum()
|
void |
drawLimb(int userId,
int joint1,
int joint2)
Draws a limb from joint1 to joint2 |
boolean |
enableDepth()
Enable the depthMap data collection |
boolean |
enableDepth(int width,
int height,
int fps)
Enable the depthMap data collection |
boolean |
enableGesture()
Enable gesture |
boolean |
enableHands()
Enable hands |
boolean |
enableIR()
Enable the irMap data collection ir is only available if there is no rgbImage activated at the same time |
boolean |
enableIR(int width,
int height,
int fps)
Enable the irMap data collection ir is only available if there is no rgbImage activated at the same time |
boolean |
enableRecorder(int recordMedium,
java.lang.String filePath)
Enable recorder |
boolean |
enableRGB()
Enable the camera image collection |
boolean |
enableRGB(int width,
int height,
int fps)
Enable the camera image collection |
boolean |
enableScene()
Enable the scene data collection |
boolean |
enableScene(int width,
int height,
int fps)
Enable the scene data collection |
boolean |
enableUser(int flags)
Enable user |
void |
finalize()
|
boolean |
getCoM(int user,
PVector com)
|
float |
getJointOrientationSkeleton(int userId,
int joint,
PMatrix3D jointOrientation)
gets the orientation of a joint |
float |
getJointPositionSkeleton(int userId,
int joint,
PVector jointPos)
gets the coordinates of a joint |
static java.lang.reflect.Method |
getMethodRef(java.lang.Object obj,
java.lang.String methodName,
java.lang.Class[] paraList)
|
void |
getSceneFloor(PVector point,
PVector normal)
|
int[] |
getUsersPixels(int user)
|
PImage |
irImage()
|
boolean |
loadCalibrationDataSkeleton(int user,
java.lang.String calibrationFile)
|
boolean |
openFileRecording(java.lang.String filePath)
Enable the player |
PImage |
rgbImage()
|
boolean |
saveCalibrationDataSkeleton(int user,
java.lang.String calibrationFile)
|
PImage |
sceneImage()
|
int[] |
sceneMap()
|
void |
startTrackingHands(PVector pos)
|
void |
update()
Enable the user data collection |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleOpenNI(PApplet parent)
parent
- PAppletpublic SimpleOpenNI(PApplet parent, int runMode)
parent
- PAppletrunMode
- - RunMode_Default, RunMode_SingleThreaded = Runs all in a single thread
- RunMode_MultiThreaded = Runs the openNI/NIITE in another thread than processingpublic SimpleOpenNI(PApplet parent, java.lang.String initXMLFile)
parent
- PAppletinitXMLFile
- Stringpublic SimpleOpenNI(PApplet parent, java.lang.String initXMLFile, int runMode)
parent
- PAppletinitXMLFile
- StringrunMode
- - RunMode_Default, RunMode_SingleThreaded = Runs all in a single thread
- RunMode_MultiThreaded = Runs the openNI/NIITE in another thread than processingMethod Detail |
---|
public void convertProjectiveToRealWorld(PVector proj, PVector world)
convertProjectiveToRealWorld
in class ContextWrapper
public void convertRealWorldToProjective(PVector world, PVector proj)
convertRealWorldToProjective
in class ContextWrapper
public PImage depthImage()
public int[] depthMap()
public PVector[] depthMapRealWorld()
public void dispose()
public void drawCamFrustum()
public void drawLimb(int userId, int joint1, int joint2)
userId
- intjoint1
- intjoint2
- intpublic boolean enableDepth()
enableDepth
in class ContextWrapper
public boolean enableDepth(int width, int height, int fps)
enableDepth
in class ContextWrapper
width
- intheight
- intfps
- int
public boolean enableGesture()
enableGesture
in class ContextWrapper
public boolean enableHands()
enableHands
in class ContextWrapper
public boolean enableIR()
enableIR
in class ContextWrapper
public boolean enableIR(int width, int height, int fps)
enableIR
in class ContextWrapper
width
- intheight
- intfps
- int
public boolean enableRecorder(int recordMedium, java.lang.String filePath)
enableRecorder
in class ContextWrapper
public boolean enableRGB()
enableRGB
in class ContextWrapper
public boolean enableRGB(int width, int height, int fps)
enableRGB
in class ContextWrapper
width
- intheight
- intfps
- int
public boolean enableScene()
enableScene
in class ContextWrapper
public boolean enableScene(int width, int height, int fps)
enableScene
in class ContextWrapper
width
- intheight
- intfps
- int
public boolean enableUser(int flags)
enableUser
in class ContextWrapper
public void finalize()
public boolean getCoM(int user, PVector com)
getCoM
in class ContextWrapper
public float getJointOrientationSkeleton(int userId, int joint, PMatrix3D jointOrientation)
userId
- intjoint
- intjointOrientation
- PMatrix3D
public float getJointPositionSkeleton(int userId, int joint, PVector jointPos)
userId
- intjoint
- intjointPos
- PVector
public static java.lang.reflect.Method getMethodRef(java.lang.Object obj, java.lang.String methodName, java.lang.Class[] paraList)
public void getSceneFloor(PVector point, PVector normal)
getSceneFloor
in class ContextWrapper
public int[] getUsersPixels(int user)
public PImage irImage()
public boolean loadCalibrationDataSkeleton(int user, java.lang.String calibrationFile)
loadCalibrationDataSkeleton
in class ContextWrapper
public boolean openFileRecording(java.lang.String filePath)
openFileRecording
in class ContextWrapper
public PImage rgbImage()
public boolean saveCalibrationDataSkeleton(int user, java.lang.String calibrationFile)
saveCalibrationDataSkeleton
in class ContextWrapper
public PImage sceneImage()
public int[] sceneMap()
public void startTrackingHands(PVector pos)
startTrackingHands
in class ContextWrapper
public void update()
update
in class ContextWrapper
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |