]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.proconf.g3d/src/org/simantics/proconf/g3d/animation/Animation.java
git-svn-id: https://www.simantics.org/svn/simantics/3d/trunk@22279 ac1ea38d-2e2b...
[simantics/3d.git] / org.simantics.proconf.g3d / src / org / simantics / proconf / g3d / animation / Animation.java
1 /*******************************************************************************\r
2  * Copyright (c) 2007- VTT Technical Research Centre of Finland.\r
3  * All rights reserved. This program and the accompanying materials\r
4  * are made available under the terms of the Eclipse Public License v1.0\r
5  * which accompanies this distribution, and is available at\r
6  * http://www.eclipse.org/legal/epl-v10.html\r
7  *\r
8  * Contributors:\r
9  *     VTT Technical Research Centre of Finland - initial API and implementation\r
10  *******************************************************************************/\r
11 package org.simantics.proconf.g3d.animation;\r
12 \r
13 import java.util.ArrayList;\r
14 import java.util.List;\r
15 \r
16 public class Animation {\r
17     private List<Interpolator> interpolators = new ArrayList<Interpolator>();\r
18 \r
19 \r
20     public void addInterpolator(Interpolator i) {\r
21         interpolators.add(i);\r
22     }\r
23     \r
24     public void removeInterpolator(Interpolator i) {\r
25         interpolators.remove(i);\r
26     }\r
27     \r
28     public void interpolate(double delta) {\r
29         for (Interpolator i : interpolators) {\r
30             i.interpolate(delta);\r
31         }\r
32     }\r
33 }\r