public class GGKinect
extends ch.aplu.kinect.Kinect
Modifier and Type | Class and Description |
---|---|
static class |
GGKinect.DecorationStyle
Enumeration for the style of the native video window.
|
Constructor and Description |
---|
GGKinect(java.lang.String dllPath,
java.lang.String title,
int ulx,
int uly,
int width,
int height,
GGKinect.DecorationStyle style)
Creates a abstraction of the Kinect device.
|
GGKinect(java.lang.String dllPath,
java.lang.String title,
int ulx,
int uly,
int width,
int height,
GGKinect.DecorationStyle style,
int audioBufferSize)
Creates a abstraction of the Kinect device.
|
Modifier and Type | Method and Description |
---|---|
void |
drawJoints(ch.aplu.jgamegrid.GameGrid gg,
ch.aplu.kinect.Point3D[] joints,
int radius,
java.awt.Color color)
Draws the given skeleton joints as colored circle of given size.
|
void |
drawJoints(ch.aplu.jgamegrid.GameGrid gg,
ch.aplu.kinect.Point3D[] joints,
int radius,
java.awt.Color color,
double zDark,
double zBright)
Draws the given skeleton joints as colored circle of given size.
|
void |
drawSegments(ch.aplu.jgamegrid.GameGrid gg,
ch.aplu.kinect.Point3D[] joints,
int lineWidth,
java.awt.Color color,
ch.aplu.kinect.SkeletonJoint... connectedJoints)
Draws a connection of the given skeleton joints as colored lines.
|
void |
drawSkeleton(ch.aplu.jgamegrid.GameGrid gg,
ch.aplu.kinect.Point3D[] joints,
int lineWidth,
java.awt.Color color)
Draws all corresponding segments of the give skeleton joints as colored lines.
|
addCloseListener, addSoundLevelListener, delay, doBMPSnapShot, doGIFSnapShot, doJPGSnapShot, doPNGSnapShot, enableClose, enableSoundDirection, getCameraElevationAngle, getCameraMaximumElevationAngle, getCameraMinimumElevationAngle, getImage, getJoints, getLoadedDllName, getNativeHandler, getSoundDirection, getSoundLevel, getSystemMetrics, getVersion, is64bit, isInitialized, setCameraElevationAngle, setTitle, setVisible, setWindowScaleFactor
public GGKinect(java.lang.String dllPath, java.lang.String title, int ulx, int uly, int width, int height, GGKinect.DecorationStyle style)
dllPath
- the path to the native library DLL. Provide either the full
path (Drive:/Directory/Filename) or the DLL name without extension.
In the latter case, the DLL is searched in the Windows system path.title
- the title of in the native window title barulx
- the native window upper left x-coordinate (in pixels)uly
- the native window upper left y-coordinate (in pixels)width
- the width of the native windowheight
- the height of the windowstyle
- one of the enumerations in DecorationStylepublic GGKinect(java.lang.String dllPath, java.lang.String title, int ulx, int uly, int width, int height, GGKinect.DecorationStyle style, int audioBufferSize)
dllPath
- the path to the native library DLL. Provide either the full
path (Drive:/Directory/Filename) or the DLL name without extension.
In the latter case, the DLL is searched in the Windows system pathtitle
- the title of in the native window title barulx
- the native window upper left x-coordinate (in pixels)uly
- the native window upper left y-coordinate (in pixels)width
- the width of the native windowheight
- the height of the windowstyle
- one of the enumarations in DecorationStyleaudioBufferSize
- if greater than zero, the microphone array
is enabled for sound level detectionpublic void drawJoints(ch.aplu.jgamegrid.GameGrid gg, ch.aplu.kinect.Point3D[] joints, int radius, java.awt.Color color)
gg
- the GameGrid reference where the skeletal joints are drawnjoints
- the Point3D array of all joints of the skeletonradius
- the radius of the filled circles (in pixels)color
- the color of the filled circlespublic void drawJoints(ch.aplu.jgamegrid.GameGrid gg, ch.aplu.kinect.Point3D[] joints, int radius, java.awt.Color color, double zDark, double zBright)
gg
- the GameGrid reference where the skeletal joints are drawnjoints
- the Point3D array of all joints of the skeletonradius
- the radius of the filled circles (in pixels)color
- the color of the filled circles that determines the hue (color shade)zDark
- the distance from the camera where the intensity is 0 (in mm)zBright
- the distance from the camera where the intensity is a maximum (in mm)public void drawSegments(ch.aplu.jgamegrid.GameGrid gg, ch.aplu.kinect.Point3D[] joints, int lineWidth, java.awt.Color color, ch.aplu.kinect.SkeletonJoint... connectedJoints)
gg
- the GameGrid reference where the skeletal segments are drawnjoints
- the Point3D array of all joints of the skeleton
(the joints are not shown, the distance to the camera is not used).lineWidth
- the line width (in pixels)color
- the color of the linesconnectedJoints
- the SkeletonJoints to be connect by linespublic void drawSkeleton(ch.aplu.jgamegrid.GameGrid gg, ch.aplu.kinect.Point3D[] joints, int lineWidth, java.awt.Color color)
gg
- the GameGrid reference where the skeleton is drawnjoints
- the Point3D array of all joints of the skeleton
(the joints are not shown, the distance to the camera is not used).lineWidth
- the line width (in pixels)color
- the color of the lines