
com.onemillionworlds.tamarin.debug.HandDebugItems Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tamarin Show documentation
Show all versions of tamarin Show documentation
A VR utilities library that extends the functionality in JMonkeyEngine
package com.onemillionworlds.tamarin.debug;
import com.jme3.math.ColorRGBA;
import com.jme3.scene.Node;
import com.onemillionworlds.tamarin.vrhands.BoundHand;
import java.util.function.Function;
/**
* A list of item that are available for debugging the hand skeleton and other points
*/
public enum HandDebugItems {
SKELETON(null, null), //this one is a special case
WRIST_NODE(ColorRGBA.Blue, BoundHand::getWristNode), PALM_NODE(ColorRGBA.Brown, BoundHand::getPalmNode), INDEX_FINGER_TIP(ColorRGBA.Cyan, BoundHand::getIndexFingerTip_xPointing), HAND_NODE_X_POINTING(ColorRGBA.Pink, BoundHand::getHandNode_xPointing), PALM_PICK_POINTS(ColorRGBA.Orange, null);
final ColorRGBA colorRGBA;
final Function debugItemCreator;
public boolean isSpecialCase() {
return debugItemCreator == null;
}
private HandDebugItems(final ColorRGBA colorRGBA, final Function debugItemCreator) {
this.colorRGBA = colorRGBA;
this.debugItemCreator = debugItemCreator;
}
public ColorRGBA getColorRGBA() {
return this.colorRGBA;
}
public Function getDebugItemCreator() {
return this.debugItemCreator;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy