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 / aggregate / impl / MultiSolid2DZ.java @ 40435

History | View | Annotate | Download (2.91 KB)

1
package org.gvsig.fmap.geom.aggregate.impl;
2

    
3
import org.cresques.cts.IProjection;
4
import org.gvsig.fmap.geom.aggregate.MultiSolid;
5
import org.gvsig.fmap.geom.primitive.Solid;
6
import org.gvsig.fmap.geom.primitive.impl.Solid2DZ;
7
import org.gvsig.fmap.geom.type.GeometryType;
8

    
9
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
10
 *
11
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
12
 *
13
 * This program is free software; you can redistribute it and/or
14
 * modify it under the terms of the GNU General Public License
15
 * as published by the Free Software Foundation; either version 2
16
 * of the License, or (at your option) any later version.
17
 *
18
 * This program is distributed in the hope that it will be useful,
19
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
 * GNU General Public License for more details.
22
 *
23
 * You should have received a copy of the GNU General Public License
24
 * along with this program; if not, write to the Free Software
25
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
26
 *
27
 * For more information, contact:
28
 *
29
 *  Generalitat Valenciana
30
 *   Conselleria d'Infraestructures i Transport
31
 *   Av. Blasco Ib??ez, 50
32
 *   46010 VALENCIA
33
 *   SPAIN
34
 *
35
 *      +34 963862235
36
 *   gvsig@gva.es
37
 *      www.gvsig.gva.es
38
 *
39
 *    or
40
 *
41
 *   IVER T.I. S.A
42
 *   Salamanca 50
43
 *   46005 Valencia
44
 *   Spain
45
 *
46
 *   +34 963163400
47
 *   dac@iver.es
48
 */
49
/* CVS MESSAGES:
50
 *
51
 * $Id: FMultiSolid.java,v 1.2 2008/03/25 08:47:41 cvs Exp $
52
 * $Log: FMultiSolid.java,v $
53
 * Revision 1.2  2008/03/25 08:47:41  cvs
54
 * Visitors removed
55
 *
56
 * Revision 1.1  2008/03/12 08:46:20  cvs
57
 * *** empty log message ***
58
 *
59
 *
60
 */
61
/**
62
 * @author Jorge Piera Llodr? (jorge.piera@iver.es)
63
 */
64
public class MultiSolid2DZ extends BaseMultiPrimitive implements MultiSolid {
65
        private static final long serialVersionUID = 6690458251466529134L;
66
        
67
        /**
68
         * The constructor with the GeometryType like and argument 
69
         * is used by the {@link GeometryType}{@link #create()}
70
         * to create the geometry
71
         * @param type
72
         * The geometry type
73
         */
74
        public MultiSolid2DZ(GeometryType geomType) {
75
                super(geomType);                
76
        }
77
        
78
        MultiSolid2DZ(GeometryType geomType, String id, IProjection projection) {
79
                super(geomType, id, projection);
80
        }
81

    
82
        MultiSolid2DZ(GeometryType geomType, String id, IProjection projection, Solid2DZ[] solids) {
83
                super(geomType,id, projection, solids);
84
        }
85

    
86
        /*
87
         * (non-Javadoc)
88
         * 
89
         * @see org.gvsig.geometries.iso.GM_Object#coordinateDimension()
90
         */
91
        public int getDimension() {
92
                return 3;
93
        }        
94

    
95
        /* (non-Javadoc)
96
         * @see org.gvsig.fmap.geom.aggregate.MultiSolid#addSolid(org.gvsig.fmap.geom.primitive.Solid)
97
         */
98
        public void addSolid(Solid solid) {
99
                addPrimitive(solid);                
100
        }
101

    
102
        /* (non-Javadoc)
103
         * @see org.gvsig.fmap.geom.aggregate.MultiSolid#getSolidAt(int)
104
         */
105
        public Solid getSolidAt(int index) {
106
                return (Solid)getPrimitiveAt(index);
107
        }
108

    
109
}