svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_geometries / src / org / gvsig / fmap / geom / primitive / impl / Solid2DZ.java @ 29018
History | View | Annotate | Download (5.97 KB)
1 | 27029 | jpiera | package org.gvsig.fmap.geom.primitive.impl; |
---|---|---|---|
2 | 20761 | jmvivo | |
3 | import java.awt.Rectangle; |
||
4 | import java.awt.geom.AffineTransform; |
||
5 | import java.awt.geom.PathIterator; |
||
6 | import java.awt.geom.Point2D; |
||
7 | import java.awt.geom.Rectangle2D; |
||
8 | 29018 | jtorres | import java.awt.image.BufferedImage; |
9 | 20761 | jmvivo | |
10 | 21870 | vcaballero | import org.cresques.cts.ICoordTrans; |
11 | import org.cresques.cts.IProjection; |
||
12 | 26788 | jpiera | import org.gvsig.fmap.geom.Geometry; |
13 | 26328 | jpiera | import org.gvsig.fmap.geom.GeometryLocator; |
14 | 26866 | jpiera | import org.gvsig.fmap.geom.Geometry.SUBTYPES; |
15 | 20761 | jmvivo | import org.gvsig.fmap.geom.handler.Handler; |
16 | 27029 | jpiera | import org.gvsig.fmap.geom.primitive.Envelope; |
17 | import org.gvsig.fmap.geom.primitive.FShape; |
||
18 | import org.gvsig.fmap.geom.primitive.GeneralPathX; |
||
19 | import org.gvsig.fmap.geom.primitive.Solid; |
||
20 | 28987 | jtorres | import org.gvsig.fmap.geom.primitive.Surface; |
21 | 20761 | jmvivo | import org.gvsig.fmap.geom.type.GeometryType; |
22 | |||
23 | 28987 | jtorres | /* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
|
24 | 20761 | jmvivo | *
|
25 | * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
||
26 | *
|
||
27 | * This program is free software; you can redistribute it and/or
|
||
28 | * modify it under the terms of the GNU General Public License
|
||
29 | * as published by the Free Software Foundation; either version 2
|
||
30 | * of the License, or (at your option) any later version.
|
||
31 | *
|
||
32 | * This program is distributed in the hope that it will be useful,
|
||
33 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
34 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
35 | * GNU General Public License for more details.
|
||
36 | *
|
||
37 | * You should have received a copy of the GNU General Public License
|
||
38 | * along with this program; if not, write to the Free Software
|
||
39 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
||
40 | *
|
||
41 | * For more information, contact:
|
||
42 | *
|
||
43 | * Generalitat Valenciana
|
||
44 | * Conselleria d'Infraestructures i Transport
|
||
45 | 28987 | jtorres | * Av. Blasco Ib��ez, 50
|
46 | 20761 | jmvivo | * 46010 VALENCIA
|
47 | * SPAIN
|
||
48 | *
|
||
49 | * +34 963862235
|
||
50 | * gvsig@gva.es
|
||
51 | * www.gvsig.gva.es
|
||
52 | *
|
||
53 | * or
|
||
54 | *
|
||
55 | * IVER T.I. S.A
|
||
56 | * Salamanca 50
|
||
57 | * 46005 Valencia
|
||
58 | * Spain
|
||
59 | *
|
||
60 | * +34 963163400
|
||
61 | * dac@iver.es
|
||
62 | */
|
||
63 | /* CVS MESSAGES:
|
||
64 | *
|
||
65 | * $Id: FSolid.java,v 1.2 2008/03/25 08:47:41 cvs Exp $
|
||
66 | * $Log: FSolid.java,v $
|
||
67 | * Revision 1.2 2008/03/25 08:47:41 cvs
|
||
68 | * Visitors removed
|
||
69 | *
|
||
70 | * Revision 1.1 2008/03/12 08:46:20 cvs
|
||
71 | * *** empty log message ***
|
||
72 | *
|
||
73 | *
|
||
74 | */
|
||
75 | /**
|
||
76 | 28987 | jtorres | * @author Jorge Piera Llodr� (jorge.piera@iver.es)
|
77 | 20761 | jmvivo | */
|
78 | 21081 | jiyarza | public class Solid2DZ extends AbstractPrimitive implements Solid { |
79 | 20761 | jmvivo | |
80 | private static final long serialVersionUID = 1L; |
||
81 | |||
82 | 26328 | jpiera | private static GeometryType geomType = GeometryLocator.getGeometryManager() |
83 | 26866 | jpiera | .registerGeometryType(Solid2DZ.class, null, TYPES.SOLID, SUBTYPES.GEOM2DZ);
|
84 | 20761 | jmvivo | |
85 | 26788 | jpiera | /**
|
86 | * Constructor without arguments. It is necessary to create
|
||
87 | * geometries using the {@link GeometryType}{@link #create()}
|
||
88 | * method
|
||
89 | */
|
||
90 | public Solid2DZ() {
|
||
91 | super();
|
||
92 | } |
||
93 | |||
94 | 21081 | jiyarza | public Solid2DZ(IProjection projection) {
|
95 | 20761 | jmvivo | super(projection);
|
96 | } |
||
97 | |||
98 | 21081 | jiyarza | public Solid2DZ(String id, IProjection projection) { |
99 | 20761 | jmvivo | super(id, projection);
|
100 | } |
||
101 | |||
102 | public FShape cloneFShape() {
|
||
103 | // TODO Auto-generated method stub
|
||
104 | return null; |
||
105 | } |
||
106 | |||
107 | public Handler[] getSelectHandlers() { |
||
108 | // TODO Auto-generated method stub
|
||
109 | return null; |
||
110 | } |
||
111 | |||
112 | public int getShapeType() { |
||
113 | // TODO Auto-generated method stub
|
||
114 | return 0; |
||
115 | } |
||
116 | |||
117 | public Handler[] getStretchingHandlers() { |
||
118 | // TODO Auto-generated method stub
|
||
119 | return null; |
||
120 | } |
||
121 | |||
122 | public void reProject(ICoordTrans ct) { |
||
123 | // TODO Auto-generated method stub
|
||
124 | |||
125 | } |
||
126 | |||
127 | public void transform(AffineTransform at) { |
||
128 | // TODO Auto-generated method stub
|
||
129 | |||
130 | } |
||
131 | |||
132 | public boolean contains(Point2D arg0) { |
||
133 | // TODO Auto-generated method stub
|
||
134 | return false; |
||
135 | } |
||
136 | |||
137 | public boolean contains(Rectangle2D arg0) { |
||
138 | // TODO Auto-generated method stub
|
||
139 | return false; |
||
140 | } |
||
141 | |||
142 | public boolean contains(double arg0, double arg1) { |
||
143 | // TODO Auto-generated method stub
|
||
144 | return false; |
||
145 | } |
||
146 | |||
147 | public boolean contains(double arg0, double arg1, double arg2, double arg3) { |
||
148 | // TODO Auto-generated method stub
|
||
149 | return false; |
||
150 | } |
||
151 | |||
152 | public Rectangle getBounds() { |
||
153 | // TODO Auto-generated method stub
|
||
154 | return null; |
||
155 | } |
||
156 | |||
157 | public Rectangle2D getBounds2D() { |
||
158 | // TODO Auto-generated method stub
|
||
159 | return null; |
||
160 | } |
||
161 | |||
162 | public PathIterator getPathIterator(AffineTransform arg0) { |
||
163 | // TODO Auto-generated method stub
|
||
164 | return null; |
||
165 | } |
||
166 | |||
167 | public PathIterator getPathIterator(AffineTransform arg0, double arg1) { |
||
168 | // TODO Auto-generated method stub
|
||
169 | return null; |
||
170 | } |
||
171 | |||
172 | public boolean intersects(Rectangle2D arg0) { |
||
173 | // TODO Auto-generated method stub
|
||
174 | return false; |
||
175 | } |
||
176 | |||
177 | public boolean intersects(double arg0, double arg1, double arg2, double arg3) { |
||
178 | // TODO Auto-generated method stub
|
||
179 | return false; |
||
180 | } |
||
181 | |||
182 | /*
|
||
183 | * (non-Javadoc)
|
||
184 | 21425 | vcaballero | *
|
185 | 20761 | jmvivo | * @see org.gvsig.geometries.iso.GM_Object#coordinateDimension()
|
186 | */
|
||
187 | 26788 | jpiera | public int getDimension() { |
188 | 20761 | jmvivo | return 3; |
189 | } |
||
190 | 21425 | vcaballero | |
191 | 20761 | jmvivo | /*
|
192 | * (non-Javadoc)
|
||
193 | * @see org.gvsig.fmap.geom.primitive.AbstractPrimitive#getGeometryType()
|
||
194 | */
|
||
195 | public GeometryType getGeometryType() {
|
||
196 | return geomType;
|
||
197 | } |
||
198 | 21425 | vcaballero | |
199 | 20918 | jiyarza | public int getType() { |
200 | 26788 | jpiera | return geomType.getType();
|
201 | 20918 | jiyarza | } |
202 | 21382 | csanchez | |
203 | 21425 | vcaballero | public Envelope getEnvelope() {
|
204 | // TODO Auto-generated method stub
|
||
205 | return null; |
||
206 | } |
||
207 | |||
208 | 21382 | csanchez | public GeneralPathX getGeneralPath() {
|
209 | // TODO Auto-generated method stub
|
||
210 | return null; |
||
211 | } |
||
212 | 27055 | csanchez | |
213 | public double[] getZs() { |
||
214 | // TODO Auto-generated method stub
|
||
215 | return null; |
||
216 | } |
||
217 | 28987 | jtorres | |
218 | public void addSurface(Surface surface) { |
||
219 | 29018 | jtorres | throw new UnsupportedOperationException("Method not implemented"); |
220 | 28987 | jtorres | } |
221 | |||
222 | public int getNumSurfaces() { |
||
223 | 29018 | jtorres | throw new UnsupportedOperationException("Method not implemented"); |
224 | 28987 | jtorres | } |
225 | |||
226 | 28989 | jpiera | public Surface getSurfaceAt(int position) { |
227 | 29018 | jtorres | throw new UnsupportedOperationException("Method not implemented"); |
228 | 28987 | jtorres | } |
229 | |||
230 | public void removeSurface(int position) { |
||
231 | 29018 | jtorres | throw new UnsupportedOperationException("Method not implemented"); |
232 | 28987 | jtorres | |
233 | } |
||
234 | 29018 | jtorres | |
235 | public void addTexture() { |
||
236 | throw new UnsupportedOperationException("Method not implemented"); |
||
237 | |||
238 | } |
||
239 | |||
240 | public int getNumTextures() { |
||
241 | throw new UnsupportedOperationException("Method not implemented"); |
||
242 | } |
||
243 | |||
244 | public BufferedImage getTextureAt(int position) { |
||
245 | throw new UnsupportedOperationException("Method not implemented"); |
||
246 | } |
||
247 | |||
248 | public void removeTexture(int position) { |
||
249 | throw new UnsupportedOperationException("Method not implemented"); |
||
250 | |||
251 | } |
||
252 | 20761 | jmvivo | } |