Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libDwg / doc / javadoc / com / iver / cit / jdwglib / dwg / DwgFile.html @ 2896

History | View | Annotate | Download (24.5 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:35 CEST 2005 -->
6
<TITLE>
7
DwgFile
8
</TITLE>
9

    
10
<META NAME="keywords" CONTENT="com.iver.cit.jdwglib.dwg.DwgFile 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="DwgFile";
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/DwgFile.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/jdwglib/dwg/DwgClass.html" title="class in com.iver.cit.jdwglib.dwg"><B>PREV CLASS</B></A>&nbsp;
54
&nbsp;<A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFileReader.html" title="class in com.iver.cit.jdwglib.dwg"><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="DwgFile.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.jdwglib.dwg</FONT>
86
<BR>
87
Class DwgFile</H2>
88
<PRE>
89
java.lang.Object
90
  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>com.iver.cit.jdwglib.dwg.DwgFile</B>
91
</PRE>
92
<HR>
93
<DL>
94
<DT>public class <B>DwgFile</B><DT>extends java.lang.Object</DL>
95

    
96
<P>
97
The DwgFile class provides a revision-neutral interface for reading and handling
98
 DWG files
99
 Reading methods are useful for reading DWG files, and handling methods like
100
 calculateDwgPolylines() are useful for handling more complex
101
 objects in the DWG file
102
<P>
103

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

    
111
<P>
112
<!-- ======== NESTED CLASS SUMMARY ======== -->
113

    
114

    
115
<!-- =========== FIELD SUMMARY =========== -->
116

    
117

    
118
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
119

    
120
<A NAME="constructor_summary"><!-- --></A>
121
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
122
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
123
<TD COLSPAN=2><FONT SIZE="+2">
124
<B>Constructor Summary</B></FONT></TD>
125
</TR>
126
<TR BGCOLOR="white" CLASS="TableRowColor">
127
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#DwgFile(java.lang.String)">DwgFile</A></B>(java.lang.String&nbsp;fileName)</CODE>
128

    
129
<BR>
130
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new DwgFile object given the absolute path to
131
 a DWG file</TD>
132
</TR>
133
</TABLE>
134
&nbsp;
135
<!-- ========== METHOD SUMMARY =========== -->
136

    
137
<A NAME="method_summary"><!-- --></A>
138
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
139
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
140
<TD COLSPAN=2><FONT SIZE="+2">
141
<B>Method Summary</B></FONT></TD>
142
</TR>
143
<TR BGCOLOR="white" CLASS="TableRowColor">
144
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
145
<CODE>&nbsp;void</CODE></FONT></TD>
146
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#addDwgClass(com.iver.cit.jdwglib.dwg.DwgClass)">addDwgClass</A></B>(<A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgClass.html" title="class in com.iver.cit.jdwglib.dwg">DwgClass</A>&nbsp;dwgClass)</CODE>
147

    
148
<BR>
149
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a DWG class to the dwgClasses vector</TD>
150
</TR>
151
<TR BGCOLOR="white" CLASS="TableRowColor">
152
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
153
<CODE>&nbsp;void</CODE></FONT></TD>
154
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#addDwgObject(com.iver.cit.jdwglib.dwg.DwgObject)">addDwgObject</A></B>(<A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgObject.html" title="class in com.iver.cit.jdwglib.dwg">DwgObject</A>&nbsp;dwgObject)</CODE>
155

    
156
<BR>
157
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a DWG object to the dwgObject vector</TD>
158
</TR>
159
<TR BGCOLOR="white" CLASS="TableRowColor">
160
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
161
<CODE>&nbsp;void</CODE></FONT></TD>
162
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#addDwgObjectOffset(int, int)">addDwgObjectOffset</A></B>(int&nbsp;handle,
163
                   int&nbsp;offset)</CODE>
