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 @ 40559

History | View | Annotate | Download (3.85 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
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
 * as published by the Free Software Foundation; either version 3
9
 * 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
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.fmap.geom.aggregate.impl;
25

    
26
import org.cresques.cts.IProjection;
27
import org.gvsig.fmap.geom.aggregate.MultiSolid;
28
import org.gvsig.fmap.geom.primitive.Solid;
29
import org.gvsig.fmap.geom.primitive.impl.Solid2DZ;
30
import org.gvsig.fmap.geom.type.GeometryType;
31

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

    
105
        MultiSolid2DZ(GeometryType geomType, String id, IProjection projection, Solid2DZ[] solids) {
106
                super(geomType,id, projection, solids);
107
        }
108

    
109
        /*
110
         * (non-Javadoc)
111
         * 
112
         * @see org.gvsig.geometries.iso.GM_Object#coordinateDimension()
113
         */
114
        public int getDimension() {
115
                return 3;
116
        }        
117

    
118
        /* (non-Javadoc)
119
         * @see org.gvsig.fmap.geom.aggregate.MultiSolid#addSolid(org.gvsig.fmap.geom.primitive.Solid)
120
         */
121
        public void addSolid(Solid solid) {
122
                addPrimitive(solid);                
123
        }
124

    
125
        /* (non-Javadoc)
126
         * @see org.gvsig.fmap.geom.aggregate.MultiSolid#getSolidAt(int)
127
         */
128
        public Solid getSolidAt(int index) {
129
                return (Solid)getPrimitiveAt(index);
130
        }
131

    
132
}