Revision 23595 trunk/libraries/libAnimation3D/src/main/java/com/iver/cit/gvsig/animation/interpolator/Interpolator3DFlat.java
Interpolator3DFlat.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
2 |
* |
|
3 |
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana. |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
18 |
*/ |
|
1 | 19 |
package com.iver.cit.gvsig.animation.interpolator; |
2 | 20 |
|
3 | 21 |
import java.util.List; |
... | ... | |
18 | 36 |
private String description = "Interpolaci?n basada en encuadres"; |
19 | 37 |
private String name = "Interpolator3DFlat"; |
20 | 38 |
|
21 |
public IKeyFrame interpolate(List kfList, int index, double time) { |
|
39 |
public IKeyFrame interpolate(List<IKeyFrame> kfList, int index, double time) {
|
|
22 | 40 |
KeyFrame3DFlat KF = new KeyFrame3DFlat(); |
23 | 41 |
|
24 | 42 |
if (kfList == null) |
... | ... | |
47 | 65 |
ProjectCamera vp1 = (ProjectCamera) kf1.getAnimatedObject(); |
48 | 66 |
ProjectCamera vp2 = (ProjectCamera) kf2.getAnimatedObject(); |
49 | 67 |
|
50 |
// ViewPort vp = view.getMapControl().getViewPort(); |
|
51 |
|
|
52 | 68 |
Camera cam1 = vp1.getCamera(); |
53 | 69 |
Camera cam2 = vp2.getCamera(); |
54 | 70 |
double time1 = kf1.getTime(); |
... | ... | |
130 | 146 |
} |
131 | 147 |
|
132 | 148 |
public void setXMLEntity(XMLEntity xml) { |
133 |
// if (xml.contains("className")) |
|
134 |
// this.className= xml.getStringProperty("className"); |
|
135 | 149 |
if (xml.contains("description")) |
136 | 150 |
this.description = xml.getStringProperty("description"); |
137 | 151 |
|
Also available in: Unified diff