Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libDwg / doc / javadoc / com / iver / cit / javacad / util / GisModelCurveCalculator.html @ 2896

History | View | Annotate | Download (15.8 KB)

1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.4.2_08) on Wed Sep 07 16:36:36 CEST 2005 -->
6
<TITLE>
7
GisModelCurveCalculator
8
</TITLE>
9

    
10
<META NAME="keywords" CONTENT="com.iver.cit.javacad.util.GisModelCurveCalculator class">
11

    
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
13

    
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    parent.document.title="GisModelCurveCalculator";
18
}
19
</SCRIPT>
20

    
21
</HEAD>
22

    
23
<BODY BGCOLOR="white" onload="windowTitle();">
24

    
25

    
26
<!-- ========= START OF TOP NAVBAR ======= -->
27
<A NAME="navbar_top"><!-- --></A>
28
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30
<TR>
31
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32
<A NAME="navbar_top_firstrow"><!-- --></A>
33
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34
  <TR ALIGN="center" VALIGN="top">
35
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/GisModelCurveCalculator.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
39
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
43
  </TR>
44
</TABLE>
45
</TD>
46
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
47
</EM>
48
</TD>
49
</TR>
50

    
51
<TR>
52
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
53
&nbsp;<A HREF="../../../../../com/iver/cit/javacad/util/ArcFromBulgeCalculator.html" title="class in com.iver.cit.javacad.util"><B>PREV CLASS</B></A>&nbsp;
54
&nbsp;<A HREF="../../../../../com/iver/cit/javacad/util/TextToUnicodeConverter.html" title="class in com.iver.cit.javacad.util"><B>NEXT CLASS</B></A></FONT></TD>
55
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56
  <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
57
&nbsp;<A HREF="GisModelCurveCalculator.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
58
&nbsp;<SCRIPT type="text/javascript">
59
  <!--
60
  if(window==top) {
61
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
62
  }
63
  //-->
64
</SCRIPT>
65
<NOSCRIPT>
66
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
67
</NOSCRIPT>
68

    
69
</FONT></TD>
70
</TR>
71
<TR>
72
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
73
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
74
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
76
</TR>
77
</TABLE>
78
<A NAME="skip-navbar_top"></A>
79
<!-- ========= END OF TOP NAVBAR ========= -->
80

    
81
<HR>
82
<!-- ======== START OF CLASS DATA ======== -->
83
<H2>
84
<FONT SIZE="-1">
85
com.iver.cit.javacad.util</FONT>
86
<BR>
87
Class GisModelCurveCalculator</H2>
88
<PRE>
89
java.lang.Object
90
  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>com.iver.cit.javacad.util.GisModelCurveCalculator</B>
91
</PRE>
92
<HR>
93
<DL>
94
<DT>public class <B>GisModelCurveCalculator</B><DT>extends java.lang.Object</DL>
95

    
96
<P>
97
This class allows to obtain arcs and circles given by the most usual parameters, in a
98
 Gis geometry model. In this model, an arc or a circle is given by a set of points that
99
 defines it shape
100
<P>
101

    
102
<P>
103
<DL>
104
<DT><B>Author:</B></DT>
105
  <DD>jmorell</DD>
106
</DL>
107
<HR>
108

    
109
<P>
110
<!-- ======== NESTED CLASS SUMMARY ======== -->
111

    
112

    
113
<!-- =========== FIELD SUMMARY =========== -->
114

    
115

    
116
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
117

    
118
<A NAME="constructor_summary"><!-- --></A>
119
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
120
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
121
<TD COLSPAN=2><FONT SIZE="+2">
122
<B>Constructor Summary</B></FONT></TD>
123
</TR>
124
<TR BGCOLOR="white" CLASS="TableRowColor">
125
<TD><CODE><B><A HREF="../../../../../com/iver/cit/javacad/util/GisModelCurveCalculator.html#GisModelCurveCalculator()">GisModelCurveCalculator</A></B>()</CODE>
126

    
127
<BR>
128
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
129
</TR>
130
</TABLE>
131
&nbsp;
132
<!-- ========== METHOD SUMMARY =========== -->
133

    
134
<A NAME="method_summary"><!-- --></A>
135
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
136
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
137
<TD COLSPAN=2><FONT SIZE="+2">
138
<B>Method Summary</B></FONT></TD>
139
</TR>
140
<TR BGCOLOR="white" CLASS="TableRowColor">
141
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
142
<CODE>static&nbsp;java.awt.geom.Point2D[]</CODE></FONT></TD>
143
<TD><CODE><B><A HREF="../../../../../com/iver/cit/javacad/util/GisModelCurveCalculator.html#calculateGisModelArc(java.awt.geom.Point2D, double, double, double)">calculateGisModelArc</A></B>(java.awt.geom.Point2D&nbsp;c,
144
                     double&nbsp;r,
145
                     double&nbsp;sa,
146
                     double&nbsp;ea)</CODE>
