Statistics
| Revision:

gvsig-3d / 2.1 / branches / extrusion / org.gvsig.view3d.lib / org.gvsig.view3d.lib.api / src / main / java / org / gvsig / view3d / lib / api / properties / VectorLayerProperties3D.java @ 657

History | View | Annotate | Download (2.4 KB)

1
package org.gvsig.view3d.lib.api.properties;
2

    
3
import java.awt.Color;
4

    
5
/**
6
 * This class defines the 3D properties for vector layers.s
7
 * 
8
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
9
 * @author Andrea Antonello andrea.antonello@gmail.com
10
 */
11
public interface VectorLayerProperties3D extends LayerProperties3D {
12

    
13
    public static final String DEFAULT_COLOR = "defaultColor";
14
    public static final String ELEVATION_MODE = "elevationMode";
15
    public static final String CONSTANT_HEIGHT = "constantHeight";
16

    
17
    /**
18
     * The elevation mode to use.
19
     * 
20
     * <p>
21
     * Supported modes are:
22
     * <ul>
23
     * <li>gov.nasa.worldwind.WorldWind.ABSOLUTE: if the layer has 3d
24
     * coordinates,
25
     * the coordinates are used to define the absolute elevation of
26
     * the polygon's base vertexes.</li>
27
     * <li>gov.nasa.worldwind.WorldWind.CLAMP_TO_GROUND</li>
28
     * <li>gov.nasa.worldwind.WorldWind.RELATIVE_TO_GROUND: if the layer has 3d
29
     * coordinates,
30
     * the coordinates are used as if they were heights relative to the ground.
31
     * </li>
32
     * </ul>
33
     * 
34
     * @return the elevation mode.
35
     */
36
    public int getElevationMode();
37

    
38
    /**
39
     * Set the elevationMode to use.
40
     * 
41
     * @param elevationMode
42
     * @see #getElevationMode()
43
     */
44
    public void setElevationMode(int elevationMode);
45

    
46
    /**
47
     * Getter for the default color, which is used if the style
48
     * can't be taken from the layer's legend.
49
     * 
50
     * @return the default color to use.
51
     */
52
    public Color getDefaultColor();
53

    
54
    /**
55
     * Setter for the default color for the style..
56
     * 
57
     * @param defaultColor
58
     *            the default color to use.
59
     */
60
    public void setDefaultColor(Color defaultColor);
61

    
62
    /**
63
     * Getter for the value of constant height to use either for offset or extrusion
64
     * depending of the type of loading mode.
65
     * 
66
     * <p>
67
     * This is set as a Double object, so that it can also be <code>null</code>.
68
     * if it is null, no constant value is used.
69
     * 
70
     * @return the constant height to use or <code>null</code>.
71
     */
72
    public Double getConstantHeight();
73

    
74
    /**
75
     * Setter for the constant height to use  for offset or extrusion
76
     * depending of the type of loading mode.
77
     * 
78
     * @param constantHeight
79
     *            the constant height to use.
80
     */
81
    public void setConstantHeight(Double constantHeight);
82

    
83
}