Revision 31580 branches/gvSIG_19_ext3D_osgVP_2_2_0/libraries/lib3DMap/src/org/gvsig/gvsig3d/cacheservices/VectorCacheService.java
VectorCacheService.java | ||
---|---|---|
67 | 67 |
|
68 | 68 |
public class VectorCacheService extends CacheService { |
69 | 69 |
|
70 |
private IViewerContainer _canvas3D;
|
|
71 |
private TerrainViewer _terrainViewer;
|
|
72 |
private Terrain _terrain;
|
|
73 |
private Extent _extent;
|
|
74 |
private Rectangle2D _lyrExtentRect;
|
|
75 |
private FLayer _layer;
|
|
76 |
private IProjection _viewProj;
|
|
70 |
private IViewerContainer _canvas3D; |
|
71 |
private TerrainViewer _terrainViewer; |
|
72 |
private Terrain _terrain; |
|
73 |
private Extent _extent; |
|
74 |
private Rectangle2D _lyrExtentRect; |
|
75 |
private FLayer _layer; |
|
76 |
private IProjection _viewProj; |
|
77 | 77 |
// vector caching for libJOSG |
78 |
private Group _layerNode;
|
|
79 |
private Node _currentNode;
|
|
80 |
private int _currentGeomType;
|
|
81 |
private List<ILabel3D> _labels;
|
|
82 |
private float _heigth = 5000;
|
|
83 |
private int _fontSize = 14;
|
|
84 |
private int _n = 0;
|
|
78 |
private Group _layerNode; |
|
79 |
private Node _currentNode; |
|
80 |
private int _currentGeomType; |
|
81 |
private List<ILabel3D> _labels; |
|
82 |
private float _heigth = 5000; |
|
83 |
private int _fontSize = 14; |
|
84 |
private int _n = 0; |
|
85 | 85 |
// Create a hash table |
86 |
private int _option;
|
|
87 |
private boolean _primera = true;
|
|
88 |
private static Logger _logger = Logger.getLogger(VectorCacheService.class
|
|
86 |
private int _option; |
|
87 |
private boolean _primera = true; |
|
88 |
private static Logger _logger = Logger.getLogger(VectorCacheService.class |
|
89 | 89 |
.getName()); |
90 | 90 |
protected int _layermode; |
91 | 91 |
|
... | ... | |
301 | 301 |
|
302 | 302 |
Symbol3DVisitor sv = new Symbol3DVisitor(); |
303 | 303 |
Node root = new Group(); |
304 |
|
|
305 | 304 |
|
306 | 305 |
System.err.println("new Draw"); |
307 | 306 |
FLyrVect fLyrVect = (FLyrVect) _layer; |
... | ... | |
339 | 338 |
String[] usetFields = labelStrategy.getUsedFields(); |
340 | 339 |
} |
341 | 340 |
ReadableVectorial source = fLyrVect.getSource(); |
342 |
|
|
343 |
|
|
344 |
root = Symbology3DFactory.getNodeSymbol(_layer, source, fieldList.toArray(new String[fieldList.size()]), _viewProj, legend, _terrain); |
|
345 |
|
|
346 |
|
|
347 |
try { |
|
348 |
this._layerNode.addChild(root); |
|
349 |
} catch (NodeException e) { |
|
350 |
// TODO Auto-generated catch block |
|
351 |
e.printStackTrace(); |
|
352 |
} |
|
353 | 341 |
|
342 |
root = Symbology3DFactory.getNodeSymbol(_layer, source, fieldList |
|
343 |
.toArray(new String[fieldList.size()]), _viewProj, legend, |
|
344 |
_terrain); |
|
354 | 345 |
|
346 |
try { |
|
347 |
this._layerNode.addChild(root); |
|
348 |
} catch (NodeException e) { |
|
349 |
// TODO Auto-generated catch block |
|
350 |
e.printStackTrace(); |
|
351 |
} |
|
352 |
|
|
355 | 353 |
} catch (ReadDriverException e) { |
356 | 354 |
// TODO Auto-generated catch block |
357 | 355 |
e.printStackTrace(); |
Also available in: Unified diff