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 javax.vecmath.Vector3f |
pos |
private javax.vecmath.Quat4f |
rot |
private javax.vecmath.Vector3f |
scale |
Constructor and Description |
---|
Node(java.lang.String name,
javax.vecmath.Vector3f pos,
javax.vecmath.Vector3f scale,
javax.vecmath.Quat4f 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,
javax.vecmath.Vector3f pos,
javax.vecmath.Vector3f scale,
javax.vecmath.Quat4f 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() |
javax.vecmath.Vector3f |
getPos() |
javax.vecmath.Quat4f |
getRot() |
javax.vecmath.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 javax.vecmath.Vector3f pos
private final javax.vecmath.Vector3f scale
private final javax.vecmath.Quat4f 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, javax.vecmath.Vector3f pos, javax.vecmath.Vector3f scale, javax.vecmath.Quat4f rot, java.util.List<B3DModel.Node<?>> nodes, K kind)
public static <K extends B3DModel.IKind<K>> B3DModel.Node<K> create(java.lang.String name, javax.vecmath.Vector3f pos, javax.vecmath.Vector3f scale, javax.vecmath.Quat4f 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 javax.vecmath.Vector3f getPos()
public javax.vecmath.Vector3f getScale()
public javax.vecmath.Quat4f 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