Revision 10632 trunk/libraries/libDwg/src/com/iver/cit/jdwglib/dwg/objects/DwgPFacePolyline.java

View differences:

DwgPFacePolyline.java
45 45
*
46 46
* $Id$
47 47
* $Log$
48
* Revision 1.1  2007-03-01 19:58:53  azabala
48
* Revision 1.2  2007-03-06 19:39:38  azabala
49
* Changes to adapt dwg 12 to general architecture
50
*
51
* Revision 1.1  2007/03/01 19:58:53  azabala
49 52
* refactor of pface and mesh names
50 53
*
51 54
* Revision 1.2  2007/02/07 12:44:27  fdiaz
......
59 62
*/
60 63
package com.iver.cit.jdwglib.dwg.objects;
61 64

  
65
import java.util.ArrayList;
66
import java.util.List;
67

  
62 68
import com.iver.cit.gvsig.fmap.core.FShape;
63 69
import com.iver.cit.jdwglib.dwg.DwgFile;
64 70
import com.iver.cit.jdwglib.dwg.DwgHandleReference;
65 71
import com.iver.cit.jdwglib.dwg.DwgObject;
66 72
import com.iver.cit.jdwglib.dwg.IDwg2FMap;
67 73
import com.iver.cit.jdwglib.dwg.IDwgPolyline;
74
import com.iver.cit.jdwglib.dwg.IDwgVertex;
68 75

  
69 76
/**
70 77
 * This DWG entity is a "Polyface Mesh".
......
86 93
	private DwgHandleReference lastVertexHandle;
87 94
	private DwgHandleReference seqendHandle;
88 95

  
89
	private DwgVertexPFace[] vertices;
96
	private List vertices;
90 97
	
91 98
	/**
92 99
	 * Constructor
93 100
	 * */
94 101
	public DwgPFacePolyline(int index) {
95 102
		super(index);
96
		// TODO Auto-generated constructor stub
103
		vertices = new ArrayList();
97 104
	}
98 105

  
99 106
	public void setVertexCount(int vertexCount) {
......
153 160

  
154 161
	}
155 162

  
156
	public DwgVertexPFace[] getVertices() {
163
	public List getVertices() {
157 164
		return vertices;
158 165
	}
159 166

  
160
	public void setVertices(DwgVertexPFace[] vertices) {
167
	public void setVertices(List vertices) {
161 168
		this.vertices = vertices;
162 169
	}
163 170

  
......
263 270
		return null;
264 271
	}
265 272

  
273
	public void addVertex(IDwgVertex vertex) {
274
		//here we save the vertex (not the coordinate) because
275
		//this Polyline could have two kind of vertex (pface and pfaceface)
276
		vertices.add(vertex);
277
	}
278

  
266 279
}
267 280

  

Also available in: Unified diff