Revision 25866
trunk/extensions/extAnimationGUI/src/com/iver/ai2/animationgui/gui/util/AnimationUtils.java | ||
---|---|---|
17 | 17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
18 | 18 |
*/ |
19 | 19 |
|
20 |
|
|
21 |
/** |
|
22 |
* @author ?ngel Fraile Gri??n e-mail: angel.fraile@iver.es |
|
23 |
* @since 1.1 |
|
24 |
* |
|
25 |
*/ |
|
26 |
|
|
20 | 27 |
package com.iver.ai2.animationgui.gui.util; |
21 | 28 |
|
22 | 29 |
import java.util.ArrayList; |
... | ... | |
77 | 84 |
project = pe.getProject(); |
78 | 85 |
} |
79 | 86 |
|
87 |
|
|
88 |
/** |
|
89 |
* Default function in movement animations 2D and 3D |
|
90 |
* |
|
91 |
* @param view: Actual view selected |
|
92 |
* @param ac: Animation container |
|
93 |
* @param prefix: Part of the tracks animation names |
|
94 |
*/ |
|
80 | 95 |
public static void captureEncuadrator(BaseView view, AnimationContainer ac, |
81 | 96 |
String prefix) { |
82 | 97 |
// snapshot pressed. |
... | ... | |
95 | 110 |
System.out.println(ac); |
96 | 111 |
|
97 | 112 |
} |
113 |
|
|
114 |
/** |
|
115 |
* Creating a animation 2D track based in time. |
|
116 |
* |
|
117 |
* @param view: Actual view selected |
|
118 |
* @param ac: Animation container |
|
119 |
* @param prefix: Part of the tracks animation names |
|
120 |
*/ |
|
98 | 121 |
|
99 | 122 |
public static void captureEncuadrator2D(View view, AnimationContainer ac, |
100 | 123 |
String prefix) { |
... | ... | |
187 | 210 |
return AnimationPrefix; |
188 | 211 |
} |
189 | 212 |
|
213 |
|
|
214 |
/** |
|
215 |
* Creating a animation 3D track based in time. |
|
216 |
* |
|
217 |
* @param view: Actual view selected |
|
218 |
* @param ac: Animation container |
|
219 |
* @param prefix: Part of the tracks animation names |
|
220 |
*/ |
|
190 | 221 |
public static void captureEncuadrator3D(View3D view, AnimationContainer ac, |
191 | 222 |
String prefix) { |
192 | 223 |
AnimationTimeTrack animationTimeTrack = null; |
... | ... | |
227 | 258 |
AKFinterval.setEndTime(1.0); |
228 | 259 |
} |
229 | 260 |
} |
230 |
// Getting the current camera position and insert it into project camera |
|
231 |
// list. |
|
261 |
// Getting the current camera position and insert it into project camera list. |
|
232 | 262 |
Camera ca = view.getCamera(); |
233 | 263 |
ProjectCamera camera = new ProjectCamera(); |
234 | 264 |
camera.setDescription(name); |
... | ... | |
423 | 453 |
|
424 | 454 |
} |
425 | 455 |
|
456 |
/** |
|
457 |
* Return a new animation document or the document where the view viewName is included |
|
458 |
* |
|
459 |
* @param viewName |
|
460 |
* @param project |
|
461 |
* @return a new or actual animation document |
|
462 |
*/ |
|
426 | 463 |
public static ProjectAnimationDocument createAnimationDocument( |
427 | 464 |
String viewName, Project project) { |
428 | 465 |
ProjectAnimationDocument pv = null; |
... | ... | |
457 | 494 |
return pv; |
458 | 495 |
} |
459 | 496 |
|
497 |
/** |
|
498 |
* Return the document indicated with the parameter name |
|
499 |
* |
|
500 |
* @param name |
|
501 |
* @param project |
|
502 |
* @return |
|
503 |
*/ |
|
460 | 504 |
public static ProjectAnimationDocument getProjectDocument(String name, |
461 | 505 |
Project project) { |
462 | 506 |
ProjectAnimationDocument pv = null; |
... | ... | |
492 | 536 |
* |
493 | 537 |
* @param name : |
494 | 538 |
* Track name. |
495 |
* @param ac : |
|
496 |
* animation container. |
|
497 |
* @param object |
|
498 |
* @return at : Return a animation track based in time. |
|
539 |
* @param ac: animation container. |
|
540 |
* @param object: animated object |
|
541 |
* @return at : Return an animation track based in time. |
|
499 | 542 |
* |
500 | 543 |
* Creating a animation track based in time. |
501 | 544 |
*/ |
... | ... | |
545 | 588 |
} |
546 | 589 |
return at; |
547 | 590 |
} |
548 |
|
|
591 |
|
|
592 |
/** |
|
593 |
* Creating a transparency animation common 2D and 3D |
|
594 |
* @param window |
|
595 |
* @param ac |
|
596 |
* @param prefix |
|
597 |
*/ |
|
598 |
|
|
549 | 599 |
public static void createLayerTransparencyAnimation(BaseView window, |
550 | 600 |
AnimationContainer ac, String prefix) { |
551 | 601 |
System.out.println("pulsado boton transparencias !!!"); |
Also available in: Unified diff