Revision 482

View differences:

2.1/trunk/doc/dt-visor-3d.rst
368 368

  
369 369
  Si esta añadido, elimina el componente que representa las escala  del componente ``WorldWind`` si esta añadido.
370 370

  
371
* isAtmosphereVisible(): boolean
372

  
373
  Obtiene si esta visible o no la capa que representa la Atmosfera.
374
    
375
* isMinimapVisible(): boolean
376

  
377
  Obtiene si esta visible o no el Minimapa.
378
    
379
* isNorthIndicatorVisible(): boolean
380

  
381
  Obtiene si esta visible o no el indicador del Norte.
382
    
383
* isStartBackgroundVisible(): boolean
384

  
385
  Obtiene si esta visible o no el fondo de estrellas.
386
    
387
* isScaleVisible(): boolean
388

  
389
  Obtiene si esta visible o no la escala.
390

  
371 391
DefaultTiledImageLayer
372 392
________________________
373 393

  
......
672 692

  
673 693
  Método ejecutado al abrir el panel de propiedades. Debe de obtener el modelo a partir de la capa y actualizar los campos del panel.
674 694

  
695
Preferencias 3D de vista
696
________________________
675 697

  
698

  
699

  
700

  
701

  
676 702
Persistencia
677 703
~~~~~~~~~~~~~~~~~~~~~~
678 704

  
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/MapControl3D.java
167 167
     * @see MapControl3D#showStarBackgroundLayer()
168 168
     */
169 169
    public void hideStarBackground();
170
    
171
    /**
172
     * Gets if Atmosphere is visible or not.
173
     * 
174
     * @return
175
     */
176
    public boolean isAtmosphereVisible();
177
    
178
    /**
179
     * Gets if Minimap is visible or not.
180
     * 
181
     * @return
182
     */
183
    public boolean isMinimapVisible();
184
    
185
    /**
186
     * Gets if North indicator is visible or not.
187
     * 
188
     * @return
189
     */
190
    public boolean isNorthIndicatorVisible();
191
    
192
    /**
193
     * Gets if Star background is visible or not.
194
     * 
195
     * @return
196
     */
197
    public boolean isStartBackgroundVisible();
198
    
199
    /**
200
     * Gets if Scale is visible or not.
201
     * 
202
     * @return
203
     */
204
    public boolean isScaleVisible();
170 205

  
171 206
    /**
172 207
     * Forces reload all layers of <code>MapContext</code> associted.
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.impl/src/main/java/org/gvsig/view3d/swing/impl/DefaultMapControl3D.java
468 468
            observableHelper.deleteObservers();
469 469
        }
470 470
    }
471

  
472
    public boolean isAtmosphereVisible() {
473
        LayerList layerList = getWwd().getModel().getLayers();
474
        if (isAlreadyAdded(layerList, SkyGradientLayer.class)
475
            || isAlreadyAdded(layerList, SkyColorLayer.class)) {
476
            return true;
477
        }
478
        return false;
479
    }
480

  
481
    public boolean isMinimapVisible() {
482
        LayerList layerList = getWwd().getModel().getLayers();
483
        if (isAlreadyAdded(layerList, WorldMapLayer.class)) {
484
            return true;
485
        }
486
        return false;
487
    }
488

  
489
    public boolean isNorthIndicatorVisible() {
490
        LayerList layerList = getWwd().getModel().getLayers();
491
        if (isAlreadyAdded(layerList, CompassLayer.class)) {
492
            return true;
493
        }
494
        return false;
495
    }
496
    
497
    public boolean isStartBackgroundVisible(){
498
        LayerList layerList = getWwd().getModel().getLayers();
499
        if (isAlreadyAdded(layerList, StarsLayer.class)) {
500
            return true;
501
        }
502
        return false;
503
    }
504

  
505
    public boolean isScaleVisible() {
506
        LayerList layerList = getWwd().getModel().getLayers();
507
        if (isAlreadyAdded(layerList, ScalebarLayer.class)) {
508
            return true;
509
        }
510
        return false;
511
    }
471 512
}

Also available in: Unified diff