Revision 34117 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/Surface.java
Surface.java | ||
---|---|---|
60 | 60 |
public interface Surface extends OrientableSurface { |
61 | 61 |
|
62 | 62 |
/** |
63 |
* Sets all the coordinates of the surface. |
|
64 |
* |
|
65 |
* @param generalPathX |
|
66 |
* The generalPath that contains all the coordinates. |
|
67 |
*/ |
|
68 |
public void setGeneralPath(GeneralPathX generalPathX); |
|
69 |
|
|
70 |
/** |
|
71 |
* Gets the one of the values of a coordinate (direct position) in a |
|
72 |
* concrete dimension. |
|
73 |
* |
|
74 |
* @param index |
|
75 |
* The index of the direct position to set. |
|
76 |
* @param dimension |
|
77 |
* The dimension of the direct position. |
|
78 |
* @return The value of the coordinate |
|
79 |
*/ |
|
80 |
public double getCoordinateAt(int index, int dimension); |
|
81 |
|
|
82 |
/** |
|
83 |
* Sets the value of a coordinate (direct position) in a concrete dimension. |
|
84 |
* |
|
85 |
* @param index |
|
86 |
* The index of the direct position to set. |
|
87 |
* @param dimension |
|
88 |
* The dimension of the direct position. |
|
89 |
* @param value |
|
90 |
* The value to set |
|
91 |
*/ |
|
92 |
public void setCoordinateAt(int index, int dimension, double value); |
|
93 |
|
|
94 |
/** |
|
95 |
* Adds a vertex (or direct position) to the curve. |
|
96 |
* |
|
97 |
* @param point |
|
98 |
* The new point to add. |
|
99 |
*/ |
|
100 |
public void addVertex(Point point); |
|
101 |
|
|
102 |
/** |
|
103 |
* Remove a vertex (direct position) to the curve. |
|
104 |
* |
|
105 |
* @param index |
|
106 |
* The index of the vertex to remove. |
|
107 |
*/ |
|
108 |
public void removeVertex(int index); |
|
109 |
|
|
110 |
/** |
|
111 |
* Gets a vertex (direct position). |
|
112 |
* |
|
113 |
* @param index |
|
114 |
* The index of the vertex to get. |
|
115 |
* @return One point. |
|
116 |
*/ |
|
117 |
public Point getVertex(int index); |
|
118 |
|
|
119 |
/** |
|
120 |
* Gets the number of vertices (direct positions) of the curve. |
|
121 |
* |
|
122 |
* @return The number of vertices. |
|
123 |
*/ |
|
124 |
public int getNumVertices(); |
|
125 |
|
|
126 |
/** |
|
127 |
* Inserts a vertex (direct position) to the curve. |
|
128 |
* |
|
129 |
* @param index |
|
130 |
* The index of the vertex where the new point has to be added. |
|
131 |
* @param p |
|
132 |
* The vertex to add. |
|
133 |
*/ |
|
134 |
|
|
135 |
public void insertVertex(int index, Point p); |
|
136 |
|
|
137 |
/** |
|
138 | 63 |
* Sets the appearance of the Surface |
139 | 64 |
* |
140 | 65 |
* @param app |
... | ... | |
149 | 74 |
* |
150 | 75 |
*/ |
151 | 76 |
public SurfaceAppearance getSurfaceAppearance(); |
152 |
|
|
153 |
/** |
|
154 |
* Sets a vertex in a concrete position and replaces the |
|
155 |
* previous one that was in this position. |
|
156 |
* @param index |
|
157 |
* The index of the vertex where the new point has to be replaced. |
|
158 |
* @param p |
|
159 |
* The vertex to set. |
|
160 |
*/ |
|
161 |
public void setVertex(int index, Point p); |
|
162 | 77 |
|
78 |
|
|
163 | 79 |
} |
Also available in: Unified diff