164

    
165
<BR>
166
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a DWG object offset to the dwgObjectOffsets vector</TD>
167
</TR>
168
<TR BGCOLOR="white" CLASS="TableRowColor">
169
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170
<CODE>&nbsp;void</CODE></FONT></TD>
171
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#addDwgSectionOffset(java.lang.String, int, int)">addDwgSectionOffset</A></B>(java.lang.String&nbsp;key,
172
                    int&nbsp;seek,
173
                    int&nbsp;size)</CODE>
174

    
175
<BR>
176
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a DWG section offset to the dwgSectionOffsets vector</TD>
177
</TR>
178
<TR BGCOLOR="white" CLASS="TableRowColor">
179
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
180
<CODE>&nbsp;void</CODE></FONT></TD>
181
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#applyExtrusions()">applyExtrusions</A></B>()</CODE>
182

    
183
<BR>
184
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Modify the geometry of the objects applying the Extrusion vector where it
185
 is necessary</TD>
186
</TR>
187
<TR BGCOLOR="white" CLASS="TableRowColor">
188
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189
<CODE>&nbsp;void</CODE></FONT></TD>
190
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#blockManagement()">blockManagement</A></B>()</CODE>
191

    
192
<BR>
193
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Modify the geometry of the objects contained in the blocks of a DWG file and
194
 add these objects to the DWG object list.</TD>
195
</TR>
196
<TR BGCOLOR="white" CLASS="TableRowColor">
197
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
198
<CODE>&nbsp;void</CODE></FONT></TD>
199
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#calculateCadModelDwgPolylines()">calculateCadModelDwgPolylines</A></B>()</CODE>
200

    
201
<BR>
202
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the geometry of the polylines in a DWG file from the vertex list in
203
 this DWG file. </TD>
204
</TR>
205
<TR BGCOLOR="white" CLASS="TableRowColor">
206
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
207
<CODE>&nbsp;void</CODE></FONT></TD>
208
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#calculateGisModelDwgPolylines()">calculateGisModelDwgPolylines</A></B>()</CODE>
209

    
210
<BR>
211
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the geometry of the polylines in a DWG file from the vertex list in
212
 this DWG file. </TD>
213
</TR>
214
<TR BGCOLOR="white" CLASS="TableRowColor">
215
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
216
<CODE>&nbsp;int</CODE></FONT></TD>
217
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#getColorByLayer(com.iver.cit.jdwglib.dwg.DwgObject)">getColorByLayer</A></B>(<A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgObject.html" title="class in com.iver.cit.jdwglib.dwg">DwgObject</A>&nbsp;entity)</CODE>
218

    
219
<BR>
220
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the color of the layer of a DWG object</TD>
221
</TR>
222
<TR BGCOLOR="white" CLASS="TableRowColor">
223
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
224
<CODE>&nbsp;java.util.Vector</CODE></FONT></TD>
225
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#getDwgObjectOffsets()">getDwgObjectOffsets</A></B>()</CODE>
226

    
227
<BR>
228
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
229
</TR>
230
<TR BGCOLOR="white" CLASS="TableRowColor">
231
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
232
<CODE>&nbsp;java.util.Vector</CODE></FONT></TD>
233
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#getDwgObjects()">getDwgObjects</A></B>()</CODE>
234

    
235
<BR>
236
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
237
</TR>
238
<TR BGCOLOR="white" CLASS="TableRowColor">
239
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
240
<CODE>&nbsp;int</CODE></FONT></TD>
241
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#getDwgSectionOffset(java.lang.String)">getDwgSectionOffset</A></B>(java.lang.String&nbsp;key)</CODE>
242

    
243
<BR>
244
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the offset of DWG section given by its key</TD>
245
</TR>
246
<TR BGCOLOR="white" CLASS="TableRowColor">
247
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
248
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
249
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#getFileName()">getFileName</A></B>()</CODE>
250

    
251
<BR>
252
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
253
</TR>
254
<TR BGCOLOR="white" CLASS="TableRowColor">
255
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
256
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
257
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#getLayerName(com.iver.cit.jdwglib.dwg.DwgObject)">getLayerName</A></B>(<A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgObject.html" title="class in com.iver.cit.jdwglib.dwg">DwgObject</A>&nbsp;entity)</CODE>
258

    
259
<BR>
260
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the name of the layer of a DWG object</TD>
261
</TR>
262
<TR BGCOLOR="white" CLASS="TableRowColor">
263
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
264
<CODE>&nbsp;void</CODE></FONT></TD>
265
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#initializeLayerTable()">initializeLayerTable</A></B>()</CODE>
266

    
267
<BR>
268
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize a new Vector that contains the DWG file layers. </TD>
269
</TR>
270
<TR BGCOLOR="white" CLASS="TableRowColor">
271
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
272
<CODE>&nbsp;boolean</CODE></FONT></TD>
273
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#isDwg3DFile()">isDwg3DFile</A></B>()</CODE>
274

    
275
<BR>
276
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
277
</TR>
278
<TR BGCOLOR="white" CLASS="TableRowColor">
279
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
280
<CODE>&nbsp;void</CODE></FONT></TD>
281
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#read()">read</A></B>()</CODE>
282

    
283
<BR>
284
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a DWG file and put its objects in the dwgObjects Vector
285
 This method is version independent</TD>
