Package com.jme3.util.struct
Class StructField<T>
java.lang.Object
com.jme3.util.struct.StructField<T>
- Direct Known Subclasses:
BooleanArrayField,BooleanField,ColorRGBAArrayField,ColorRGBAField,FloatArrayField,FloatField,IntArrayField,IntField,Matrix3fArrayField,Matrix3fField,Matrix4fArrayField,Matrix4fField,QuaternionArrayField,QuaternionField,SubStructArrayField,SubStructField,Vector2fArrayField,Vector2fField,Vector3fArrayField,Vector3fField,Vector4fArrayField,Vector4fField
A field of a struct
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClear update needed used internallyintgetDepth()Get depth of the fieldintgetGroup()Get the group to which this field belongs (eg.getName()Get simple name of the fieldintGet position inside the structgetValue()Get value of this fieldbooleanCheck if field needs updatetoString()
-
Field Details
-
value
-
isUpdateNeeded
protected boolean isUpdateNeeded
-
-
Constructor Details
-
StructField
-
-
Method Details
-
getDepth
public int getDepth()Get depth of the field- Returns:
-
getGroup
public int getGroup()Get the group to which this field belongs (eg. a parent struct)- Returns:
- id of the group
-
getPosition
public int getPosition()Get position inside the struct- Returns:
- position inside the struct
-
getValue
Get value of this field- Returns:
- value
-
isUpdateNeeded
public boolean isUpdateNeeded()Check if field needs update- Returns:
-
clearUpdateNeeded
public void clearUpdateNeeded()Clear update needed used internally -
getName
Get simple name of the field- Returns:
-
toString
-