Revision 29001 branches/v2_0_0_prep/libraries/libDwg/src/org/gvsig/dwg/lib/objects/DwgMeshPolyline.java
DwgMeshPolyline.java | ||
---|---|---|
84 | 84 |
import org.gvsig.dwg.lib.IDwgPolyline; |
85 | 85 |
import org.gvsig.dwg.lib.IDwgVertex; |
86 | 86 |
import org.gvsig.fmap.geom.Geometry; |
87 |
import org.gvsig.fmap.geom.exception.CreateGeometryException; |
|
87 | 88 |
|
88 | 89 |
/** |
89 | 90 |
* This class is a Mesh (polyline mesh), what is different of |
... | ... | |
241 | 242 |
* is a Polyline3D TODO Implement real conversion |
242 | 243 |
* from a polyface mesh to a FMap geometry |
243 | 244 |
* */ |
244 |
public Geometry toFMapGeometry(boolean is3DFile) { |
|
245 |
public Geometry toFMapGeometry(boolean is3DFile) throws CreateGeometryException {
|
|
245 | 246 |
//TODO Implementar la conversion de DWG Mesh a |
246 | 247 |
//FMap (coleccion de poligonos??) |
247 | 248 |
return null; |
... | ... | |
250 | 251 |
* @see com.iver.cit.jdwglib.dwg.IDwg2FMap#toFMapString(boolean) |
251 | 252 |
*/ |
252 | 253 |
public String toFMapString(boolean is3DFile) { |
253 |
if(is3DFile) |
|
254 |
if(is3DFile) {
|
|
254 | 255 |
return "FPolyline3D"; |
255 |
else
|
|
256 |
} else {
|
|
256 | 257 |
return "FPolyline2D"; |
258 |
} |
|
257 | 259 |
} |
258 | 260 |
|
259 | 261 |
public String toString(){ |
... | ... | |
344 | 346 |
handleObjWithoutBlocks.put(new Integer(transformedEntity.getHandle().getOffset()), transformedEntity); |
345 | 347 |
} |
346 | 348 |
} |
349 |
|
|
350 |
|
|
351 |
public int getGeometrySubType(boolean is3DFile) { |
|
352 |
if (is3DFile) { |
|
353 |
return Geometry.SUBTYPES.GEOM3D; |
|
354 |
} else { |
|
355 |
return Geometry.SUBTYPES.GEOM2D; |
|
356 |
} |
|
357 |
} |
|
358 |
|
|
359 |
public int getGeometryType() { |
|
360 |
return Geometry.TYPES.MULTICURVE; |
|
361 |
} |
|
362 |
|
|
347 | 363 |
} |
348 | 364 |
|
Also available in: Unified diff