147

    
148
<BR>
149
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method calculates an array of Point2D that represents an arc. </TD>
150
</TR>
151
<TR BGCOLOR="white" CLASS="TableRowColor">
152
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
153
<CODE>static&nbsp;java.awt.geom.Point2D[]</CODE></FONT></TD>
154
<TD><CODE><B><A HREF="../../../../../com/iver/cit/javacad/util/GisModelCurveCalculator.html#calculateGisModelBulge(java.awt.geom.Point2D[], double[])">calculateGisModelBulge</A></B>(java.awt.geom.Point2D[]&nbsp;newPts,
155
                       double[]&nbsp;bulges)</CODE>
156

    
157
<BR>
158
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method applies an array of bulges to an array of Point2D that defines a
159
 polyline. </TD>
160
</TR>
161
<TR BGCOLOR="white" CLASS="TableRowColor">
162
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
163
<CODE>static&nbsp;java.awt.geom.Point2D[]</CODE></FONT></TD>
164
<TD><CODE><B><A HREF="../../../../../com/iver/cit/javacad/util/GisModelCurveCalculator.html#calculateGisModelCircle(java.awt.geom.Point2D, double)">calculateGisModelCircle</A></B>(java.awt.geom.Point2D&nbsp;c,
165
                        double&nbsp;r)</CODE>
166

    
167
<BR>
168
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method calculates an array of Point2D that represents a circle. </TD>
169
</TR>
170
<TR BGCOLOR="white" CLASS="TableRowColor">
171
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
172
<CODE>static&nbsp;java.awt.geom.Point2D[]</CODE></FONT></TD>
173
<TD><CODE><B><A HREF="../../../../../com/iver/cit/javacad/util/GisModelCurveCalculator.html#calculateGisModelEllipse(java.awt.geom.Point2D, java.awt.geom.Point2D, double, double, double)">calculateGisModelEllipse</A></B>(java.awt.geom.Point2D&nbsp;center,
174
                         java.awt.geom.Point2D&nbsp;majorAxisVector,
175
                         double&nbsp;axisRatio,
176
                         double&nbsp;initAngle,
177
                         double&nbsp;endAngle)</CODE>
178

    
179
<BR>
180
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method calculates an array of Point2D that represents a ellipse. </TD>
181
</TR>
182
</TABLE>
183
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
184
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
185
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
186
<TD><B>Methods inherited from class java.lang.Object</B></TD>
187
</TR>
188
<TR BGCOLOR="white" CLASS="TableRowColor">
189
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
190
</TR>
191
</TABLE>
192
&nbsp;
193
<P>
194

    
195
<!-- ============ FIELD DETAIL =========== -->
196

    
197

    
198
<!-- ========= CONSTRUCTOR DETAIL ======== -->
199

    
200
<A NAME="constructor_detail"><!-- --></A>
201
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
202
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
203
<TD COLSPAN=1><FONT SIZE="+2">
204
<B>Constructor Detail</B></FONT></TD>
205
</TR>
206
</TABLE>
207

    
208
<A NAME="GisModelCurveCalculator()"><!-- --></A><H3>
209
GisModelCurveCalculator</H3>
210
<PRE>
211
public <B>GisModelCurveCalculator</B>()</PRE>
212
<DL>
213
</DL>
214

    
215
<!-- ============ METHOD DETAIL ========== -->
216

    
217
<A NAME="method_detail"><!-- --></A>
218
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
219
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
220
<TD COLSPAN=1><FONT SIZE="+2">
221
<B>Method Detail</B></FONT></TD>
222
</TR>
223
</TABLE>
224

    
225
<A NAME="calculateGisModelCircle(java.awt.geom.Point2D, double)"><!-- --></A><H3>
226
calculateGisModelCircle</H3>
227
<PRE>
228
public static java.awt.geom.Point2D[] <B>calculateGisModelCircle</B>(java.awt.geom.Point2D&nbsp;c,
229
                                                              double&nbsp;r)</PRE>
230
<DL>
231
<DD>This method calculates an array of Point2D that represents a circle. The distance
232
 between it points is 1 angular unit
233
<P>
234
<DD><DL>
235
<DT><B>Parameters:</B><DD><CODE>c</CODE> - Point2D that represents the center of the circle<DD><CODE>r</CODE> - double value that represents the radius of the circle
236
<DT><B>Returns:</B><DD>Point2D[] An array of Point2D that represents the shape of the circle</DL>
237
</DD>
238
</DL>
239
<HR>
240

    
241
<A NAME="calculateGisModelEllipse(java.awt.geom.Point2D, java.awt.geom.Point2D, double, double, double)"><!-- --></A><H3>
242
calculateGisModelEllipse</H3>
243
<PRE>
244
public static java.awt.geom.Point2D[] <B>calculateGisModelEllipse</B>(java.awt.geom.Point2D&nbsp;center,
245
                                                               java.awt.geom.Point2D&nbsp;majorAxisVector,
246
                                                               double&nbsp;axisRatio,
247
                                                               double&nbsp;initAngle,
248
                                                               double&nbsp;endAngle)</PRE>
