Revision 29018 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/Surface.java
Surface.java | ||
---|---|---|
32 | 32 |
* This interface is equivalent to the GM_Surface specified in |
33 | 33 |
* <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>. |
34 | 34 |
* Surface is a subclass of {@link Primitive} and is the basis for 2-dimensional geometry. |
35 |
* Unorientable surfaces such as the M?bius band are not allowed.
|
|
35 |
* Unorientable surfaces such as the M�bius band are not allowed.
|
|
36 | 36 |
* <p/> |
37 | 37 |
* <p> |
38 | 38 |
* The orientation of a surface chooses an "up" direction through the choice of the upward normal, |
... | ... | |
50 | 50 |
*/ |
51 | 51 |
public interface Surface extends OrientableSurface { |
52 | 52 |
|
53 |
|
|
54 |
public static final class AttributeBinding { |
|
55 |
// default |
|
56 |
public static final int BIND_OFF = 0; |
|
57 |
public static final int BIND_OVERALL = 1; |
|
58 |
public static final int BIND_PER_PRIMITIVE_SET = 2; |
|
59 |
public static final int BIND_PER_PRIMITIVE = 3; |
|
60 |
public static final int BIND_PER_VERTEX = 4; |
|
61 |
} |
|
62 |
|
|
63 |
|
|
53 | 64 |
/** |
54 | 65 |
* Sets all the coordinates of the surface. |
55 | 66 |
* @param generalPathX |
... | ... | |
116 | 127 |
* @param p |
117 | 128 |
* The vertex to add. |
118 | 129 |
*/ |
130 |
|
|
131 |
|
|
119 | 132 |
public void insertVertex(int index, Point p); |
133 |
|
|
134 |
//COLORS |
|
135 |
|
|
136 |
public void addColor(Point p); |
|
137 |
|
|
138 |
public void setColorAt(int index, Point p); |
|
139 |
|
|
140 |
public Point getColorAt(int index); |
|
141 |
|
|
142 |
public int getNumColors(); |
|
143 |
|
|
144 |
public void setColorBinding(AttributeBinding binding); |
|
145 |
|
|
146 |
public AttributeBinding getColorBinding(); |
|
147 |
|
|
148 |
//NORMALS |
|
149 |
|
|
150 |
public void addNormal(Point p); |
|
151 |
|
|
152 |
public void setNormalAt(int index, Point p); |
|
153 |
|
|
154 |
public Point getNormalAt(int index); |
|
155 |
|
|
156 |
public int getNumNormals(); |
|
157 |
|
|
158 |
public void setNormalBinding(AttributeBinding binding); |
|
159 |
|
|
160 |
public AttributeBinding getNormalBinding(); |
|
161 |
|
|
162 |
//TEXTURECOORDS |
|
163 |
|
|
164 |
public void addTextureCoord(int index, Point p); |
|
165 |
|
|
166 |
public void setTextureCoordAt(int index, Point p); |
|
167 |
|
|
168 |
public Point getTextureCoordAt(int index); |
|
169 |
|
|
170 |
public int getNumTextureCoords(); |
|
171 |
|
|
172 |
|
|
120 | 173 |
} |
Also available in: Unified diff