Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.geometry / org.gvsig.fmap.geometry.impl / src / main / java / org / gvsig / fmap / geom / primitive / impl / Surface2DZ.java @ 40559

History | View | Annotate | Download (2.35 KB)

1 40559 jjdelcerro
/**
2
 * gvSIG. Desktop Geographic Information System.
3 40435 jjdelcerro
 *
4 40559 jjdelcerro
 * Copyright (C) 2007-2013 gvSIG Association.
5 40435 jjdelcerro
 *
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 40559 jjdelcerro
 * as published by the Free Software Foundation; either version 3
9 40435 jjdelcerro
 * 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 40559 jjdelcerro
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20 40435 jjdelcerro
 *
21 40559 jjdelcerro
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23 40435 jjdelcerro
 */
24
package org.gvsig.fmap.geom.primitive.impl;
25
26
import org.cresques.cts.IProjection;
27
28
import org.gvsig.fmap.geom.Geometry;
29
import org.gvsig.fmap.geom.primitive.FShape;
30
import org.gvsig.fmap.geom.primitive.GeneralPathX;
31
import org.gvsig.fmap.geom.primitive.Surface;
32
import org.gvsig.fmap.geom.type.GeometryType;
33
34
35
/**
36
 * Polilinea 3D.
37
 *
38
 * @author Vicente Caballero Navarro
39
 */
40
public class Surface2DZ extends Surface2D implements Surface {
41
        private static final long serialVersionUID = 1L;
42
43
        /**
44
         * The constructor with the GeometryType like and argument
45
         * is used by the {@link GeometryType}{@link #create()}
46
         * to create the geometry
47
         * @param type
48
         * The geometry type
49
         */
50
        public Surface2DZ(GeometryType geometryType) {
51
                super(geometryType);
52
        }
53
54
        /**
55
         * Constructor used in the {@link Geometry#cloneGeometry()} method
56
         * @param id
57
         * @param projection
58
         * @param gpx
59
         * @param pZ
60
         */
61
        Surface2DZ(GeometryType geometryType, String id, IProjection projection, GeneralPathX gpx) {
62
                super(geometryType, id, projection, gpx);
63
        }
64
65
        /**
66
         * Clona FPolygon3D.
67
         *
68
         * @return FShape clonado.
69
         */
70
        public FShape cloneFShape() {
71
                return new Surface2DZ(getGeometryType(), id, projection, (GeneralPathX) gp.clone());
72
        }
73
74
        /*
75
         * (non-Javadoc)
76
         * @see org.gvsig.fmap.geom.primitive.impl.Surface2D#getShapeType()
77
         */
78
        public int getShapeType() {
79
                return TYPES.SURFACE;
80
        }
81
82
    public int getDimension() {
83
        return 3;
84
    }
85
}