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