
com.harium.etyl.animation.timeline.KeyFrame Maven / Gradle / Ivy
package com.harium.etyl.animation.timeline;
import java.util.HashMap;
import java.util.Map;
import com.harium.etyl.animation.transformation.Transform;
public class KeyFrame {
private int time = 0;
private Map transformations = new HashMap();
public KeyFrame() {
super();
}
public KeyFrame(int time) {
super();
this.time = time;
}
public int getTime() {
return time;
}
public void setTime(int time) {
this.time = time;
}
public void addRotation(T bone, int angle) {
transformations.put(bone, new Transform(angle));
}
public void addTransform(T bone, Transform transform) {
transformations.put(bone, new Transform(transform));
}
public Transform getTransformation(T bone) {
return transformations.get(bone);
}
public Map getTransformations() {
return transformations;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy