@@ -0,0 +1,1677 @@
+package com.haxademic.core.hardware.depthcamera.ar;%0A%0Aimport java.util.ArrayList;%0A%0Aimport com.haxademic.core.hardware.depthcamera.ar.ArObjectBase;%0Aimport com.haxademic.core.hardware.depthcamera.ar.IArElement;%0A%0Aimport KinectPV2.KJoint;%0Aimport processing.core.PGraphics;%0A%0Apublic class ArElementCompoundBase %0Aextends ArObjectBase%0Aimplements IArElement %7B%0A%0A%09protected ArrayList%3CIArElement%3E elements = new ArrayList%3CIArElement%3E();%0A%0A%09public ArElementCompoundBase() %7B%0A%09%09super(1, BodyTrackType.CUSTOM);%0A%09%7D%0A%09%0A%09/////////////////////////////////////////%0A%09// Pass-through to children%0A%09/////////////////////////////////////////%0A%09%0A%09public IArElement setJoints(KJoint%5B%5D joints2d, KJoint%5B%5D joints3d) %7B%0A%09%09for (int i = 0; i %3C elements.size(); i++) %7B%0A%09%09%09elements.get(i).setJoints(joints2d, joints3d);%0A%09%09%7D%0A%09%09return this;%0A%09%7D%0A%0A%09public IArElement setScale(float scale) %7B%0A%09%09for (int i = 0; i %3C elements.size(); i++) %7B%0A%09%09%09elements.get(i).setScale(scale);%0A%09%09%7D%0A%09%09return this;%0A%09%7D%0A%09%0A%09public IArElement setBaseScale(float scale) %7B%0A%09%09for (int i = 0; i %3C elements.size(); i++) %7B%0A%09%09%09elements.get(i).setBaseScale(scale);%0A%09%09%7D%0A%09%09return this;%0A%09%7D%0A%09%0A%09public void updatePre(PGraphics pg) %7B%0A%09%09for (int i = 0; i %3C elements.size(); i++) %7B%0A%09%09%09elements.get(i).updatePre(pg);%0A%09%09%7D%0A%09%7D%0A%0A%09public boolean isActive() %7B%0A%09%09return elements.get(0).isActive();%0A%09%7D%0A%09%0A%09/////////////////////////////////////////%0A%09// Customized behavior%0A%09/////////////////////////////////////////%0A%09%0A%09public void draw(PGraphics pg) %7B%0A%09%09for (int i = 0; i %3C elements.size(); i++) %7B%0A%09%09%09elements.get(i).draw(pg);%0A%09%09%7D%0A%09%7D%0A%09%0A%09public void setActive(boolean isActive) %7B%0A%09%09for (int i = 0; i %3C elements.size(); i++) %7B%0A%09%09%09elements.get(i).setActive(isActive);%0A%09%09%7D%0A%09%7D%0A%09%0A%7D%0A

Create ArElementCompoundBase.java