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 @ 331
History | View | Annotate | Download (4.21 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.events.ColorEvent; |
29 |
import org.gvsig.fmap.mapcontext.events.ExtentEvent; |
30 |
import org.gvsig.fmap.mapcontext.events.ProjectionEvent; |
31 |
import org.gvsig.fmap.mapcontext.events.listeners.ViewPortListener; |
32 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
33 |
import org.gvsig.fmap.mapcontext.layers.FLayers; |
34 |
import org.gvsig.fmap.mapcontext.layers.LayerListener; |
35 |
import org.gvsig.fmap.mapcontext.layers.SelectionEvent; |
36 |
import org.gvsig.fmap.mapcontext.layers.SelectionListener; |
37 |
import org.gvsig.fmap.mapcontext.rendering.legend.events.LegendContentsChangedListener; |
38 |
import org.gvsig.fmap.mapcontext.rendering.legend.events.listeners.LegendListener; |
39 |
import org.gvsig.gvsig3d.map3d.layers.FLayers3D; |
40 |
import org.gvsig.osgvp.core.osg.Node; |
41 |
import org.gvsig.osgvp.terrain.DataLoader; |
42 |
import org.gvsig.osgvp.terrain.JavaDataDriver; |
43 |
import org.gvsig.osgvp.terrain.LayerManager; |
44 |
import org.gvsig.osgvp.terrain.RequestDataEvent; |
45 |
import org.gvsig.osgvp.terrain.Terrain; |
46 |
import org.gvsig.osgvp.terrain.UpdateDataEvent; |
47 |
import org.gvsig.osgvp.viewer.IViewerContainer; |
48 |
|
49 |
/**
|
50 |
* @author gvSIG Team
|
51 |
* @version $Id$
|
52 |
*
|
53 |
*/
|
54 |
public abstract class MapContext3D extends MapContext implements DataLoader, |
55 |
LayerListener, LegendListener, SelectionListener, LegendContentsChangedListener { |
56 |
|
57 |
public MapContext3D(){}
|
58 |
|
59 |
|
60 |
public MapContext3D(ViewPort vp) {
|
61 |
super(vp);
|
62 |
} |
63 |
|
64 |
public MapContext3D(FLayers fLayers, ViewPort vp){
|
65 |
|
66 |
super(fLayers, vp);
|
67 |
|
68 |
} |
69 |
|
70 |
public abstract void setTerrain(Terrain terrain); |
71 |
|
72 |
public abstract Terrain getTerrain(); |
73 |
|
74 |
public abstract void setDataManager(JavaDataDriver manager); |
75 |
|
76 |
public abstract JavaDataDriver getDataManager(); |
77 |
|
78 |
public abstract void setLayerManager(LayerManager manager); |
79 |
|
80 |
public abstract LayerManager getLayerManager(); |
81 |
|
82 |
public abstract void setViewer(IViewerContainer canvas); |
83 |
|
84 |
public abstract Layer3DProps getLayer3DProps(FLayer layer); |
85 |
|
86 |
public abstract IViewerContainer getCanvas3d(); |
87 |
|
88 |
public abstract float getVerticalExaggeration(); |
89 |
|
90 |
public abstract void setVerticalExaggeration(float verticalExaggeration); |
91 |
|
92 |
public abstract IProjection getViewProjection(); |
93 |
|
94 |
public abstract void setViewProjection(IProjection projection); |
95 |
|
96 |
public abstract void setLoading(boolean bLoading); |
97 |
|
98 |
public abstract void refreshLayerInTerrain(FLayer layer, Layer3DProps props, |
99 |
boolean bRemoveCache);
|
100 |
|
101 |
public abstract void addCurrentLayers(); |
102 |
|
103 |
public abstract void addLayerToTerrain(FLayer layer, boolean bVerifyLegend); |
104 |
|
105 |
public abstract int computeOptimumLevel(FLayer layer, int maxLevel, |
106 |
double tileSize);
|
107 |
|
108 |
public abstract void zoomToEnvelope(Envelope geoEnvelope); |
109 |
|
110 |
public abstract Node getSpecialNode(); |
111 |
|
112 |
public abstract void selectionChanged(SelectionEvent e); |
113 |
|
114 |
public abstract void removeLayerToTerrain(FLayer layer); |
115 |
|
116 |
public abstract boolean isRenewCanvasOff(); |
117 |
|
118 |
public abstract void setRenewCanvasOff(boolean renewCanvasOff); |
119 |
|
120 |
public abstract UpdateDataEvent loadData(RequestDataEvent rde); |
121 |
|
122 |
public abstract void layerMoved(FLayers3D parent, FLayer layer, |
123 |
int oldPos, int newPos); |
124 |
|
125 |
public abstract void layerAdded(FLayers3D parent, FLayer layer); |
126 |
|
127 |
public abstract void layerRemoved(FLayers3D parent, FLayer layer); |
128 |
} |