286
</TR>
287
<TR BGCOLOR="white" CLASS="TableRowColor">
288
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
289
<CODE>&nbsp;void</CODE></FONT></TD>
290
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#setDwg3DFile(boolean)">setDwg3DFile</A></B>(boolean&nbsp;dwg3DFile)</CODE>
291

    
292
<BR>
293
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
294
</TR>
295
<TR BGCOLOR="white" CLASS="TableRowColor">
296
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
297
<CODE>&nbsp;void</CODE></FONT></TD>
298
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFile.html#testDwg3D()">testDwg3D</A></B>()</CODE>
299

    
300
<BR>
301
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Test if the DWG file is 2D or 3D. </TD>
302
</TR>
303
</TABLE>
304
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
305
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
306
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
307
<TD><B>Methods inherited from class java.lang.Object</B></TD>
308
</TR>
309
<TR BGCOLOR="white" CLASS="TableRowColor">
310
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
311
</TR>
312
</TABLE>
313
&nbsp;
314
<P>
315

    
316
<!-- ============ FIELD DETAIL =========== -->
317

    
318

    
319
<!-- ========= CONSTRUCTOR DETAIL ======== -->
320

    
321
<A NAME="constructor_detail"><!-- --></A>
322
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
323
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
324
<TD COLSPAN=1><FONT SIZE="+2">
325
<B>Constructor Detail</B></FONT></TD>
326
</TR>
327
</TABLE>
328

    
329
<A NAME="DwgFile(java.lang.String)"><!-- --></A><H3>
330
DwgFile</H3>
331
<PRE>
332
public <B>DwgFile</B>(java.lang.String&nbsp;fileName)</PRE>
333
<DL>
334
<DD>Creates a new DwgFile object given the absolute path to
335
 a DWG file
336
<P>
337
<DT><B>Parameters:</B><DD><CODE>fileName</CODE> - an absolute path to the DWG file</DL>
338

    
339
<!-- ============ METHOD DETAIL ========== -->
340

    
341
<A NAME="method_detail"><!-- --></A>
342
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
343
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
344
<TD COLSPAN=1><FONT SIZE="+2">
345
<B>Method Detail</B></FONT></TD>
346
</TR>
347
</TABLE>
348

    
349
<A NAME="read()"><!-- --></A><H3>
350
read</H3>
351
<PRE>
352
public void <B>read</B>()
353
          throws java.io.IOException</PRE>
354
<DL>
355
<DD>Reads a DWG file and put its objects in the dwgObjects Vector
356
 This method is version independent
