All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.onemillionworlds.tamarin.debug.HandDebugItems Maven / Gradle / Ivy

There is a newer version: 2.6.1
Show newest version
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