com.primesense.nite
Enum JointType
java.lang.Object
java.lang.Enum<JointType>
com.primesense.nite.JointType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<JointType>
public enum JointType
- extends java.lang.Enum<JointType>
Provides string names values for all joint type codes.
Method Summary |
static JointType |
fromNative(int value)
|
int |
toNative()
|
static JointType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static JointType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
HEAD
public static final JointType HEAD
NECK
public static final JointType NECK
LEFT_SHOULDER
public static final JointType LEFT_SHOULDER
RIGHT_SHOULDER
public static final JointType RIGHT_SHOULDER
LEFT_ELBOW
public static final JointType LEFT_ELBOW
RIGHT_ELBOW
public static final JointType RIGHT_ELBOW
LEFT_HAND
public static final JointType LEFT_HAND
RIGHT_HAND
public static final JointType RIGHT_HAND
TORSO
public static final JointType TORSO
LEFT_HIP
public static final JointType LEFT_HIP
RIGHT_HIP
public static final JointType RIGHT_HIP
LEFT_KNEE
public static final JointType LEFT_KNEE
RIGHT_KNEE
public static final JointType RIGHT_KNEE
LEFT_FOOT
public static final JointType LEFT_FOOT
RIGHT_FOOT
public static final JointType RIGHT_FOOT
values
public static JointType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (JointType c : JointType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static JointType valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
toNative
public int toNative()
fromNative
public static JointType fromNative(int value)