249
<DL>
250
<DD>This method calculates an array of Point2D that represents a ellipse. The distance
251
 between it points is 1 angular unit
252
<P>
253
<DD><DL>
254
<DT><B>Parameters:</B><DD><CODE>center</CODE> - Point2D that represents the center of the ellipse<DD><CODE>majorAxisVector</CODE> - Point2D that represents the vector for the major axis<DD><CODE>axisRatio</CODE> - double value that represents the axis ratio<DD><CODE>initAngle</CODE> - double value that represents the start angle of the ellipse arc<DD><CODE>endAngle</CODE> - double value that represents the end angle of the ellipse arc
255
<DT><B>Returns:</B><DD>Point2D[] An array of Point2D that represents the shape of the ellipse</DL>
256
</DD>
257
</DL>
258
<HR>
259

    
260
<A NAME="calculateGisModelArc(java.awt.geom.Point2D, double, double, double)"><!-- --></A><H3>
261
calculateGisModelArc</H3>
262
<PRE>
263
public static java.awt.geom.Point2D[] <B>calculateGisModelArc</B>(java.awt.geom.Point2D&nbsp;c,
264
                                                           double&nbsp;r,
265
                                                           double&nbsp;sa,
266
                                                           double&nbsp;ea)</PRE>
267
<DL>
268
<DD>This method calculates an array of Point2D that represents an arc. The distance
269
 between it points is 1 angular unit
270
<P>
271
<DD><DL>
272
<DT><B>Parameters:</B><DD><CODE>c</CODE> - Point2D that represents the center of the arc<DD><CODE>r</CODE> - double value that represents the radius of the arc<DD><CODE>sa</CODE> - double value that represents the start angle of the arc<DD><CODE>ea</CODE> - double value that represents the end angle of the arc
273
<DT><B>Returns:</B><DD>Point2D[] An array of Point2D that represents the shape of the arc</DL>
274
</DD>
275
</DL>
276
<HR>
277

    
278
<A NAME="calculateGisModelBulge(java.awt.geom.Point2D[], double[])"><!-- --></A><H3>
279
calculateGisModelBulge</H3>
280
<PRE>
281
public static java.awt.geom.Point2D[] <B>calculateGisModelBulge</B>(java.awt.geom.Point2D[]&nbsp;newPts,
282
                                                             double[]&nbsp;bulges)</PRE>
283
<DL>
284
<DD>This method applies an array of bulges to an array of Point2D that defines a
285
 polyline. The result is a polyline with the input points with the addition of the
286
 points that define the new arcs added to the polyline
287
<P>
288
<DD><DL>
289
<DT><B>Parameters:</B><DD><CODE>newPts</CODE> - Base points of the polyline<DD><CODE>bulges</CODE> - Array of bulge parameters
290
<DT><B>Returns:</B><DD>Polyline with a new set of arcs added and defined by the bulge parameters</DL>
291
</DD>
292
</DL>
293
<!-- ========= END OF CLASS DATA ========= -->
294
<HR>
295

    
296

    
297
<!-- ======= START OF BOTTOM NAVBAR ====== -->
298
<A NAME="navbar_bottom"><!-- --></A>
299
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
300
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
301
<TR>
302
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
303
<A NAME="navbar_bottom_firstrow"><!-- --></A>
304
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
305
  <TR ALIGN="center" VALIGN="top">
306
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
307
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
308
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
309
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/GisModelCurveCalculator.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
310
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
311
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
312
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
313
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
314
  </TR>
315
</TABLE>
316
</TD>
317
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
318
</EM>
319
</TD>
320
</TR>
321

    
322
<TR>
323
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
324
&nbsp;<A HREF="../../../../../com/iver/cit/javacad/util/ArcFromBulgeCalculator.html" title="class in com.iver.cit.javacad.util"><B>PREV CLASS</B></A>&nbsp;
325
&nbsp;<A HREF="../../../../../com/iver/cit/javacad/util/TextToUnicodeConverter.html" title="class in com.iver.cit.javacad.util"><B>NEXT CLASS</B></A></FONT></TD>
326
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
327
  <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
328
&nbsp;<A HREF="GisModelCurveCalculator.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
329
&nbsp;<SCRIPT type="text/javascript">
330
  <!--
331
  if(window==top) {
332
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
333
  }
334
  //-->
335
</SCRIPT>
336
<NOSCRIPT>
337
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
338
</NOSCRIPT>
339

    
340
</FONT></TD>
341
</TR>
342
<TR>
343
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
344
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
345
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
346
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
347
</TR>
348
</TABLE>
349
<A NAME="skip-navbar_bottom"></A>
350
<!-- ======== END OF BOTTOM NAVBAR ======= -->
351

    
352
<HR>
353

    
354
</BODY>
355
</HTML>