public static class B3DModel.Node<K extends B3DModel.IKind<K>>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private B3DModel.Animation |
animation |
private K |
kind |
private java.lang.String |
name |
private com.google.common.collect.ImmutableMap<java.lang.String,B3DModel.Node<?>> |
nodes |
private B3DModel.Node<? extends B3DModel.IKind<?>> |
parent |
private Vector3f |
pos |
private Quaternion |
rot |
private Vector3f |
scale |
Constructor and Description |
---|
Node(java.lang.String name,
Vector3f pos,
Vector3f scale,
Quaternion rot,
java.util.List<B3DModel.Node<?>> nodes,
K kind) |
Modifier and Type | Method and Description |
---|---|
private com.google.common.collect.ImmutableMap<java.lang.String,B3DModel.Node<?>> |
buildNodeMap(java.util.List<B3DModel.Node<?>> nodes) |
static <K extends B3DModel.IKind<K>> |
create(java.lang.String name,
Vector3f pos,
Vector3f scale,
Quaternion rot,
java.util.List<B3DModel.Node<?>> nodes,
K kind) |
B3DModel.Animation |
getAnimation() |
K |
getKind() |
java.lang.String |
getName() |
com.google.common.collect.ImmutableMap<java.lang.String,B3DModel.Node<?>> |
getNodes() |
B3DModel.Node<? extends B3DModel.IKind<?>> |
getParent() |
Vector3f |
getPos() |
Quaternion |
getRot() |
Vector3f |
getScale() |
void |
setAnimation(B3DModel.Animation animation) |
void |
setAnimation(org.apache.commons.lang3.tuple.Triple<java.lang.Integer,java.lang.Integer,java.lang.Float> animData,
com.google.common.collect.Table<java.lang.Integer,java.util.Optional<B3DModel.Node<?>>,B3DModel.Key> keyData) |
void |
setParent(B3DModel.Node<? extends B3DModel.IKind<?>> parent) |
java.lang.String |
toString() |
private final java.lang.String name
private final Vector3f pos
private final Vector3f scale
private final Quaternion rot
private final com.google.common.collect.ImmutableMap<java.lang.String,B3DModel.Node<?>> nodes
@Nullable private B3DModel.Animation animation
private final K extends B3DModel.IKind<K> kind
@Nullable private B3DModel.Node<? extends B3DModel.IKind<?>> parent
public Node(java.lang.String name, Vector3f pos, Vector3f scale, Quaternion rot, java.util.List<B3DModel.Node<?>> nodes, K kind)
public static <K extends B3DModel.IKind<K>> B3DModel.Node<K> create(java.lang.String name, Vector3f pos, Vector3f scale, Quaternion rot, java.util.List<B3DModel.Node<?>> nodes, K kind)
public void setAnimation(B3DModel.Animation animation)
public void setAnimation(org.apache.commons.lang3.tuple.Triple<java.lang.Integer,java.lang.Integer,java.lang.Float> animData, com.google.common.collect.Table<java.lang.Integer,java.util.Optional<B3DModel.Node<?>>,B3DModel.Key> keyData)
private com.google.common.collect.ImmutableMap<java.lang.String,B3DModel.Node<?>> buildNodeMap(java.util.List<B3DModel.Node<?>> nodes)
public java.lang.String getName()
public K getKind()
public Vector3f getPos()
public Vector3f getScale()
public Quaternion getRot()
public com.google.common.collect.ImmutableMap<java.lang.String,B3DModel.Node<?>> getNodes()
@Nullable public B3DModel.Animation getAnimation()
@Nullable public B3DModel.Node<? extends B3DModel.IKind<?>> getParent()
public void setParent(B3DModel.Node<? extends B3DModel.IKind<?>> parent)
public java.lang.String toString()
toString
in class java.lang.Object