357
<P>
358
<DD><DL>
359

    
360
<DT><B>Throws:</B>
361
<DD><CODE>java.io.IOException</CODE> - If the file location is wrong</DL>
362
</DD>
363
</DL>
364
<HR>
365

    
366
<A NAME="applyExtrusions()"><!-- --></A><H3>
367
applyExtrusions</H3>
368
<PRE>
369
public void <B>applyExtrusions</B>()</PRE>
370
<DL>
371
<DD>Modify the geometry of the objects applying the Extrusion vector where it
372
 is necessary
373
<P>
374
<DD><DL>
375
</DL>
376
</DD>
377
</DL>
378
<HR>
379

    
380
<A NAME="calculateGisModelDwgPolylines()"><!-- --></A><H3>
381
calculateGisModelDwgPolylines</H3>
382
<PRE>
383
public void <B>calculateGisModelDwgPolylines</B>()</PRE>
384
<DL>
385
<DD>Configure the geometry of the polylines in a DWG file from the vertex list in
386
 this DWG file. This geometry is given by an array of Points.
387
 Besides, manage closed polylines and polylines with bulges in a GIS Data model.
388
 It means that the arcs of the polylines will be done through a set of points and
389
 a distance between these points.
390
<P>
391
<DD><DL>
392
</DL>
393
</DD>
394
</DL>
395
<HR>
396

    
397
<A NAME="calculateCadModelDwgPolylines()"><!-- --></A><H3>
398
calculateCadModelDwgPolylines</H3>
399
<PRE>
400
public void <B>calculateCadModelDwgPolylines</B>()</PRE>
401
<DL>
402
<DD>Configure the geometry of the polylines in a DWG file from the vertex list in
403
 this DWG file. This geometry is given by an array of Points
404
 Besides, manage closed polylines and polylines with bulges in a GIS Data model.
405
 It means that the arcs of the polylines will be done through a curvature
406
 parameter called bulge associated with the points of the polyline.
407
<P>
408
<DD><DL>
409
</DL>
410
</DD>
411
</DL>
412
<HR>
413

    
414
<A NAME="blockManagement()"><!-- --></A><H3>
415
blockManagement</H3>
416
<PRE>
417
public void <B>blockManagement</B>()</PRE>
418
<DL>
419
<DD>Modify the geometry of the objects contained in the blocks of a DWG file and
420
 add these objects to the DWG object list.
421
<P>
422
<DD><DL>
423
</DL>
424
</DD>
425
</DL>
426
<HR>
427

    
428
<A NAME="initializeLayerTable()"><!-- --></A><H3>
429
initializeLayerTable</H3>
430
<PRE>
431
public void <B>initializeLayerTable</B>()</PRE>
432
<DL>
433
<DD>Initialize a new Vector that contains the DWG file layers. Each layer have three
434
 parameters. These parameters are handle, name and color
