Revision 29018
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/Solid.java | ||
---|---|---|
27 | 27 |
|
28 | 28 |
package org.gvsig.fmap.geom.primitive; |
29 | 29 |
|
30 |
import java.awt.image.BufferedImage; |
|
31 |
|
|
30 | 32 |
/** |
31 | 33 |
* <p> |
32 | 34 |
* This interface is equivalent to the GM_Solid specified in |
... | ... | |
37 | 39 |
* @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a> |
38 | 40 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a> |
39 | 41 |
* @author <a href="mailto:jtorres@ai2.upv.es">Jordi Torres Fabra</a> |
40 |
* @author <a href="mailto:rgaitan@ai2.upv.es">Rafa Gait?n Linares</a>
|
|
42 |
* @author <a href="mailto:rgaitan@ai2.upv.es">Rafa Gait�n Linares</a>
|
|
41 | 43 |
*/ |
42 | 44 |
public interface Solid extends Primitive{ |
43 | 45 |
|
44 |
|
|
45 | 46 |
public void addSurface(Surface surface); |
46 | 47 |
|
47 | 48 |
public void removeSurface(int position); |
... | ... | |
50 | 51 |
|
51 | 52 |
public Surface getSurfaceAt(int position); |
52 | 53 |
|
54 |
public void addTexture(); |
|
53 | 55 |
|
56 |
public BufferedImage getTextureAt(int position); |
|
57 |
|
|
58 |
public void removeTexture(int position); |
|
59 |
|
|
60 |
public int getNumTextures(); |
|
61 |
|
|
54 | 62 |
} |
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/Surface2D.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
|
1 |
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
|
|
2 | 2 |
* |
3 | 3 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
4 | 4 |
* |
... | ... | |
20 | 20 |
* |
21 | 21 |
* Generalitat Valenciana |
22 | 22 |
* Conselleria d'Infraestructures i Transport |
23 |
* Av. Blasco Ib??ez, 50
|
|
23 |
* Av. Blasco Ib��ez, 50
|
|
24 | 24 |
* 46010 VALENCIA |
25 | 25 |
* SPAIN |
26 | 26 |
* |
... | ... | |
184 | 184 |
public Point getVertex(int index) { |
185 | 185 |
throw new UnsupportedOperationException("Method not implemented"); |
186 | 186 |
} |
187 |
|
|
188 |
public void addColor(Point p) { |
|
189 |
throw new UnsupportedOperationException("Method not implemented"); |
|
190 |
|
|
191 |
} |
|
192 |
|
|
193 |
public void addNormal(Point p) { |
|
194 |
throw new UnsupportedOperationException("Method not implemented"); |
|
195 |
|
|
196 |
} |
|
197 |
|
|
198 |
public void addTextureCoord(int index, Point p) { |
|
199 |
throw new UnsupportedOperationException("Method not implemented"); |
|
200 |
|
|
201 |
} |
|
202 |
|
|
203 |
public Point getColorAt(int index) { |
|
204 |
throw new UnsupportedOperationException("Method not implemented"); |
|
205 |
|
|
206 |
} |
|
207 |
|
|
208 |
public AttributeBinding getColorBinding() { |
|
209 |
throw new UnsupportedOperationException("Method not implemented"); |
|
210 |
|
|
211 |
} |
|
212 |
|
|
213 |
public Point getNormalAt(int index) { |
|
214 |
throw new UnsupportedOperationException("Method not implemented"); |
|
215 |
|
|
216 |
} |
|
217 |
|
|
218 |
public AttributeBinding getNormalBinding() { |
|
219 |
throw new UnsupportedOperationException("Method not implemented"); |
|
220 |
|
|
221 |
} |
|
222 |
|
|
223 |
public int getNumColors() { |
|
224 |
throw new UnsupportedOperationException("Method not implemented"); |
|
225 |
|
|
226 |
} |
|
227 |
|
|
228 |
public int getNumNormals() { |
|
229 |
throw new UnsupportedOperationException("Method not implemented"); |
|
230 |
|
|
231 |
} |
|
232 |
|
|
233 |
public int getNumTextureCoords() { |
|
234 |
throw new UnsupportedOperationException("Method not implemented"); |
|
235 |
|
|
236 |
} |
|
237 |
|
|
238 |
public Point getTextureCoordAt(int index) { |
|
239 |
throw new UnsupportedOperationException("Method not implemented"); |
|
240 |
|
|
241 |
} |
|
242 |
|
|
243 |
public void setColorAt(int index, Point p) { |
|
244 |
throw new UnsupportedOperationException("Method not implemented"); |
|
245 |
|
|
246 |
} |
|
247 |
|
|
248 |
public void setColorBinding(AttributeBinding binding) { |
|
249 |
throw new UnsupportedOperationException("Method not implemented"); |
|
250 |
|
|
251 |
} |
|
252 |
|
|
253 |
public void setNormalAt(int index, Point p) { |
|
254 |
throw new UnsupportedOperationException("Method not implemented"); |
|
255 |
|
|
256 |
} |
|
257 |
|
|
258 |
public void setNormalBinding(AttributeBinding binding) { |
|
259 |
throw new UnsupportedOperationException("Method not implemented"); |
|
260 |
|
|
261 |
} |
|
262 |
|
|
263 |
public void setTextureCoordAt(int index, Point p) { |
|
264 |
throw new UnsupportedOperationException("Method not implemented"); |
|
265 |
|
|
266 |
} |
|
187 | 267 |
} |
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/EllipticArc2D.java | ||
---|---|---|
583 | 583 |
throw new UnsupportedOperationException("Use setPoints(Point center, Point radious)"); |
584 | 584 |
} |
585 | 585 |
|
586 |
public void addColor(Point p) { |
|
587 |
throw new UnsupportedOperationException("Method not implemented"); |
|
588 |
|
|
589 |
} |
|
590 |
|
|
591 |
public void addNormal(Point p) { |
|
592 |
throw new UnsupportedOperationException("Method not implemented"); |
|
593 |
|
|
594 |
} |
|
595 |
|
|
596 |
public void addTextureCoord(int index, Point p) { |
|
597 |
throw new UnsupportedOperationException("Method not implemented"); |
|
598 |
|
|
599 |
} |
|
600 |
|
|
601 |
public Point getColorAt(int index) { |
|
602 |
throw new UnsupportedOperationException("Method not implemented"); |
|
603 |
} |
|
604 |
|
|
605 |
public AttributeBinding getColorBinding() { |
|
606 |
throw new UnsupportedOperationException("Method not implemented"); |
|
607 |
} |
|
608 |
|
|
609 |
public Point getNormalAt(int index) { |
|
610 |
throw new UnsupportedOperationException("Method not implemented"); |
|
611 |
} |
|
612 |
|
|
613 |
public AttributeBinding getNormalBinding() { |
|
614 |
throw new UnsupportedOperationException("Method not implemented"); |
|
615 |
} |
|
616 |
|
|
617 |
public int getNumColors() { |
|
618 |
throw new UnsupportedOperationException("Method not implemented"); |
|
619 |
} |
|
620 |
|
|
621 |
public int getNumNormals() { |
|
622 |
throw new UnsupportedOperationException("Method not implemented"); |
|
623 |
} |
|
624 |
|
|
625 |
public int getNumTextureCoords() { |
|
626 |
throw new UnsupportedOperationException("Method not implemented"); |
|
627 |
} |
|
628 |
|
|
629 |
public Point getTextureCoordAt(int index) { |
|
630 |
throw new UnsupportedOperationException("Method not implemented"); |
|
631 |
} |
|
632 |
|
|
633 |
public void setColorAt(int index, Point p) { |
|
634 |
throw new UnsupportedOperationException("Method not implemented"); |
|
635 |
|
|
636 |
} |
|
637 |
|
|
638 |
public void setColorBinding(AttributeBinding binding) { |
|
639 |
throw new UnsupportedOperationException("Method not implemented"); |
|
640 |
|
|
641 |
} |
|
642 |
|
|
643 |
public void setNormalAt(int index, Point p) { |
|
644 |
throw new UnsupportedOperationException("Method not implemented"); |
|
645 |
|
|
646 |
} |
|
647 |
|
|
648 |
public void setNormalBinding(AttributeBinding binding) { |
|
649 |
throw new UnsupportedOperationException("Method not implemented"); |
|
650 |
|
|
651 |
} |
|
652 |
|
|
653 |
public void setTextureCoordAt(int index, Point p) { |
|
654 |
throw new UnsupportedOperationException("Method not implemented"); |
|
655 |
|
|
656 |
} |
|
657 |
|
|
586 | 658 |
} |
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/Solid2DZ.java | ||
---|---|---|
5 | 5 |
import java.awt.geom.PathIterator; |
6 | 6 |
import java.awt.geom.Point2D; |
7 | 7 |
import java.awt.geom.Rectangle2D; |
8 |
import java.awt.image.BufferedImage; |
|
8 | 9 |
|
9 | 10 |
import org.cresques.cts.ICoordTrans; |
10 | 11 |
import org.cresques.cts.IProjection; |
... | ... | |
215 | 216 |
} |
216 | 217 |
|
217 | 218 |
public void addSurface(Surface surface) { |
218 |
// TODO Auto-generated method stub |
|
219 |
|
|
219 |
throw new UnsupportedOperationException("Method not implemented"); |
|
220 | 220 |
} |
221 | 221 |
|
222 | 222 |
public int getNumSurfaces() { |
223 |
// TODO Auto-generated method stub |
|
224 |
return 0; |
|
223 |
throw new UnsupportedOperationException("Method not implemented"); |
|
225 | 224 |
} |
226 | 225 |
|
227 | 226 |
public Surface getSurfaceAt(int position) { |
228 |
// TODO Auto-generated method stub |
|
229 |
return null; |
|
227 |
throw new UnsupportedOperationException("Method not implemented"); |
|
230 | 228 |
} |
231 | 229 |
|
232 | 230 |
public void removeSurface(int position) { |
233 |
// TODO Auto-generated method stub
|
|
231 |
throw new UnsupportedOperationException("Method not implemented");
|
|
234 | 232 |
|
235 | 233 |
} |
234 |
|
|
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 |
} |
|
236 | 252 |
} |
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/Surface.java | ||
---|---|---|
32 | 32 |
* This interface is equivalent to the GM_Surface specified in |
33 | 33 |
* <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>. |
34 | 34 |
* Surface is a subclass of {@link Primitive} and is the basis for 2-dimensional geometry. |
35 |
* Unorientable surfaces such as the M?bius band are not allowed.
|
|
35 |
* Unorientable surfaces such as the M�bius band are not allowed.
|
|
36 | 36 |
* <p/> |
37 | 37 |
* <p> |
38 | 38 |
* The orientation of a surface chooses an "up" direction through the choice of the upward normal, |
... | ... | |
50 | 50 |
*/ |
51 | 51 |
public interface Surface extends OrientableSurface { |
52 | 52 |
|
53 |
|
|
54 |
public static final class AttributeBinding { |
|
55 |
// default |
|
56 |
public static final int BIND_OFF = 0; |
|
57 |
public static final int BIND_OVERALL = 1; |
|
58 |
public static final int BIND_PER_PRIMITIVE_SET = 2; |
|
59 |
public static final int BIND_PER_PRIMITIVE = 3; |
|
60 |
public static final int BIND_PER_VERTEX = 4; |
|
61 |
} |
|
62 |
|
|
63 |
|
|
53 | 64 |
/** |
54 | 65 |
* Sets all the coordinates of the surface. |
55 | 66 |
* @param generalPathX |
... | ... | |
116 | 127 |
* @param p |
117 | 128 |
* The vertex to add. |
118 | 129 |
*/ |
130 |
|
|
131 |
|
|
119 | 132 |
public void insertVertex(int index, Point p); |
133 |
|
|
134 |
//COLORS |
|
135 |
|
|
136 |
public void addColor(Point p); |
|
137 |
|
|
138 |
public void setColorAt(int index, Point p); |
|
139 |
|
|
140 |
public Point getColorAt(int index); |
|
141 |
|
|
142 |
public int getNumColors(); |
|
143 |
|
|
144 |
public void setColorBinding(AttributeBinding binding); |
|
145 |
|
|
146 |
public AttributeBinding getColorBinding(); |
|
147 |
|
|
148 |
//NORMALS |
|
149 |
|
|
150 |
public void addNormal(Point p); |
|
151 |
|
|
152 |
public void setNormalAt(int index, Point p); |
|
153 |
|
|
154 |
public Point getNormalAt(int index); |
|
155 |
|
|
156 |
public int getNumNormals(); |
|
157 |
|
|
158 |
public void setNormalBinding(AttributeBinding binding); |
|
159 |
|
|
160 |
public AttributeBinding getNormalBinding(); |
|
161 |
|
|
162 |
//TEXTURECOORDS |
|
163 |
|
|
164 |
public void addTextureCoord(int index, Point p); |
|
165 |
|
|
166 |
public void setTextureCoordAt(int index, Point p); |
|
167 |
|
|
168 |
public Point getTextureCoordAt(int index); |
|
169 |
|
|
170 |
public int getNumTextureCoords(); |
|
171 |
|
|
172 |
|
|
120 | 173 |
} |
Also available in: Unified diff