Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libGeometries3D / src / main / java / org / gvsig / geometries3D / Surface3D.java @ 29941

History | View | Annotate | Download (10.4 KB)

1
package org.gvsig.geometries3D;
2

    
3
import java.awt.Image;
4
import java.awt.Rectangle;
5
import java.awt.Shape;
6
import java.awt.geom.AffineTransform;
7
import java.awt.geom.PathIterator;
8
import java.awt.geom.Point2D;
9
import java.awt.geom.Rectangle2D;
10
import java.util.Vector;
11

    
12
import org.cresques.cts.ICoordTrans;
13
import org.gvsig.fmap.geom.Geometry;
14
import org.gvsig.fmap.geom.handler.Handler;
15
import org.gvsig.fmap.geom.operation.GeometryOperationContext;
16
import org.gvsig.fmap.geom.operation.GeometryOperationException;
17
import org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException;
18
import org.gvsig.fmap.geom.primitive.Envelope;
19

    
20
import org.gvsig.fmap.geom.primitive.GeneralPathX;
21
import org.gvsig.fmap.geom.primitive.Point;
22
import org.gvsig.fmap.geom.primitive.Surface;
23
import org.gvsig.fmap.geom.primitive.SurfaceAppearance;
24
import org.gvsig.fmap.geom.type.GeometryType;
25

    
26
public class Surface3D implements Surface {
27

    
28
        public void addVertex(Point point) {
29
                // TODO Auto-generated method stub
30
                
31
        }
32

    
33
        public double getCoordinateAt(int index, int dimension) {
34
                // TODO Auto-generated method stub
35
                return 0;
36
        }
37

    
38
        public int getNumVertices() {
39
                // TODO Auto-generated method stub
40
                return 0;
41
        }
42

    
43
        public SurfaceAppearance getSurfaceAppearance() {
44
                // TODO Auto-generated method stub
45
                return null;
46
        }
47

    
48
        public Point getVertex(int index) {
49
                // TODO Auto-generated method stub
50
                return null;
51
        }
52

    
53
        public void insertVertex(int index, Point p) {
54
                // TODO Auto-generated method stub
55
                
56
        }
57

    
58
        public void removeVertex(int index) {
59
                // TODO Auto-generated method stub
60
                
61
        }
62

    
63
        public void setCoordinateAt(int index, int dimension, double value) {
64
                // TODO Auto-generated method stub
65
                
66
        }
67

    
68
        public void setGeneralPath(GeneralPathX generalPathX) {
69
                // TODO Auto-generated method stub
70
                
71
        }
72

    
73
        public void setSurfaceAppearance(SurfaceAppearance app) {
74
                // TODO Auto-generated method stub
75
                
76
        }
77

    
78
        public Geometry cloneGeometry() {
79
                // TODO Auto-generated method stub
80
                return null;
81
        }
82

    
83
        public boolean fastIntersects(double x, double y, double w, double h) {
84
                // TODO Auto-generated method stub
85
                return false;
86
        }
87

    
88
        public Rectangle2D getBounds2D() {
89
                // TODO Auto-generated method stub
90
                return null;
91
        }
92

    
93
        public int getDimension() {
94
                // TODO Auto-generated method stub
95
                return 0;
96
        }
97

    
98
        public Envelope getEnvelope() {
99
                // TODO Auto-generated method stub
100
                return null;
101
        }
102

    
103
        public GeneralPathX getGeneralPath() {
104
                // TODO Auto-generated method stub
105
                return null;
106
        }
107

    
108
        public GeometryType getGeometryType() {
109
                // TODO Auto-generated method stub
110
                return null;
111
        }
112

    
113
        public Handler[] getHandlers(int type) {
114
                // TODO Auto-generated method stub
115
                return null;
116
        }
117

    
118
        public Shape getInternalShape() {
119
                // TODO Auto-generated method stub
120
                return null;
121
        }
122

    
123
        public PathIterator getPathIterator(AffineTransform at) {
124
                // TODO Auto-generated method stub
125
                return null;
126
        }
127

    
128
        public PathIterator getPathIterator(AffineTransform at, double flatness) {
129
                // TODO Auto-generated method stub
130
                return null;
131
        }
132

    
133
        public int getType() {
134
                // TODO Auto-generated method stub
135
                return 0;
136
        }
137

    
138
        public boolean intersects(Rectangle2D r) {
139
                // TODO Auto-generated method stub
140
                return false;
141
        }
142

    
143
        public Object invokeOperation(int index, GeometryOperationContext ctx)
144
                        throws GeometryOperationNotSupportedException,
145
                        GeometryOperationException {
146
                // TODO Auto-generated method stub
147
                return null;
148
        }
149

    
150
        public Object invokeOperation(String opName, GeometryOperationContext ctx)
151
                        throws GeometryOperationNotSupportedException,
152
                        GeometryOperationException {
153
                // TODO Auto-generated method stub
154
                return null;
155
        }
156

    
157
        public boolean isSimple() {
158
                // TODO Auto-generated method stub
159
                return false;
160
        }
161

    
162
        public void reProject(ICoordTrans ct) {
163
                // TODO Auto-generated method stub
164
                
165
        }
166

    
167
        public void transform(AffineTransform at) {
168
                // TODO Auto-generated method stub
169
                
170
        }
171

    
172
        public boolean contains(Point2D p) {
173
                // TODO Auto-generated method stub
174
                return false;
175
        }
176

    
177
        public boolean contains(Rectangle2D r) {
178
                // TODO Auto-generated method stub
179
                return false;
180
        }
181

    
182
        public boolean contains(double x, double y) {
183
                // TODO Auto-generated method stub
184
                return false;
185
        }
186

    
187
        public boolean contains(double x, double y, double w, double h) {
188
                // TODO Auto-generated method stub
189
                return false;
190
        }
191

    
192
        public Rectangle getBounds() {
193
                // TODO Auto-generated method stub
194
                return null;
195
        }
196

    
197
        public boolean intersects(double x, double y, double w, double h) {
198
                // TODO Auto-generated method stub
199
                return false;
200
        }
201

    
202
        public int compareTo(Object arg0) {
203
                // TODO Auto-generated method stub
204
                return 0;
205
        }
206

    
207
        public void setVertex(int index, Point p) {
208
                // TODO Auto-generated method stub
209
                
210
        }
211

    
212
/*        private Vector<PrimitiveSet> _primitiveSets;
213

214
        private Vector<Point> _vertices;
215

216
        private Vector<Point> _normals;
217

218
        private Vector<Integer> _indices;
219

220
        private Vector<Point> _colors;
221

222
        private Vector<Point> _texcoord;
223

224
        private Vector<Image> _textures;
225

226
        private AttributeBinding _colorBinding, _normalBinding;
227

228
        private Mode _primitiveMode;
229

230
        private Type _primitiveType;
231

232
        private Material _material;
233

234
        public void addColor(Point p) {
235
                _colors.add(p);
236

237
        }
238

239
        public void addIndex(int index) {
240
                _indices.add(index);
241
        }
242

243
        public void addNormal(Point p) {
244
                _normals.add(p);
245
        }
246

247
        public void addTextureCoord(Point p) {
248
                _texcoord.add(p);
249

250
        }
251

252
        public Point getColorAt(int position) {
253
                return _colors.get(position);
254

255
        }
256

257
        public AttributeBinding getColorBinding() {
258

259
                return _colorBinding;
260
        }
261

262
        public int getIndexAt(int position) {
263

264
                return _indices.get(position);
265
        }
266

267
        public Mode getPrimitiveMode() {
268
                return _primitiveMode;
269
        }
270

271
        public Point getNormalAt(int position) {
272
                return _normals.get(position);
273
        }
274

275
        public AttributeBinding getNormalBinding() {
276
                return _normalBinding;
277
        }
278

279
        public int getNumColors() {
280

281
                return _colors.size();
282
        }
283

284
        public int getNumIndices() {
285

286
                return _indices.size();
287
        }
288

289
        public int getNumNormals() {
290

291
                return _normals.size();
292
        }
293

294
        public int getNumTextureCoords() {
295

296
                return _texcoord.size();
297
        }
298

299
        public Point getTextureCoordAt(int position) {
300
                return _texcoord.get(position);
301
        }
302

303
        public Type getPrimitiveType() {
304

305
                return _primitiveType;
306
        }
307

308
        public void removeColor(int position) {
309
                _colors.remove(position);
310
        }
311

312
        public void removeIndex(int position) {
313
                _indices.remove(position);
314

315
        }
316

317
        public void removeNormal(int position) {
318
                _normals.remove(position);
319
        }
320

321
        public void removeTextureCoord(int position) {
322
                _texcoord.remove(position);
323
        }
324

325
        public void setColorAt(int position, Point p) {
326
                _colors.set(position, p);
327

328
        }
329

330
        public void setColorBinding(AttributeBinding binding) {
331
                _colorBinding = binding;
332

333
        }
334

335
        public void setIndexAt(int position, int index) {
336
                _indices.set(position, index);
337

338
        }
339

340
        public void setPrimitiveMode(Mode mode) {
341
                _primitiveMode = mode;
342

343
        }
344

345
        public void setNormalAt(int position, Point p) {
346
                _normals.set(position, p);
347
        }
348

349
        public void setNormalBinding(AttributeBinding binding) {
350
                _normalBinding = binding;
351

352
        }
353

354
        public void setTextureCoordAt(int position, Point p) {
355
                _texcoord.set(position, p);
356

357
        }
358

359
        public void setPrimitiveType(Type type) {
360
                _primitiveType=type;
361

362
        }
363

364
        public void addVertex(Point point) {
365
                _vertices.add(point);
366

367
        }
368

369
        public double getCoordinateAt(int index, int dimension) {
370
                // TODO Auto-generated method stub
371
                return _vertices.get(index).getCoordinateAt(dimension);
372
        }
373

374
        public int getNumVertices() {
375
                return _vertices.size();
376
        }
377

378
        public Point getVertex(int index) {
379
                return _vertices.get(index);
380
        }
381

382
        public void insertVertex(int index, Point p) {
383
                _vertices.add(index, p);
384
        }
385

386
        public void removeVertex(int index) {
387
                _vertices.remove(index);
388

389
        }
390

391
        public void setCoordinateAt(int index, int dimension, double value) {
392
                _vertices.get(index).setCoordinateAt(dimension, value);
393

394
        }
395

396
        public void setGeneralPath(GeneralPathX generalPathX) {
397
                // TODO Auto-generated method stub
398

399
        }
400

401
        public Geometry cloneGeometry() {
402
                // TODO Auto-generated method stub
403
                return null;
404
        }
405

406
        public boolean fastIntersects(double x, double y, double w, double h) {
407
                // TODO Auto-generated method stub
408
                return false;
409
        }
410

411
        public Rectangle2D getBounds2D() {
412
                // TODO Auto-generated method stub
413
                return null;
414
        }
415

416
        public int getDimension() {
417
                // TODO Auto-generated method stub
418
                return 0;
419
        }
420

421
        public Envelope getEnvelope() {
422
                // TODO Auto-generated method stub
423
                return null;
424
        }
425

426
        public GeneralPathX getGeneralPath() {
427
                // TODO Auto-generated method stub
428
                return null;
429
        }
430

431
        public GeometryType getGeometryType() {
432
                // TODO Auto-generated method stub
433
                return null;
434
        }
435

436
        public Handler[] getHandlers(int type) {
437
                // TODO Auto-generated method stub
438
                return null;
439
        }
440

441
        public Shape getInternalShape() {
442
                // TODO Auto-generated method stub
443
                return null;
444
        }
445

446
        public PathIterator getPathIterator(AffineTransform at) {
447
                // TODO Auto-generated method stub
448
                return null;
449
        }
450

451
        public PathIterator getPathIterator(AffineTransform at, double flatness) {
452
                // TODO Auto-generated method stub
453
                return null;
454
        }
455

456
        public boolean intersects(Rectangle2D r) {
457
                // TODO Auto-generated method stub
458
                return false;
459
        }
460

461
        public Object invokeOperation(int index, GeometryOperationContext ctx)
462
                        throws GeometryOperationNotSupportedException,
463
                        GeometryOperationException {
464
                // TODO Auto-generated method stub
465
                return null;
466
        }
467

468
        public Object invokeOperation(String opName, GeometryOperationContext ctx)
469
                        throws GeometryOperationNotSupportedException,
470
                        GeometryOperationException {
471
                // TODO Auto-generated method stub
472
                return null;
473
        }
474

475
        public boolean isSimple() {
476
                // TODO Auto-generated method stub
477
                return false;
478
        }
479

480
        public void reProject(ICoordTrans ct) {
481
                // TODO Auto-generated method stub
482

483
        }
484

485
        public void transform(AffineTransform at) {
486
                // TODO Auto-generated method stub
487

488
        }
489

490
        public boolean contains(Point2D arg0) {
491
                // TODO Auto-generated method stub
492
                return false;
493
        }
494

495
        public boolean contains(Rectangle2D arg0) {
496
                // TODO Auto-generated method stub
497
                return false;
498
        }
499

500
        public boolean contains(double arg0, double arg1) {
501
                // TODO Auto-generated method stub
502
                return false;
503
        }
504

505
        public boolean contains(double arg0, double arg1, double arg2, double arg3) {
506
                // TODO Auto-generated method stub
507
                return false;
508
        }
509

510
        public Rectangle getBounds() {
511
                // TODO Auto-generated method stub
512
                return null;
513
        }
514

515
        public boolean intersects(double arg0, double arg1, double arg2, double arg3) {
516
                // TODO Auto-generated method stub
517
                return false;
518
        }
519

520
        public int compareTo(Object arg0) {
521
                // TODO Auto-generated method stub
522
                return 0;
523
        }
524

525
        public int getType() {
526
                // TODO Auto-generated method stub
527
                return 0;
528
        }
529

530
*/
531

    
532

    
533

    
534
}