Inherits shahqaan.kinect.Skeletons.
|
void | draw (Graphics2D g2d) |
|
int | getXRes () |
|
int | getYRes () |
|
void | update () |
|
|
void | finalize () |
|
void | updateJoint (HashMap< SkeletonJoint, SkeletonJointPosition > skel, int userID, SkeletonJoint joint) |
|
void | updateJoint (HashMap< SkeletonJoint, SkeletonJointPosition > skel, int userID, SkeletonJoint joint) |
|
Point3D | getJointPos (HashMap< SkeletonJoint, SkeletonJointPosition > skel, SkeletonJoint j) |
|
|
UserGenerator | userGen |
|
DepthGenerator | depthGen |
|
SkeletonCapability | skelCap |
|
PoseDetectionCapability | poseDetectionCap |
|
String | calibPoseName = null |
|
HashMap< Integer, HashMap
< SkeletonJoint,
SkeletonJointPosition > > | userSkels |
|
Context | context |
|
DepthMetaData | depthMD |
|
boolean | isRunning |
|
Definition at line 14 of file ExtendedSkeletons.java.
void shahqaan.kinect.ExtendedSkeletons.draw |
( |
Graphics2D |
g2d | ) |
|
Calls AbstractDrawable.drawSkeleton() Draws on g2d
- Parameters
-
g2d | Graphics2D instance received from paint |
Definition at line 85 of file ExtendedSkeletons.java.
88 int[] userIDs = userGen.getUsers();
89 for (
int i = 0; i < userIDs.length; ++i) {
90 g2d.setColor(Color.white);
91 if (skelCap.isSkeletonCalibrating(userIDs[i])) {
94 else if (skelCap.isSkeletonTracking(userIDs[i])) {
95 drawable.
drawSkeleton(g2d, userSkels.get(userIDs[i]),
this);
145 }
catch (StatusException e) {
146 System.out.println(e);
void shahqaan.kinect.ExtendedSkeletons.finalize |
( |
| ) |
|
|
protected |
- Parameters
-
drawable | AbstractDrawable instance passed to this class |
loggable | AbstractLoggable instance passed to this class |
tracker | AbstractTracker instance passed to this class |
- Returns
- ExtendedSkeletons instance if none exists already
Definition at line 36 of file ExtendedSkeletons.java.
41 if (ExtendedSkeletons.count <= 0) {
42 ExtendedSkeletons.count++;
43 return new ExtendedSkeletons(drawable, loggable, tracker);
void shahqaan.kinect.ExtendedSkeletons.updateJoint |
( |
HashMap< SkeletonJoint, SkeletonJointPosition > |
skel, |
|
|
int |
userID, |
|
|
SkeletonJoint |
joint |
|
) |
| |
|
protected |
Logs in another thread Calls updateJoint() of Skeletons Calls tracker.track()
- Parameters
-
skel | HashMap<SkeletonJoint, SkeletonJointPosition> |
userID | int current user id |
joint | SkeletonJoint |
Definition at line 163 of file ExtendedSkeletons.java.
166 if (loggable != null) {
167 final HashMap<SkeletonJoint, SkeletonJointPosition> currentSkel =
new HashMap<>(skel);
168 final ExtendedSkeletons context =
this;
169 t =
new Thread(
new Runnable() {
172 loggable.
log(context, currentSkel);
178 super.updateJoint(skel, userID, joint);
179 this.tracker.
track(
this, skel);
180 if (loggable != null) {
185 }
catch (InterruptedException ex) {
186 Logger.getLogger(ExtendedSkeletons.class.getName()).log(Level.SEVERE, null, ex);
The documentation for this class was generated from the following file:
- D:/Documents/Projects/FYP - Computer Generated Art/Development/kinect-body-language-analysis/src/shahqaan/kinect/ExtendedSkeletons.java