Statistics
| Revision:

gvsig-3d / org.gvsig.animation3d / trunk / org.gvsig.animation3d / org.gvsig.animation3d.swing / org.gvsig.animation3d.swing.api / src / main / java / org / gvsig / animation3d / swing / api / Animation3DSwingManager.java @ 672

History | View | Annotate | Download (2.34 KB)

1
package org.gvsig.animation3d.swing.api;
2

    
3
import java.util.List;
4
import java.util.Map;
5

    
6
import org.gvsig.fmap.geom.primitive.Point;
7
import org.gvsig.fmap.mapcontext.layers.ExtendedPropertiesSupport;
8
import org.gvsig.view3d.swing.api.MapControl3D;
9

    
10
/**
11
 * 
12
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
13
 *
14
 */
15
public interface Animation3DSwingManager {
16

    
17
    /**
18
     * Creates a new {@link Frame3D}.
19
     * 
20
     * @param name
21
     * @param heading
22
     * @param pitch
23
     * @param elevation
24
     * @param position
25
     * @param zoom
26
     * @return New {@link Frame3D}.
27
     */
28
    public Frame3D createFrame3D(String name, double heading, double pitch, double elevation,
29
        Point position, double zoom);
30

    
31
    /**
32
     * 
33
     * @param name
34
     * @param mapControl3D
35
     * @return frame3d
36
     * @throws Frame3DCreationException 
37
     */
38
    public Frame3D getFrame3D(String name, MapControl3D mapControl3D) throws Frame3DCreationException;
39

    
40
    /**
41
     * Creates new instance of {@link Animation3D} with name and {@link Frame3D}
42
     * list.
43
     * 
44
     * @param name
45
     *            Name of animation
46
     * @param sphericalFrames
47
     *            List of spherical frames
48
     * @param flatFrames
49
     *            List of flat frames
50
     * @return New {@link Animation3D}.
51
     */
52
    public Animation3D createAnimation3D(String name, List<Frame3D> sphericalFrames,
53
        List<Frame3D> flatFrames);
54

    
55
    /**
56
     * Gets animations associated with the properties. If properties does not
57
     * have animations, it will be initialized with an empty list.
58
     * 
59
     * @param properties
60
     *            Properties to get animations.
61
     * @return Animations of properties.
62
     */
63
    public List<Animation3D> getAnimations(ExtendedPropertiesSupport properties);
64

    
65
    /**
66
     * Sets list animations to properties.
67
     * 
68
     * @param properties
69
     *            Properties to link with animations.
70
     * @param animations
71
     *            Animation list.
72
     */
73
    public void setAnimations(ExtendedPropertiesSupport properties, List<Animation3D> animations);
74

    
75
    /**
76
     * Creates an animation manager panel to manager view 3D animations
77
     * 
78
     * @param properties
79
     * 
80
     * @return An instance of Animation manager panel
81
     */
82
    public Animation3DPanel createAnimationManager(Map<String, ExtendedPropertiesSupport> properties);
83
}