Statistics
| Revision:

gvsig-3d / 2.0 / trunk / org.gvsig.gvsig3d / org.gvsig.gvsig3d.lib / org.gvsig.gvsig3d.lib.api / src / main / java / org / gvsig / gvsig3d / map3d / MapContext3D.java @ 257

History | View | Annotate | Download (3.79 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.gvsig3d.map3d;
23

    
24
import java.awt.geom.Rectangle2D;
25

    
26
import org.cresques.cts.IProjection;
27
import org.gvsig.fmap.mapcontext.MapContext;
28
import org.gvsig.fmap.mapcontext.ViewPort;
29
import org.gvsig.fmap.mapcontext.layers.FLayer;
30
import org.gvsig.fmap.mapcontext.layers.FLayers;
31
import org.gvsig.fmap.mapcontext.layers.LayerListener;
32
import org.gvsig.fmap.mapcontext.layers.SelectionEvent;
33
import org.gvsig.fmap.mapcontext.layers.SelectionListener;
34
import org.gvsig.fmap.mapcontext.rendering.legend.events.listeners.LegendListener;
35
import org.gvsig.gvsig3d.map3d.layers.FLayers3D;
36
import org.gvsig.osgvp.core.osg.Node;
37
import org.gvsig.osgvp.terrain.DataLoader;
38
import org.gvsig.osgvp.terrain.JavaDataDriver;
39
import org.gvsig.osgvp.terrain.LayerManager;
40
import org.gvsig.osgvp.terrain.RequestDataEvent;
41
import org.gvsig.osgvp.terrain.Terrain;
42
import org.gvsig.osgvp.terrain.UpdateDataEvent;
43
import org.gvsig.osgvp.viewer.IViewerContainer;
44

    
45
/**
46
 * @author gvSIG Team
47
 * @version $Id$
48
 * 
49
 */
50
public abstract class MapContext3D extends MapContext implements DataLoader,
51
LayerListener, LegendListener, SelectionListener {
52
        
53
        public MapContext3D(){}
54
        
55
        
56
        public MapContext3D(ViewPort vp) {
57
                super(vp);
58
        }
59
        
60
        public MapContext3D(FLayers fLayers, ViewPort vp){
61
                
62
                super(fLayers, vp);
63
                
64
        }
65

    
66
        public abstract void setTerrain(Terrain terrain);
67

    
68
        public abstract Terrain getTerrain();
69

    
70
        public abstract void setDataManager(JavaDataDriver manager);
71

    
72
        public abstract JavaDataDriver getDataManager();
73

    
74
        public abstract void setLayerManager(LayerManager manager);
75

    
76
        public abstract LayerManager getLayerManager();
77

    
78
        public abstract void setViewer(IViewerContainer canvas);
79

    
80
        
81
        public abstract IViewerContainer getCanvas3d();
82

    
83
        public abstract float getVerticalExaggeration();
84

    
85
        public abstract void setVerticalExaggeration(float verticalExaggeration);
86
        
87
        public abstract IProjection getViewProjection();
88
        
89
        public abstract void setViewProjection(IProjection projection);
90

    
91
        public abstract void setLoading(boolean bLoading);        
92

    
93
        public abstract void refreshLayerInTerrain(Layer3DProps props,
94
                        boolean bRemoveCache);
95

    
96
        public abstract void addCurrentLayers();
97

    
98
        public abstract void addLayerToTerrain(FLayer layer, boolean bVerifyLegend);
99

    
100
        public abstract int computeOptimumLevel(FLayer layer, int maxLevel,
101
                        double tileSize);
102

    
103
        public abstract void zoomToExtent(Rectangle2D geoExtent);
104
                
105
        public abstract Node getSpecialNode();
106

    
107
        public abstract void selectionChanged(SelectionEvent e);
108

    
109
        public abstract void removeLayerToTerrain(FLayer layer);
110

    
111
        public abstract boolean isRenewCanvasOff();
112

    
113
        public abstract void setRenewCanvasOff(boolean renewCanvasOff);
114

    
115
        public abstract UpdateDataEvent loadData(RequestDataEvent rde);
116
        
117
        public abstract void layerMoved(FLayers3D parent, FLayer layer,
118
                        int oldPos, int newPos);
119
        
120
        public abstract void layerAdded(FLayers3D parent, FLayer layer);
121
        
122
        public abstract void layerRemoved(FLayers3D parent, FLayer layer);
123

    
124
}