]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.proconf.g3d/src/org/simantics/proconf/g3d/animation/Animatable.java
d692afc51e010317d323671cf3f2219c28229c1c
[simantics/3d.git] / org.simantics.proconf.g3d / src / org / simantics / proconf / g3d / animation / Animatable.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 org.simantics.db.Graph;\r
14 import org.simantics.db.Resource;\r
15 \r
16 \r
17 /**\r
18  * \r
19  * TODO : multiple animations\r
20  * TODO : remove setRandomAnimation\r
21  * \r
22  * @author Marko Luukkainen\r
23  *\r
24  */\r
25 public interface Animatable {\r
26     \r
27     /**\r
28      * Sets used animation\r
29      * @param animation\r
30      */\r
31     public boolean setAnimation(Graph graph, Resource animation);\r
32     \r
33     /**\r
34      * Updates animation\r
35      * @param delta\r
36      */\r
37     public void animate(double delta, double frameTime);\r
38     \r
39     /**\r
40      * Sets random animation\r
41      * (Testing purposes)\r
42      */\r
43     public boolean setRandomAnimation(Graph graph);\r
44 \r
45 }\r