435
<P>
436
<DD><DL>
437
</DL>
438
</DD>
439
</DL>
440
<HR>
441

    
442
<A NAME="getLayerName(com.iver.cit.jdwglib.dwg.DwgObject)"><!-- --></A><H3>
443
getLayerName</H3>
444
<PRE>
445
public java.lang.String <B>getLayerName</B>(<A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgObject.html" title="class in com.iver.cit.jdwglib.dwg">DwgObject</A>&nbsp;entity)</PRE>
446
<DL>
447
<DD>Returns the name of the layer of a DWG object
448
<P>
449
<DD><DL>
450
<DT><B>Parameters:</B><DD><CODE>entity</CODE> - DWG object which we want to know its layer name
451
<DT><B>Returns:</B><DD>String Layer name of the DWG object</DL>
452
</DD>
453
</DL>
454
<HR>
455

    
456
<A NAME="getColorByLayer(com.iver.cit.jdwglib.dwg.DwgObject)"><!-- --></A><H3>
457
getColorByLayer</H3>
458
<PRE>
459
public int <B>getColorByLayer</B>(<A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgObject.html" title="class in com.iver.cit.jdwglib.dwg">DwgObject</A>&nbsp;entity)</PRE>
460
<DL>
461
<DD>Returns the color of the layer of a DWG object
462
<P>
463
<DD><DL>
464
<DT><B>Parameters:</B><DD><CODE>entity</CODE> - DWG object which we want to know its layer color
465
<DT><B>Returns:</B><DD>int Layer color of the DWG object in the Autocad color code</DL>
466
</DD>
467
</DL>
468
<HR>
469

    
470
<A NAME="testDwg3D()"><!-- --></A><H3>
471
testDwg3D</H3>
472
<PRE>
473
public void <B>testDwg3D</B>()</PRE>
474
<DL>
475
<DD>Test if the DWG file is 2D or 3D. If there is any object with a non cero
476
 elevation value, the file is considered 3D.
477
<P>
478
<DD><DL>
479
</DL>
480
</DD>
481
</DL>
482
<HR>
483

    
484
<A NAME="addDwgSectionOffset(java.lang.String, int, int)"><!-- --></A><H3>
485
addDwgSectionOffset</H3>
486
<PRE>
487
public void <B>addDwgSectionOffset</B>(java.lang.String&nbsp;key,
488
                                int&nbsp;seek,
489
                                int&nbsp;size)</PRE>
490
<DL>
491
<DD>Add a DWG section offset to the dwgSectionOffsets vector
492
<P>
493
<DD><DL>
494
<DT><B>Parameters:</B><DD><CODE>key</CODE> - Define the DWG section<DD><CODE>seek</CODE> - Offset of the section<DD><CODE>size</CODE> - Size of the section</DL>
495
</DD>
496
</DL>
497
<HR>
498

    
499
<A NAME="getDwgSectionOffset(java.lang.String)"><!-- --></A><H3>
500
getDwgSectionOffset</H3>
501
<PRE>
502
public int <B>getDwgSectionOffset</B>(java.lang.String&nbsp;key)</PRE>
503
<DL>
504
<DD>Returns the offset of DWG section given by its key
505
<P>
506
<DD><DL>
507
<DT><B>Parameters:</B><DD><CODE>key</CODE> - Define the DWG section
508
<DT><B>Returns:</B><DD>int Offset of the section in the DWG file</DL>
509
</DD>
510
</DL>
511
<HR>
512

    
513
<A NAME="addDwgObjectOffset(int, int)"><!-- --></A><H3>
514
addDwgObjectOffset</H3>
515
<PRE>
516
public void <B>addDwgObjectOffset</B>(int&nbsp;handle,
517
                               int&nbsp;offset)</PRE>
518
<DL>
519
<DD>Add a DWG object offset to the dwgObjectOffsets vector
520
<P>
521
<DD><DL>
522
<DT><B>Parameters:</B><DD><CODE>handle</CODE> - Object handle<DD><CODE>offset</CODE> - Offset of the object data in the DWG file</DL>
523
</DD>
524
</DL>
525
<HR>
526

    
527
<A NAME="addDwgObject(com.iver.cit.jdwglib.dwg.DwgObject)"><!-- --></A><H3>
528
addDwgObject</H3>
529
<PRE>
530
public void <B>addDwgObject</B>(<A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgObject.html" title="class in com.iver.cit.jdwglib.dwg">DwgObject</A>&nbsp;dwgObject)</PRE>
531
<DL>
532
<DD>Add a DWG object to the dwgObject vector
533
<P>
534
<DD><DL>
535
<DT><B>Parameters:</B><DD><CODE>dwgObject</CODE> - DWG object</DL>
536
</DD>
537
</DL>
538
<HR>
539

    
540
<A NAME="addDwgClass(com.iver.cit.jdwglib.dwg.DwgClass)"><!-- --></A><H3>
541
addDwgClass</H3>
542
<PRE>
543
public void <B>addDwgClass</B>(<A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgClass.html" title="class in com.iver.cit.jdwglib.dwg">DwgClass</A>&nbsp;dwgClass)</PRE>
544
<DL>
545
<DD>Add a DWG class to the dwgClasses vector
546
<P>
547
<DD><DL>
548
<DT><B>Parameters:</B><DD><CODE>dwgClass</CODE> - DWG class</DL>
549
</DD>
550
</DL>
551
<HR>
552

    
553
<A NAME="getDwgObjectOffsets()"><!-- --></A><H3>
554
getDwgObjectOffsets</H3>
555
<PRE>
556
public java.util.Vector <B>getDwgObjectOffsets</B>()</PRE>
557
<DL>
558
<DD><DL>
559

    
560
<DT><B>Returns:</B><DD>Returns the dwgObjectOffsets.</DL>
561
</DD>
562
</DL>
563
<HR>
564

    
565
<A NAME="getDwgObjects()"><!-- --></A><H3>
566
getDwgObjects</H3>
567
<PRE>
568
public java.util.Vector <B>getDwgObjects</B>()</PRE>
569
<DL>
570
<DD><DL>
571

    
572
<DT><B>Returns:</B><DD>Returns the dwgObjects.</DL>
573
</DD>
574
</DL>
575
<HR>
576

    
577
<A NAME="getFileName()"><!-- --></A><H3>
578
getFileName</H3>
579
<PRE>
580
public java.lang.String <B>getFileName</B>()</PRE>
581
<DL>
582
<DD><DL>
583

    
584
<DT><B>Returns:</B><DD>Returns the fileName.</DL>
585
</DD>
586
</DL>
587
<HR>
588

    
589
<A NAME="isDwg3DFile()"><!-- --></A><H3>
590
isDwg3DFile</H3>
591
<PRE>
592
public boolean <B>isDwg3DFile</B>()</PRE>
593
<DL>
594
<DD><DL>
595

    
596
<DT><B>Returns:</B><DD>Returns the dwg3DFile.</DL>
597
</DD>
598
</DL>
599
<HR>
600

    
601
<A NAME="setDwg3DFile(boolean)"><!-- --></A><H3>
602
setDwg3DFile</H3>
603
<PRE>
604
public void <B>setDwg3DFile</B>(boolean&nbsp;dwg3DFile)</PRE>
605
<DL>
606
<DD><DL>
607
<DT><B>Parameters:</B><DD><CODE>dwg3DFile</CODE> - The dwg3DFile to set.</DL>
608
</DD>
609
</DL>
610
<!-- ========= END OF CLASS DATA ========= -->
611
<HR>
612

    
613

    
614
<!-- ======= START OF BOTTOM NAVBAR ====== -->
615
<A NAME="navbar_bottom"><!-- --></A>
616
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
617
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
618
<TR>
619
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
620
<A NAME="navbar_bottom_firstrow"><!-- --></A>
621
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
622
  <TR ALIGN="center" VALIGN="top">
623
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
624
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
625
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
626
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DwgFile.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
627
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
628
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
629
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
630
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
631
  </TR>
632
</TABLE>
633
</TD>
634
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
635
</EM>
636
</TD>
637
</TR>
638

    
639
<TR>
640
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
641
&nbsp;<A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgClass.html" title="class in com.iver.cit.jdwglib.dwg"><B>PREV CLASS</B></A>&nbsp;
642
&nbsp;<A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgFileReader.html" title="class in com.iver.cit.jdwglib.dwg"><B>NEXT CLASS</B></A></FONT></TD>
643
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
644
  <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
645
&nbsp;<A HREF="DwgFile.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
646
&nbsp;<SCRIPT type="text/javascript">
647
  <!--
648
  if(window==top) {
649
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
650
  }
651
  //-->
652
</SCRIPT>
653
<NOSCRIPT>
654
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
655
</NOSCRIPT>
656

    
657
</FONT></TD>
658
</TR>
659
<TR>
660
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
661
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
662
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
663
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
664
</TR>
665
</TABLE>
666
<A NAME="skip-navbar_bottom"></A>
667
<!-- ======== END OF BOTTOM NAVBAR ======= -->
668

    
669
<HR>
670

    
671
</BODY>
672
</HTML>