Revision 21195 trunk/libraries/lib3DMap/src/com/iver/ai2/gvsig3d/geometry/Point3D.java

View differences:

Point3D.java
15 15
import org.gvsig.fmap.geom.primitive.Point;
16 16
import org.gvsig.fmap.geom.type.GeometryType;
17 17

  
18
import com.iver.ai2.gvsig3d.geometry.operation.Draw3DPoint3DTest;
18 19

  
20

  
19 21
public class Point3D extends AbstractPrimitive	implements Point {
20 22

  
21 23
	private static final long serialVersionUID = 1L;
......
24 26
	private static final GeometryType geomType = GeometryManager.getInstance()
25 27
			.registerGeometryType(Point3D.class);
26 28
		
27
	/** CTEs para identificar las operaciones registradas para el tipo de geometrĂ­a geomType */
29
//	/** CTEs para identificar las operaciones registradas para el tipo de geometrĂ­a geomType */
28 30
//    public static final int OPERATION_PRINTLN = GeometryManager.getInstance()
29 31
//			.registerGeometryOperation("draw3D",  new Draw3DPoint3D(), geomType);
30 32
	
33
	public static final int CODE = geomType.getType();
31 34
	
32
	
33 35
	public Point3D(String id) {
34 36
		super(id, null);
35
		this.setId(id);
37
//		th 	is.setId(id);
36 38
		
37 39
	}
38 40

  
......
41 43
	private double z = 0;
42 44
	private String id;
43 45

  
44
	public void setId(String id) {
45
		this.id = id;
46
	}
46
//	public void setId(String id) {
47
//		this.id = id;
48
//	}
47 49

  
48 50
	public double getX() {
49 51
		return x;
......
71 73

  
72 74
	@Override
73 75
	public GeometryType getGeometryType() {
74
		// TODO Auto-generated method stub
75
		return null;
76
		return geomType;
76 77
	}
77 78

  
78 79
	@Override
......
102 103
	}
103 104

  
104 105
	public int getType() {
105
		// TODO Auto-generated method stub
106
		return 0;
106
		return CODE;
107 107
	}
108 108

  
109 109
	public boolean intersects(Rectangle2D arg0) {

Also available in: Unified diff