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 @ 311

History | View | Annotate | Download (3.97 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 org.cresques.cts.IProjection;
25
import org.gvsig.fmap.geom.primitive.Envelope;
26
import org.gvsig.fmap.mapcontext.MapContext;
27
import org.gvsig.fmap.mapcontext.ViewPort;
28
import org.gvsig.fmap.mapcontext.layers.FLayer;
29
import org.gvsig.fmap.mapcontext.layers.FLayers;
30
import org.gvsig.fmap.mapcontext.layers.LayerListener;
31
import org.gvsig.fmap.mapcontext.layers.SelectionEvent;
32
import org.gvsig.fmap.mapcontext.layers.SelectionListener;
33
import org.gvsig.fmap.mapcontext.rendering.legend.events.LegendContentsChangedListener;
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, LegendContentsChangedListener {
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
        public abstract Layer3DProps getLayer3DProps(FLayer layer);
81
        
82
        public abstract IViewerContainer getCanvas3d();
83

    
84
        public abstract float getVerticalExaggeration();
85

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

    
92
        public abstract void setLoading(boolean bLoading);        
93

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

    
97
        public abstract void addCurrentLayers();
98

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

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

    
104
        public abstract void zoomToEnvelope(Envelope geoEnvelope);
105
                
106
        public abstract Node getSpecialNode();
107

    
108
        public abstract void selectionChanged(SelectionEvent e);
109

    
110
        public abstract void removeLayerToTerrain(FLayer layer);
111

    
112
        public abstract boolean isRenewCanvasOff();
113

    
114
        public abstract void setRenewCanvasOff(boolean renewCanvasOff);
115

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

    
125
}