Revision 21425 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/AbstractPrimitive.java

View differences:

AbstractPrimitive.java
76 76
	protected String id = null;
77 77
	protected IProjection projection = null;
78 78
//	protected GeometryOperationsSet operationsSet = null;
79
		
79

  
80 80
	public AbstractPrimitive(String id, IProjection projection) {
81 81
		super();
82 82
		this.id = id;
......
87 87
		} catch (NotRegisteredOperationSetException e) {
88 88
			//It is not possible to do any operation with this geometry!!!
89 89
		}*/
90
	}	
90
	}
91 91

  
92 92
	public AbstractPrimitive(IProjection projection) {
93
		this(null, projection);		
93
		this(null, projection);
94 94
	}
95
		
95

  
96 96
	/*
97 97
	 * (non-Javadoc)
98 98
	 * @see com.iver.cit.gvsig.fmap.core.Geometry#getInternalShape()
99 99
	 */
100 100
	public Shape getInternalShape() {
101 101
		return this;
102
	}	
102
	}
103 103

  
104
	/*
105
	 * (non-Javadoc)
106
	 * @see org.gvsig.geometries.iso.AbstractGeometry#getBoundary()
107
	 */
108
	public Box getBoundary() {
109
		return new BaseBox(getBounds2D());
110
	}		
111
	
104
//	/*
105
//	 * (non-Javadoc)
106
//	 * @see org.gvsig.geometries.iso.AbstractGeometry#getBoundary()
107
//	 */
108
//	public Envelope getEnvelope() {
109
//		return new DefaultEnvelope(getBounds2D());
110
//	}
111

  
112 112
	/* (non-Javadoc)
113 113
	 * @see org.gvsig.geometries.iso.AbstractGeometry#getId()
114 114
	 */
......
121 121
	 */
122 122
	public IProjection getSRS() {
123 123
		return projection;
124
	}	
124
	}
125 125

  
126 126
	/* (non-Javadoc)
127 127
	 * @see org.gvsig.geometries.iso.AbstractGeometry#transform(org.cresques.cts.IProjection)
......
132 132
		newGeom.reProject(coordTrans);
133 133
		return (AbstractPrimitive)newGeom;
134 134
	}
135
	
136
	
135

  
136

  
137 137
	/*
138 138
	 * TODO adaptar metodo procedente de UtilFunctions
139 139
	 */
......
146 146

  
147 147
	/*
148 148
	 * TODO adaptar metodo procedente de UtilFunctions
149
	 */	
149
	 */
150 150
	public static void moveGeom(Geometry geometry, double dx, double dy) {
151 151
        AffineTransform at = new AffineTransform();
152 152
        at.translate(dx, dy);
......
155 155

  
156 156
	/*
157 157
	 * TODO adaptar metodo procedente de UtilFunctions
158
	 */	
158
	 */
159 159
	public static void scaleGeom(Geometry geometry, Point2D basePoint, double sx, double sy) {
160 160
		AffineTransform at = new AffineTransform();
161 161
		at.setToTranslation(basePoint.getX(),basePoint.getY());
......
168 168
		return intersects(x,y,w,h);
169 169
	}
170 170

  
171
	public double[] getZs() {		
171
	public double[] getZs() {
172 172
		return null;
173
	}	
173
	}
174 174

  
175 175
	public Geometry cloneGeometry() {
176 176
		return (Geometry)cloneFShape();
......
190 190
	}
191 191

  
192 192
	public abstract GeometryType getGeometryType();
193
	
193

  
194 194
	/**
195 195
	 * Invokes an operation.
196 196
	 * @param index
197 197
	 * @return
198 198
	 */
199 199
	public Object invokeOperation(int index, GeometryOperationContext ctx) throws GeometryOperationNotSupportedException, GeometryOperationException {
200
		return GeometryManager.getInstance().invokeOperation(index, this, ctx);	
200
		return GeometryManager.getInstance().invokeOperation(index, this, ctx);
201 201
	}
202 202

  
203 203
	/**
204 204
	 * @return una de las ctes de FShape
205 205
	 */
206 206
	public abstract int getShapeType();
207
	
207

  
208 208
}

Also available in: Unified diff